Skip to content
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

How to edit GOROOT in Gocode's build context #494

Closed
grapehunter opened this issue Jan 23, 2018 · 2 comments
Closed

How to edit GOROOT in Gocode's build context #494

grapehunter opened this issue Jan 23, 2018 · 2 comments

Comments

@grapehunter
Copy link

grapehunter commented Jan 23, 2018

I have already set a environment variable.

image

Goroot in $env & go env are both right.
But it has a incorrect value "C:\go" in gocode's build context.

My os is windows 10 1709 and version of golang is v1.9.3

@nsf
Copy link
Owner

nsf commented Jan 23, 2018

Gocode passes GOROOT env var (and few others) from client to server on every autocompletion request. Make sure it's correctly set on the client and it should work.

@grapehunter
Copy link
Author

@nsf
Thank you.
I modified go.gopath & go.goroot in vscode ,and it works fine now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants