-
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 vet flag "-composite=false" is ignored by editor #217
Comments
@avivdolev what do you see if you manually invoke vet using Command Palette -> "Go: Vet Current Package"? |
The same output as you posted- no vet errors |
you are using the language server.
Can you try to configure gopls to disable it? I think the configuration looks like
https://github.com/golang/tools/blob/master/gopls/doc/settings.md#analyses-mapstringbool @stamblerre I think either we should disable direct launch of vet entirely if gopls is enabled, or have the setting ( |
Doesn't seem to work (restarted gopls, reloaded vscode) :( |
Sorry - a documentation bug. Try
|
Worked! 🎉 |
Glad that it worked. |
What version of Go, VS Code & VS Code Go extension are you using?
go version
to get version of Gogo version go1.14.4 linux/amd64
code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders1.46.0
a5d1cc28bb5da32ec67e86cc50f84c67cc690321
x64
0.14.4
go env
to get the go development environment detailsShare the Go related settings you have added/edited
Describe the bug
go vet flag "-composites=false" is being ignored by the editor.
running go vet manually with this flag do not output any error.
Steps to reproduce the behavior:
example file hello.go:
I get the following problem:
But running
go vet -composites=false .
manually show no error.This does not replicate with a
package main
, nor with gopls turned off.As far as I know, gopls does not "vet", vetting is still done by
go vet
, so I post the issue here and not on gopls repo - please let me know if I'm wrong.Thank you,
Aviv
The text was updated successfully, but these errors were encountered: