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

Compiler support not working? #24

Open
myitcv opened this issue Feb 28, 2014 · 4 comments
Open

Compiler support not working? #24

myitcv opened this issue Feb 28, 2014 · 4 comments

Comments

@myitcv
Copy link
Contributor

myitcv commented Feb 28, 2014

Using commit 76f1ece of vim-gocode and:

$ gvm version
Go Version Manager v1.0.19 installed at /home/myitcv/.gvm
$ vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Feb 25 2014 10:54:46)
Included patches: 1-192
$ echo $GOROOT
/home/myitcv/.gvm/gos/go1.2
$ echo $GOPATH
/home/myitcv/gostuff:/home/myitcv/.gvm/pkgsets/go1.2/global

The simple hello world example:

// /home/myitcv/gostuff/src/github.com/myitcv/hello/hello.go

package main
import "fmt"

func main() {
  fmt.Printf("Hello world!\n")
}

Checking :set makeprg:

makeprg=go build $* ~/gostuff/src/github.com/myitcv/hello

Then :make produces:

can't load package: package /home/myitcv/gostuff/src/github.com/myitcv/hello: import "/home/myitcv/gostuff/src/github.com/myitcv/hello": cannot import absolute path

Any thoughts on what I'm missing here?

Incidentally, :set makeprg=go\ build works as expected.

Thanks in advance. Great integration with gocode

@volgar1x
Copy link
Owner

There still are some work to accept multiple path contained in $GOPATH

@myitcv
Copy link
Contributor Author

myitcv commented Feb 28, 2014

Ah, thanks for the heads up.

@volgar1x
Copy link
Owner

Have you tried to manually set a single path to $GOPATH?

@myitcv
Copy link
Contributor Author

myitcv commented Feb 28, 2014

No change unfortunately.

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

2 participants