x/tools/gopls: gopls ignores the fact that the client doesn't support hierarchicalDocumentSymbolSupport #34893
Labels
Documentation
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
help wanted
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.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
eglot
LSP clientM-x eglot
. At this point eglot notifies gopls for its capabilities as a client. Note that it doesn't reporthierarchicalDocumentSymbolSupport
as supported.M-x imenu
which causes the following communication, note that gopls replies with a hierarchical document symbol response.What did you expect to see?
The list of symbols in the main.go file, i.e. the
main()
function.What did you see instead?
Emacs error.
Notes
imenu
doesn't work for Go joaotavora/eglot#317textDocument/documentSymbol
Update textDocument/documentSymbol parsing to LSP 3.10.0 spec joaotavora/eglot#303The text was updated successfully, but these errors were encountered: