janus icon indicating copy to clipboard operation
janus copied to clipboard

GVM with go-vim

Open bstromski opened this issue 8 years ago • 1 comments

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.

bstromski avatar Sep 06 '16 21:09 bstromski

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

kalbasit avatar Sep 06 '16 23:09 kalbasit