-
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
settings: go.goroot does not override GOROOT environment variable #776
Comments
@zhiqiangxu thanks for the report. What's the extension version? The extension should choose I am wildly guessing the extension passed a wrong PATH when invoking other tools.
|
Sorry for late response!
Seems UPDATE I found another issue: if the go project is embedded into a sub directory of a rust project, |
@zhiqiangxu thanks for the updates. Based on the log, VSCode Go is seeing Can you open the developer tools and check the environment variables from there to make sure GOROOT is not set? Command Palette -> This should be (Nightly version](https://github.com/golang/vscode-go/blob/master/docs/nightly.md) has an option to enable more logging ( Re: |
Ah , Shouldn't the About the embeded case, the |
@zhiqiangxu Yes, Can you please tell us why you needed to set Re: |
I'm using UPDATE This is the tool I'm using: https://github.com/moovweb/gvm |
Thanks @zhiqiangxu We were trying to deprecate I will try to resurrect GOROOT setting through |
It was released as part of v0.25.0. I forgot to link the change |
In my
settings.json
, I've to manually set thePATH
ingo.toolsEnvVars
:otherwise vscode will report:
cannot find module providing package crypto/ed25519
which is caused by selecting my default go version of
go1.12
(crypto/ed25519
is introduced ingo1.13
)It's should automatically infer the correct go path( in my case
/Users/xuzhiqiang/.gvm/gos/go1.15/bin/
) based ongo.gopath
andgo.goroot
The text was updated successfully, but these errors were encountered: