Vim-go: Can't install gogetdoc using :GoInstallBinaries

Created on 23 May 2016  路  1Comment  路  Source: fatih/vim-go

I'm trying to make vim-go work properly, but I stack at GoInstallBinaries step.

Steps to reproduce:

  1. Add line Plug 'fatih/vim-go'
  2. Run :PlugInstall using vim-go plugin installer
  3. Run :GoInstallBinaries
  4. vim version - 7.4
  5. vim-go version - master branch
  6. go version - 1.6.2

Here are the error after running :GoInstallBinaries:

vim-go: gogetdoc not found. Installing github.com/zmb3/gogetdoc to folder /home/timur/code/third-party/bin/                                                          
Error installing github.com/zmb3/gogetdoc: github.com/zmb3/gogetdoc (download)
Fetching https://golang.org/x/tools/go/buildutil?go-get=1
Parsing meta tags from https://golang.org/x/tools/go/buildutil?go-get=1 (status code 200)
get "golang.org/x/tools/go/buildutil": found meta tag main.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at https://golang.or
g/x/tools/go/buildutil?go-get=1
get "golang.org/x/tools/go/buildutil": verifying non-authoritative meta tag
Fetching https://golang.org/x/tools?go-get=1
Parsing meta tags from https://golang.org/x/tools?go-get=1 (status code 200)
golang.org/x/tools (download)
Fetching https://golang.org/x/tools/go/loader?go-get=1
Parsing meta tags from https://golang.org/x/tools/go/loader?go-get=1 (status code 200)
get "golang.org/x/tools/go/loader": found meta tag main.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at https://golang.org/x
/tools/go/loader?go-get=1
get "golang.org/x/tools/go/loader": verifying non-authoritative meta tag
Fetching https://golang.org/x/tools/go/ast/astutil?go-get=1
Parsing meta tags from https://golang.org/x/tools/go/ast/astutil?go-get=1 (status code 200)
get "golang.org/x/tools/go/ast/astutil": found meta tag main.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at https://golang.
org/x/tools/go/ast/astutil?go-get=1
get "golang.org/x/tools/go/ast/astutil": verifying non-authoritative meta tag
runtime
# runtime
/usr/local/go/src/runtime/os2_linux_generic.go:12: _SS_DISABLE redeclared in this block
        previous declaration at /usr/local/go/src/runtime/os2_linux.go:8
/usr/local/go/src/runtime/os2_linux_generic.go:13: _NSIG redeclared in this block
        previous declaration at /usr/local/go/src/runtime/os2_linux.go:9
/usr/local/go/src/runtime/os2_linux_generic.go:14: _SI_USER redeclared in this block
        previous declaration at /usr/local/go/src/runtime/os2_linux.go:10
/usr/local/go/src/runtime/os2_linux_generic.go:15: _SIG_BLOCK redeclared in this block
        previous declaration at /usr/local/go/src/runtime/os2_linux.go:11
/usr/local/go/src/runtime/os2_linux_generic.go:16: _SIG_UNBLOCK redeclared in this block
        previous declaration at /usr/local/go/src/runtime/os2_linux.go:12
/usr/local/go/src/runtime/os2_linux_generic.go:17: _SIG_SETMASK redeclared in this block
        previous declaration at /usr/local/go/src/runtime/os2_linux.go:13
/usr/local/go/src/runtime/os2_linux_generic.go:18: _RLIMIT_AS redeclared in this block
        previous declaration at /usr/local/go/src/runtime/os2_linux.go:14
/usr/local/go/src/runtime/os2_linux_generic.go:24: sigset redeclared in this block
        previous declaration at /usr/local/go/src/runtime/os2_linux.go:20
/usr/local/go/src/runtime/os2_linux_generic.go:26: rlimit redeclared in this block
        previous declaration at /usr/local/go/src/runtime/os2_linux.go:22
/usr/local/go/src/runtime/panic1.go:11: paniclk redeclared in this block
        previous declaration at /usr/local/go/src/runtime/panic.go:552
/usr/local/go/src/runtime/panic1.go:11: too many errors

UPDATE

After updating Go to the latest version _correctly_ (the previous errors was due to incorrect updating) and running :GoInstallBinaries - nothing happens. I still get errors like guru/gogetdoc: command not found when I try to use commands GoDoc, GoDef etc. What's wrong?

Most helpful comment

SOLVED

It was needed to add $GOPATH/bin directory to $PATH variable.

#~/.bashrc
...
export GOPATH=$HOME/code
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
...

>All comments

SOLVED

It was needed to add $GOPATH/bin directory to $PATH variable.

#~/.bashrc
...
export GOPATH=$HOME/code
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
...
Was this page helpful?
0 / 5 - 0 ratings

Related issues

MattFlower picture MattFlower  路  4Comments

orlangure picture orlangure  路  3Comments

andrejvanderzee picture andrejvanderzee  路  3Comments

korjavin picture korjavin  路  4Comments

cassiobotaro picture cassiobotaro  路  3Comments