Open tchajed opened 1 year ago
I had a similar trace here recently
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Dafny.AstExtensions.GetMemberQualification(MemberDecl memberDecl) in dafny\Source\DafnyCore\AST\IHasUsages.cs:line 31
at Microsoft.Dafny.Method.GetQualifiedName() in dafny\Source\DafnyCore\AST\Members\Method.cs:line 384
at Microsoft.Dafny.Method.GetDescription(DafnyOptions options) in dafny\Source\DafnyCore\AST\Members\Method.cs:line 375
at Microsoft.Dafny.LanguageServer.Handlers.DafnyHoverHandler.CreateSymbolMarkdown(ISymbol symbol) in dafny\Source\DafnyLanguageServer\Handlers\DafnyHoverHandler.cs:line 436
at Microsoft.Dafny.LanguageServer.Handlers.DafnyHoverHandler.GetStaticHoverContent(HoverParams request, IdeState state) in dafny\Source\DafnyLanguageServer\Handlers\DafnyHoverHandler.cs:line 82
The first one will be a non-issue when the clients turns off gutter icon publishing on the server, which I think can happen soon.
The second seems unrelated to me, and not necessarily caused by a race condition. Is it not reproducible @MikaelMayer ?
I could not reproduce it, but if I can I'll open an issue.
Dafny version
4.2.0
Code to produce this issue
The error was transient while typing and immediately went away, so I'm not sure how you can reproduce it. I have the defaults set, to verify onchange and without caching.
Command to run and resulting output
No response
What happened?
The language server crashed with the following backtrace:
What type of operating system are you experiencing the problem on?
Mac