gocode
gocode copied to clipboard
Install gocode with gvm pkgset
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?
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.
Have no idea what gvm is.