x/tools/gopls: RPC logging is incorrect #33755
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?
What operating system and processor architecture are you using (
go env
)?go env
OutputThen the next two log entries are doubly out of order:
[Trace - 10:04:01 AM] Sending response 'client/registerCapability - (1)' in 0ms.
Params: {}
[Trace - 10:04:01 AM] Received notification 'client/registerCapability' in 2ms.
Params: {"registrations":[{"id":"workspace/didChangeConfiguration","method":"workspace/didChangeConfiguration"},{"id":"workspace/didChangeWorkspaceFolders","method":"workspace/didChangeWorkspaceFolders"}]}
as they actually happened (on the wire) after the client notified the server that it was initialized.
[as shown by added code in headerStream.Read/headerStream.Write that dumps data just as it is read or written.
The text was updated successfully, but these errors were encountered: