OmniSharp / omnisharp-roslyn

OmniSharp server (HTTP, STDIO) based on Roslyn workspaces
MIT License
1.79k stars 420 forks source link

Omnisharp Emacs LSP Error #1689

Open passeride opened 4 years ago

passeride commented 4 years ago

Hello

Not sure how to go about debugging this, but this error is frequently seen on the eamcs LSP c-sharp mode on Windows 10 64bit Using Omnisharp 1.34.9

LSP :: Internal Error - System.NullReferenceException: Object reference not set to an instance of an object.

   at OmniSharp.LanguageServerProtocol.Handlers.OmniSharpSignatureHelpHandler.<Handle>d__3.MoveNext() in D:\a\1\s\src\OmniSharp.LanguageServerProtocol\Handlers\OmniSharpSignatureHelpHandler.cs:line 45

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at OmniSharp.Extensions.LanguageServer.Server.Pipelines.ResolveCommandPipeline`2.<Handle>d__5.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at OmniSharp.Extensions.JsonRpc.RequestRouterBase\`1.<RouteRequest>d__6.MoveNext()
janoc commented 4 years ago

Yep, I am seeing this too:

Failed to handle notification textDocument/signatureHelp - System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.

   à OmniSharp.LanguageServerProtocol.Handlers.OmniSharpSignatureHelpHandler.<Handle>d__3.MoveNext() dans D:\a\1\s\src\OmniSharp.LanguageServerProtocol\Handlers\OmniSharpSignatureHelpHandler.cs:ligne 45

--- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---

   à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   à OmniSharp.Extensions.LanguageServer.Server.Pipelines.ResolveCommandPipeline`2.<Handle>d__5.MoveNext()

--- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---

   à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   à OmniSharp.Extensions.JsonRpc.RequestRouterBase`1.<RouteRequest>d__6.MoveNext()
kirill-gerasimenko commented 4 years ago

Same for me, but on Linux.

david-driscoll commented 4 years ago

Hmm, I know the issue and I'll have to check a few things as to where to make the change. I'll look at this tonight though for sure.

david-driscoll commented 4 years ago

I just took a look, I'll get a fix out to the lsp lib and upgrade here and I'll drop a new release either tonight or tomorrow sometime.

janoc commented 4 years ago

Thanks!

ericdallo commented 4 years ago

Same issue here, any news on this @david-driscoll?

joshbarth commented 3 years ago

Has there been any progress on this? I'm having this issue as well. Everything still works, as far as I can tell, but the error is annoying.

razzmatazz commented 3 years ago

Hey @joshbarth

I might be able to investigate the issue. Do you have a minimal repo with which to reproduce it?