-
Notifications
You must be signed in to change notification settings - Fork 764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Go: Lint Workspace" fails if the previous lint returned no warnings or errors #1520
Comments
@BenLubar Indeed that error message isn't very helpful. When this happened, was there any log in Output channels (Go, Log (Extension Host) in particular)? |
Go output channel contains the log from the last successful run of lint. Extension host doesn't seem relevant:
However, there's also remote extension host, which does seem relevant:
developer console doesn't seem very helpful:
|
Thanks! Looks like this is the place that caused an exception.
Line 23 in 9b2b1ef
|
Change https://golang.org/cl/321841 mentions this issue: |
What version of Go, VS Code & VS Code Go extension are you using?
go version
to get version of Go from the VS Code integrated terminal.go version go1.16.4 linux/amd64
gopls -v version
to get version of Gopls from the VS Code integrated terminal.code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders.v0.25.0
Go: Locate Configured Go Tools
command.Share the Go related settings you have added/edited
Run
Preferences: Open Settings (JSON)
command to open your settings.json file.Share all the settings with the
go.
or["go"]
orgopls
prefixes.Describe the bug
Running
Go: Lint Workspace
fails with an undescriptive error (screenshot below) if the previous (automatic?) run returned no warnings.Steps to reproduce the behavior:
Workaround: focus the "Output" pane before running Go: Lint Workspace. Not sure why this makes it work.
Screenshots or recordings
The text was updated successfully, but these errors were encountered: