gocode icon indicating copy to clipboard operation
gocode copied to clipboard

Install gocode with gvm pkgset

Open seoyoochan opened this issue 8 years ago • 2 comments

Is there anyone using gvm(go version manager)? I tried to install gocode in gvm global pkgset but failed.

➜  ~ gvm use 1.6.2
Now using version go1.6.2
➜  ~ gvm pkgset use global
Now using version go1.6.2@global
➜  ~  go get -u github.com/nsf/gocode
➜  ~ go list
can't load package: package .: no buildable Go source files in /Users/seoyoochan

➜  ~ go install gocode
can't load package: package gocode: cannot find package "gocode" in any of:
    /Users/seoyoochan/.gvm/gos/go1.6.2/src/gocode (from $GOROOT)
    /Users/seoyoochan/.gvm/pkgsets/go1.6.2/global/src/gocode (from $GOPATH)
    /Users/seoyoochan/.gvm/pkgsets/go1.6.2/global/src/gocode

Any workaround or solution for this?

seoyoochan avatar Apr 21 '16 15:04 seoyoochan

You need to be where it is to run go list or install, or pass the full path:

go list github.com/nsf/gocode, go install github.com/nsf/gocode, etc.

Maybe spend sometime learning the Go toolchain before using things like gvm.

OneOfOne avatar May 19 '16 02:05 OneOfOne

Have no idea what gvm is.

nsf avatar May 22 '16 06:05 nsf