-
Notifications
You must be signed in to change notification settings - Fork 765
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Should not lint with staticcheck
if it is enabled in gopls
#1867
Comments
@GAZ082 Could you please include the gopls output (found by navigating to View -> Output -> Tasks -> gopls (server)) to confirm what is happening? I was able to reproduce and this happens in my repro case because the extension is still running staticcheck for diagnostics separately from gopls. These configurations for "gopls" are not applied to staticcheck when the extension runs it separately. |
@suzmue
|
@suzmue also removed a binary of staticcheck in $GOPATH/bin, no luck. |
@GAZ082 Thanks for the information! Could you try reloading vscode to make sure that you are not receiving any cached diagnostics, and then take a screenshot of the diagnostic you are seeing? |
These appear to all be coming from the staticcheck command line tool. These should be disabled when gopls is using staticcheck. This is a bug in the extension. |
Change https://golang.org/cl/361794 mentions this issue: |
staticcheck
if it is enabled in gopls
The recommended way of setting
|
I added this to my user settings:
And Im still getting U1000 warnings.
The text was updated successfully, but these errors were encountered: