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 use with vscode #227

Closed
luohoufu opened this issue Sep 26, 2016 · 1 comment
Closed

how to use with vscode #227

luohoufu opened this issue Sep 26, 2016 · 1 comment

Comments

@luohoufu
Copy link

when i install gvm i found it can't work with vscode.
vscode can't find gopath
BTW, i open zsh shell can't use go version
how to resolve the problem, plesea tell me,tks!

@markeissler
Copy link

Can I assume you have the Go for Visual Studio Code extension installed? If so, you need to add a workspace setting that looks like this:

// Place your settings in this file to overwrite default and user settings.
{
    "go.gopath": "/Users/me/.gvm/pkgsets/go1.6.3/my-project-pkgset:/Users/me/.gvm/pkgsets/go1.6.3/global",
    "go.goroot": "/Users/me/.gvm/gos/go1.6.3"
}

Also, you need to setup your project using the gvm linkthis command. For example:

>cd /Users/me/dev/my-project
>gvm linkthis github.com/me/my-project

That will create a symlink from the my-project-pkgset/src/github.com/me/my-project directory to your current directory (that is, to your local project directory outside of your pkgset).

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

3 participants