-
Notifications
You must be signed in to change notification settings - Fork 34
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
Installation on OS X #2
Comments
You successfully installed vim-gocode through pathogen, it seems to be a bug at first sight. Can you run the command
And then
And tell me the output? |
:echo ReadLink(g:gocode_path)
:echo ReadLink(@%)
Other miscellaneous info: this is on a MacBook Air with a fresh install of OS-X 10.8.4 and a case-sensitive filesystem. |
I haven't tested this plugin on other system than Linux. Could you please edit the ReadLink function inside vim-gocode/ftplugin/go/pkg.vim to make it works (ie get the full path) on your OS ? |
I will update the readlink fn. go is definitely installed with good GOPATH and GOROOT env vars. Hopefully together we can get this to be compatible with Mac. Best, On Sep 2, 2013, at 11:15 PM, Blackrush [email protected] wrote:
|
I found a good starting point to use readlink on OS X : http://stackoverflow.com/questions/1055671/how-can-i-get-the-behavior-of-gnus-readlink-f-on-a-mac |
Might I recommend making a note that it currently doesn't work on osx? Spent a while beating myself over the head until I checked the issues. |
Also, as a solution for future mac users: brew install coreutils maybe re-source profile. (I had to get which readlink to return the correct path) |
@SeanBr nice job, gave a solution an hour before I went looking for it! |
Also FYI things start breaking if there are spaces in folder names. I'll open up an issue about it later. |
I renamed this issue "Installation on OS X", created a wiki article and linked it in the README. Tell me if I have done anything wrong. |
I get the same |
Can you please execute the commands that I previously wrote? |
I'm having the same issue, already executed both commands and no luck. |
What is exactly the output ? |
:echo ReadLink(g:gocode_path)
:echo ReadLink(@%)
|
Have you install |
Yes, installed coreutils through brew and made the symlink. |
Try |
Same output
|
vim-gocode needs some OS X integration, wait until someone patch this problem or make it yourself (I don't own a Mac) |
Can your provide me any orientation on where the issue could be. Thanks for the help either way! |
You can look here https://github.com/Blackrush/vim-gocode/blob/master/ftplugin/go/pkg.vim#L10 as a first step |
what is the output of: which brew It seems to me that you are using osx's readlink still. I've installed vim-gocode 3 times now on seperate OSX installs and after doing the 'brew install coreutils' and linking greadlink into my path (ahead of osx readlink) it's been perfect. My guess is your brew bin path (most likely /usr/local/bin) is at the end of your path. |
|
Yep, that's your issue. You need to make sure your home brew path /usr/local/bin is the first entry into your path. This way anything that replaces an osx default will be used instead of the osx one. Do this by editing your bash profile, bash rc, or system profile to something that contains: export PATH=/usr/local/bin:$PATH |
I changed my .zshrc file to fix the problem with the order of paths. Now my output is correct.
I'm still having the same issue. Can it be an issue with my GOPATH being setup'd incorrectly? It seems correct to me. |
What does output, in VIM, |
It shows me the correct GOPATH. |
I solved the problem by installing Previously I tried |
does |
I followed the instructions to install on Mac OS X, but when I try completion with CTRL X + CTRL O, it gives the following error: Omni completion (^O^N^P) Pattern not found What am I missing? |
Have you installed gocode ? Do you have it in your PATH ? |
Ah sorry. So I just did a "go build" in gocode folder and copied the generated binary to /usr/local/bin. Is it correct? |
A simple UPDATEf93b0a7 adds some instruction |
this is why readlink does not work properly: http://superuser.com/questions/31353/path-in-vim-doesnt-match-terminal |
The install lists pathogen as "todo". Is it not yet ready?
When I try to run
:CurPkg
, I get:You are not in a go package
The text was updated successfully, but these errors were encountered: