carlhuda / janus

Vim distribution
7.88k stars 814 forks source link

GVM with go-vim #668

Open bstromski opened 8 years ago

bstromski commented 8 years ago

When using GVM a system golang doesn't have to be installed. The PATH for go changes depending on which version of golang your using.

Since /usr/bin/go does not exist vim-go is unable to pull in the dependencies automatically.

echo $GOPATH
/home/bstromski/.gvm/pkgsets/go1.7/global

echo $GOROOT
/home/bstromski/.gvm/gos/go1.7

which go
/home/bstromski/.gvm/gos/go1.7/bin/go

# From vim when running
:GoInstallBinaries
vim-go: go executable not found.

This is resolved by creating a symlink for /usr/bin/go to the go binary, but not a real fix since this changes when go version changes and symlink breaks. I can put some logic into the gvm code to fix, but i feel like the vim path should just work.

I tried this on a fresh pathogen install without janus and it works as expected btw.

kalbasit commented 8 years ago

Please report this upstream to vim-go. Looking at fatih/vim-go#85 it seems to have been fixed a while ago.