x/tools/cmd/gopls: hover returns error when over non-identifier #32971
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?
Take the following simple example:
In Vim using
govim
, if we hover over the()
ofmain()
then we get the following response fromgopls
:For the client to know this is an error that can be ignored would require it to know the structure of the document, which defeats the point of the LSP.
What did you expect to see?
In this instance I think
gopls
should simply report there is nothing to display, i.e. return empty string with no error.What did you see instead?
As above.
cc @stamblerre @ianthehat
The text was updated successfully, but these errors were encountered: