x/tools/gopls: follow-up to golang/vscode-go#2406 (analyzer print statement breaking gopls) #54459
Open
2 of 5 tasks
Labels
Milestone
This is a follow up issue for golang/vscode-go#2406. That issue reports a rare but severe breakage that made it into the [email protected] release. Several processes broke down to let that happen, so this issue tracks improvements we can make to help avoid such regressions in the future.
Background: Gopls runs go vet analyzers for open packages. When new analyzers are added to vet (in the x/tools/go/analysis directory), they can be included in gopls via inclusion in internal/lsp/source.defaultAnalyzers. In this case, a new analyzer was added that accidentally included a print statement. Any print to stdout corrupts gopls' jsonrpc2 communication with the LSP client.
Action items (these are subject to change, as we go through our postmortem):
The text was updated successfully, but these errors were encountered: