x/tools/gopls: panic when textDocument/prepareCallHierarchy applied to package name #49125
Labels
Documentation
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
NeedsFix
The path to resolution is known, but the work has not been done.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, with the latest release of gopls, including the current tools master golang/tools@316ba0b.
What operating system and processor architecture are you using (
go env
)?go env
Output (should be irrelevant?)What did you do?
Create
example.go
consisting of the following single line:package p
Run
gopls
, initialize an LSP exchange and send atextDocument/prepareCallHierarchy
request with theposition
parameter pointing to the package name, e.g.:What did you expect to see?
No panic.
A possible fix seems to be:
What did you see instead?
The text was updated successfully, but these errors were encountered: