-
Notifications
You must be signed in to change notification settings - Fork 645
Unexpected permission issue shows as error in vscode's checker on code without errors. #1914
Comments
Same problem on Arch Linux |
vscode-go uses the The usage of the FYI you can disable the vscode go build (and thus the error) with "go.buildOnSave": "off", |
@1e3oss The initial reason to use the But recently we have come to depend on the So we would not be removing the flag by default until there is a good solution for But meanwhile, for the current problem, one can use the solution added for #1464 which is stop adding this flag using the |
@harikb The above should solve your issue. If not, feel free to re-open this issue |
Thank you @ramya-rao-a . Setting |
Adding a comment here as asked by @ramya-rao-a in Slack.
Installed from the tarball from golang.org. When I enable the
I get the same error if I run a similar No cgo in use for this project. I did just transition this project to a go module. |
After Go 1.11 upgrade, I see the following error message in vscode, under a particular
.go
fileIn some respects, this is similar to golang/go#24674 . It may as well be a Go installation issue, but I need help figuring out how to reproduce this error on the command line.
MacOSX 10.12.6 , V S Code Version 1.26.1
Steps to Reproduce:
/usr/local/go
. Delete everything from $GOPATH/binSurprisingly, this particular file doesn't not even use CGO. Only imports are
Build succeed outside of VS Code without any issue
No changes to the
cgo.a
file, as expected, since the build was run as a normal (non-root) user.The text was updated successfully, but these errors were encountered: