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

go executable not found #85

Closed
thejchap opened this issue Jun 4, 2014 · 8 comments
Closed

go executable not found #85

thejchap opened this issue Jun 4, 2014 · 8 comments

Comments

@thejchap
Copy link

thejchap commented Jun 4, 2014

Hi,
For some reason vim-go can't find the go executable, even though it's available:

$ vi
vim-go: go executable not found.
Press ENTER or type command to continue
$ which go
/usr/local/bin/go

Installed using Homebrew on Yosemite

Any thoughts?

@fatih
Copy link
Owner

fatih commented Jun 4, 2014

It uses Vim's executable function to find if the executable is existing or not. Yosemite is quite well, probably Vim's internal doesn't play nice with Yosemite. Need to look for it, however I do not use Yosemite therefore it's quite difficult for me to test it. For now you can remove the checking at here: https://github.com/fatih/vim-go/blob/master/plugin/install.vim#L38

@thejchap
Copy link
Author

thejchap commented Jun 4, 2014

Thanks, removed the check. Will leave up to you if you want to leave open or not. I appreciate the speed reply

@fatih
Copy link
Owner

fatih commented Jun 5, 2014

Let's close this, vim-go is used for several OS's and Yosemite is not in public available state. Plus it makes me feel bad when a issue is not solved :) I'm using already MAC OS X and after Yosemite is up I'm going to check it again.

@fatih fatih closed this as completed Jun 5, 2014
@lindemannrichard
Copy link

I had the same problem, I have fixed by adding let g:go_bin_path to the vimdc

NeoBundle 'fatih/vim-go'
  let g:go_disable_autoinstall = 1
  let g:go_fmt_autosave = 1
  let g:go_bin_path = expand("$HOME/.gvm/pkgsets/go1.2.1/global/bin/")

@fatih
Copy link
Owner

fatih commented Jun 5, 2014

What gives

:echo executable('go')  

for you ? It should output a 1. For me it outputs a 1 and also its in my PATH.

@lindemannrichard
Copy link

Okay, it seems that the latest version of vim-go has fixed the problem.

I do not have to do it anymore:

  let g:go_bin_path = expand("$HOME/.gvm/pkgsets/go1.2.1/global/bin/")

@inancgumus
Copy link

The same error on Sierra. @lindemannrichard The trick didn't worked for me. Any ideas?

@inancgumus
Copy link

False alarm. It works.

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

4 participants