You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With "go.lintTool" set to "revive and "-formatter=stylish" in "go.lintFlags", linting silently falis. In the "Go" section of output, I see the following:
Started linting the current file at /path/to/package/file.go
/path/to/package>Finished running tool: /path/to/revive -formatter=stylish /path/to/package/file.go
Presumably this is because the Go extension is unable to parse the "stylish" output from revive. This isn't the end of the world since I don't mind using the default output, but it took a long time to figure out why I wasn't getting any linter output because the parsing failed silently and I didn't get any sort of warning that the revive output was not being parsed by the extension. It would be nice to at least get an alert saying that the extension couldn't parse the linter output.
Steps to reproduce the behavior:
Copy the "go.lintTool" and "go.lintFlags" settings from above.
Try to run linting on a go file.
The text was updated successfully, but these errors were encountered:
stamblerre
added
Debug
Issues related to the debugging functionality of the extension.
NeedsFix
The path to resolution is known, but the work has not been done.
and removed
Debug
Issues related to the debugging functionality of the extension.
labels
May 29, 2020
stamblerre
changed the title
Linting with non-default revive -formatter fails silently
bug: linting with non-default revive -formatter fails silently
Jun 3, 2020
From microsoft/vscode-go#3083 by @orn688:
What version of Go, VS Code & VS Code Go extension are you using?
Share the Go related settings you have added/edited
Describe the bug
With "go.lintTool" set to "revive and "-formatter=stylish" in "go.lintFlags", linting silently falis. In the "Go" section of output, I see the following:
Presumably this is because the Go extension is unable to parse the "stylish" output from revive. This isn't the end of the world since I don't mind using the default output, but it took a long time to figure out why I wasn't getting any linter output because the parsing failed silently and I didn't get any sort of warning that the revive output was not being parsed by the extension. It would be nice to at least get an alert saying that the extension couldn't parse the linter output.
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: