x/tools/gopls: "addView called before server initialized" #57459
Labels
FrozenDueToAge
gopls/metadata
Issues related to metadata loading in gopls
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
gopls version
What did you do?
Here is a simple "virtual" LSP client:
What did you expect to see?
This is (as far as I'm aware) a perfectly valid series of LSP requests. (By the time the
initialized
notification is sent,the server has already sent the
initialize
response.)There should be no problems for gopls here.
What did you see instead?
After the 3rd message, gopls gives the client these notifications:
Using
workspaceFolders
instead ofrootUri
gives the exact same result (in any case both must be handled by an LSP server).Waiting for more time after sending
initialized
does not resolve the issue.Sending any more requests after this gives back the cryptic response:
with the non-existent error code 0.
The text was updated successfully, but these errors were encountered: