x/tools/cmd/gopls: nil pointer in diagnostics derivation #32030
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I haven't been able to reduce this down to smaller repro as yet.
The issue arises in the following test:
https://github.com/myitcv/govim/blob/be5186373d0b6831936cab56b729ca878020c2ae/cmd/govim/testdata/go_to_def_newtab.txt
This is a very simple test that is verifying that jumping to a definition works (in various Vim configurations).
Below is the log of the LSP server/client interactions. You can see the file
p.go
is opened and very soon after the panic occurs. i.e. the test doesn't even get to the point of being able to set the cursor position to test the definition jump.gopls server/client output
What did you expect to see?
No panic.
What did you see instead?
The above panic.
cc @stamblerre @ianthehat
The text was updated successfully, but these errors were encountered: