Skip to content

Compiler support not working? #24

Open
@myitcv

Description

@myitcv

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions