-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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
VS Code unable to locate Go tools on my MacBook #108003
Comments
The
@dylan-bourque What does it say? FYI, this is different from golang/vscode-go#713. Edit: I edited my msg a bit so vscode team can see the issue more clearly, not distracted by the go issue :-) |
This fixed it for me
|
@hyangah
I see here that @CanRau I already have my environment configuration in As I've said, none of my "profile" files ( |
I am still not convinced that this is a VS Code issue |
From my standpoint, It appears that the Go extension is getting a system-default |
It's really strange that vscode-go sees a different Note that the value is cached and it's initialized only once. One possibility is that the @dylan-bourque how about trying to downgrade 1) vscode (1.46 or 1.47?) and 2) vscode-go (0.15.2 maybe) and to narrow down the issue? |
I can try that later today or tomorrow. |
Strange, yeah interestingly the extension worked for me initially without any env/path changes only after the error wouldn't go away did I follow the instructions I linked before which luckily resolved my issue |
The only environment configuration I'm missing is explicitly setting |
@dylan-bourque you shouldn't need to set |
That was my understanding as well, but I noticed that it's included in the link that @CanRau posted. |
Yes I've set it as shown and it resolved all problems 🤷🏻♂️ Why's it not recommended? 🤔 |
@CanRau Of course that's because the extension is also checking Re: why setting |
cc @joaomoreno |
Is there any message in the DevTools like this?
|
I don't know if there was some specific change related to this, but I'm no longer seeing this behavior after updating VS Code to v1.50.0 and running the |
I'm getting this error, v1.50.1 hasn't fixed it. I'm seeing |
Same here, usually I have to restart VSCode, second start works as expected 🤷♂️ |
Running |
Uh good alternative, more work with multiple windows open tho 😅 |
@beamery-tomht interestingly since yesterday quiting&re-opening VSCode won't work anymore, luckily your |
No worries @CanRau , I stole the idea from the depths of another github issue thread and have to do the same for all of my windows. Luckily not all of them need the full environment! |
VSCode Version:
Version: 1.49.3
Commit: 2af0510
Date: 2020-10-02T17:54:06.165Z
Electron: 9.2.1
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS Version: Darwin x64 18.7.0
Go Extension Version: 0.17.2
Steps to Reproduce:
I get the error below:
While troubleshooting locally, I used the Go: Locate Configured Go Tools command from the Go Extension and it showed the following:
When I launch VS Code by running
code
from a terminal session the error message does not occur and the Go: Locate Configured Go Tools command correctly finds the Go tools.Does this issue occur when all extensions are disabled?: No
This issue for the Go Extension generated the same error message but this fix for it does not correct the behavior for me.
The text was updated successfully, but these errors were encountered: