-
Notifications
You must be signed in to change notification settings - Fork 753
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
Using go language server with go vet #3499
Comments
Thanks for sharing your use case @SamMcEachern Our current plan is to remove the vet support and related code path completely in favor of gopls. In the mean time, is it possible to hook your analyzer into a meta linter instead?
from the settings.json
This will cause mylinter.sh to run instead of golint. |
thanks for the reply @hyangah It still prints the diagnostics in the output tab of vscode though. The linting tool im using outputs to stderr, and im guessing vscode-go expects the diagnostics to come to stdout? Ill try using golangci-lint and see if I get any progress there |
@SamMcEachern Thanks for staying flexible. |
@hyangah oh gotcha! It all works if I do the same in my shell script! this works really well, thanks so much! |
Is your feature request related to a problem? Please describe.
Hello! We want to add custom go vet tools to our vscode settings, allowing us to visualize warnings regarding the framework we are using.
The issue is that While the go language server is active, vscode-go disables the usage of go vet
vscode-go/extension/src/goCheck.ts
Line 132 in a83a369
Describe the solution you'd like
Can we enable go vet while the language server is active?
Describe alternatives you've considered
We have also tried using the any-lint package. But this is pretty limited and doesnt give a nice visualisation of the warnings like using vscode-go does
The text was updated successfully, but these errors were encountered: