-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Trying to install YCM for hours, unsuccessfully. #1605
Comments
Try to unlink the brewed python, reinstall YCM through the |
All right, I did:
Reinstall YCM:
When running vim, this is the result:
Only two errors, we're getting closer. |
is it just MacVim or terminal vim as well? |
I hadn't used the gui version, but now that you've mentioned it, I've tried it, and the error messages are identical. |
looks like there's still something wrong with you're python. Are you sure you've unbrewed correctly? Look #8 (comment) and the rest of the issue for other tips. |
Abouth #8 (comment) I've read it about 4 times today, and it's a mess of contradictory theories, solutions and whatnots, if you could give me more concrete instructions, I would be grateful.
There's a contradiction between the version of the PythonLibs, and the PythonInterp, 2.7 and 2.6 respectively. A friend told me he had the same problem and he solved it passing some options to cmake but he didn't tell me which ones. |
I can't because I've never experience any problem installing YCM since the first day I tried, sorry. Regarding the flags, check the the https://github.com/Valloric/ycmd/blob/master/build.py |
You didn't experience any issue installing YCM? I have a fresh install of Yosemite, I wasn't even using Homebrew, I just installed it because the README requires it for installing Cmake. |
That file is what builds ycmd and there you should see what flags you can pass. |
Should I? What a flag looks like? |
There is an env variable |
As neverpanic mentions in issue number 8, there are two flags to be passed to the compiler(Cmake) |
I guess you should ask over there since this is really a configuration problem and not a YCM bug. |
Well, that issue is pretty old and messy. Not everybody has the time to read it through, like I did a couple of times. There's good advice in it, and a lot of noise too. That's why I decided to open a new issue, it maybe helpful for users in my situation. I don't know but, why did you close this issue? |
I'll quote myself:
|
Who's saying it's a bug? I'm not. An issue is not a but, is it? I'm just trying to get some help for installing the YCM plugin, I'll quote myself: |
Then you should look at the first paragraph in CONTRIBUTING.md:
|
Oh all right then, I hadn't read that. Thanks? |
I meet this problem before. It is the wrong path to Python which is not I set in YCM building. May sure there's only one Python interpreter on you mac, or you can set the right path to Python by g:ycm_path_to_python_interpreter |
Reinstalling vim/macvim with homebrew using fixed this issue for me. |
I never use homebrew. So never have such issues. But glad that you solved it. |
Just encountered this issue as well - uninstalling vim/macvim via brew as @mkolodny mentioned fixed it for me too. |
uninstall was not a solution in my case, vim complained at the very beginning, that is not finding python support ( I've built vim8 from source - from github.com/vim/vim.git |
@Rhonin1220 That's the answer! |
@Rhonin1220 Thanks! |
@Rhonin1220 Works, thanks a lot! |
I'm on Yosemite, MacVim version 7.4 compiled from source(not homebrew), works fine.
I'm using cmake version 3.3.0, installed using Homebrew.
ycm_build
directory, cd into it.cmake -G "Unix Makefiles" . ~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp
Then I run:
And upon starting Vim, this is what I see:
Something to do with Python, which I have installed using Homebrew. I know it has something to do with the output of cmake:
But don't know exactly how to fix it. Any help will be wellcome.
The text was updated successfully, but these errors were encountered: