x/tools/gopls: invalid memory address or nil pointer dereference in IdentifierInfo.Hover #44326
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
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 configured emacs to use gopls in lsp-mode, with gopls running remote through tramp. I opened one Go source file and started moving the cursor through it.
More specifically, the source code location where it crashed was one of these lines:
https://github.com/intel/pmem-csi/blob/a4218ed04b213c5604a0a65f796438b45db39992/pkg/pmem-csi-driver/main.go#L32-L59
Stepping through it line-by-line triggers it reliably.
What did you expect to see?
No errors.
What did you see instead?
Emacs reports:
Server gopls-remote:19535 exited with status exit(check corresponding stderr buffer for details). Do you want to restart it? (y or n)
From
/tmp/gopls-remote-5-stderr
(stderr of gopls when invoked through emacs/tramp):The text was updated successfully, but these errors were encountered: