Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error In Emacs 28 #113

Closed
kstatz12 opened this issue Aug 28, 2023 · 4 comments
Closed

Error In Emacs 28 #113

kstatz12 opened this issue Aug 28, 2023 · 4 comments

Comments

@kstatz12
Copy link
Contributor

LSP :: csharp-ls: serverEventLoop: crashed with System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at [email protected](Unit _arg4) in /home/runner/work/csharp-language-server/csharp-language-server/src/CSharpLanguageServer/State.fs:line 272
   at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvokeNoHijackCheck[a,b](AsyncActivation`1 ctxt, b result1, FSharpFunc`2 userCode) in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 528
   at Ionide.LanguageServerProtocol.Server.sendServerNotification@111-3.Invoke(AsyncActivation`1 ctxt) in /_//src/LanguageServerProtocol.fs:line 111
   at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction) in D:\a\_work\1\s\src\FSharp.Core\async.fs:line

I havent dug into it, but creating an issue to refer back to

@razzmatazz
Copy link
Owner

does this happen all the time or is it a spurious error? lsp-mode or eglot?

@kstatz12
Copy link
Contributor Author

it seems to happen randomly, lsp-mode

@tcx4c70
Copy link
Contributor

tcx4c70 commented Aug 31, 2023

I have also met the error several times with vim + coc.nvim.

I think the traceback is due to the rethrow instead of the real error? IIRC, the real error is in https://github.com/razzmatazz/csharp-language-server/blob/80687719e19aafb33fc48a045c3df7df334aadec/src/CSharpLanguageServer/State.fs#L177C1-L177C66.

@razzmatazz
Copy link
Owner

I merged @kstatz12's PR and released a new version, hopefully this is fixed.

@kstatz12 kstatz12 closed this as completed Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants