Omnisharp-roslyn: Omnisharp Emacs LSP Error

Created on 24 Jan 2020  路  8Comments  路  Source: OmniSharp/omnisharp-roslyn

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()

All 8 comments

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()

Same for me, but on Linux.

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.

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.

Thanks!

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

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.

Hey @joshbarth

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

Was this page helpful?
0 / 5 - 0 ratings