I have vim 8.0 installed.
I installed YCM using Vundle. But got this error from YCM.
Any pointers please?
Thanks.
Please complete these steps and check these boxes (by putting an x inside
the brackets) _before_ filing your issue:
vim --version.:YcmDebugInfo.:YcmToggleLogs command.install.py (or cmake/make/ninja) including its invocationThank you for adhering to this process! It ensures your issue is resolved
quickly and that neither your nor our time is needlessly wasted.
Provide a clear description of the problem, including the following key
questions:
Include steps to reproduce here.
- Added Plugin 'Valloric/YouCompleteMe' to .vimrc file.
- After saving the file, I ran :PluginInstall [and later on i tried :PluginUpdate as well with similar result]
- I got this message in red at the bottom of vim file: YouCompleteMe unavailable: requires Vim 7.4.143+
- I punched in "l" (small L) to look into logs and i don't see any error there.
Include description of a minimal test case, including any actual code required
to reproduce the issue.
Just the steps highlighted above.
Include description of the expected behaviour.
Include description of the observed behaviour, including actual output,
screenshots, etc.
Logs of vim :PlugInUpdate -
[2017-01-25 18:10:13] Plugin Valloric/YouCompleteMe
[2017-01-25 18:10:13] $ cd '/Users/admin/.vim/bundle/YouCompleteMe' && git pull && git submodule update --init --recursive
[2017-01-25 18:10:13] > Already up-to-date.
vim --versionVIM - Vi IMproved 8.0 (2016 Sep 12, compiled Sep 19 2016 20:38:47)
MacOS X (unix) version
Included patches: 1-5
Compiled by Homebrew
Huge version without GUI.
Place the output here, or a link to a gist.
YcmDebugInfoPlace the output here, or a link to a gist.
Include link here to a gist containing the entire logfiles for ycm, ycmd
and any completer logfiles listed by:YcmToggleLogs.
El Capitan, version 10.11.6
Include system information here.
Include link to a gist containing the invocation and entire output of
install.pyif reporting an installation issue.
you did run instal.py right? It's not in your steps, but it is clearly necessary (if you read the install docs).
I'm not sure that would account for the Vim version error, but that could be a separate issue (like we're just reporting the wrong error)
What is the output of the command :echo v:version in Vim?
:echo v:version response -
703
On 25 January 2017 at 21:10, micbou notifications@github.com wrote:
What is the output of the command :echo v:version in Vim?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Valloric/YouCompleteMe/issues/2515#issuecomment-275103969,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIBxVrwT_ZoHpt-4HQmDGOBDccEVltVzks5rV0nggaJpZM4LtT2b
.
So, it's an issue with your version of Vim, not YCM (the command should return 800 with Vim 8.0). My guess is that you are starting system Vim instead of the Homebrew one. Did you install MacVim with the following command:
brew install macvim --with-override-system-vim
? The --with-override-system-vim option will create symlinks such that typing vim in a terminal will start MacVim instead of system Vim.
Sorry about this really late reply.
You were right about the diagnosis.
Many many thanks for you time and effort - for a noob like me, you have
been a god send - stuff is working for me now.
Regards,
tuhina
On 28 January 2017 at 02:14, micbou notifications@github.com wrote:
Closed #2515 https://github.com/Valloric/YouCompleteMe/issues/2515.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Valloric/YouCompleteMe/issues/2515#event-939683275,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIBxVqeEARclx7tjVwZCpJbse0VmuQ-Aks5rWjP8gaJpZM4LtT2b
.
@micbou Good Job
In my case my vi editor (:echo v:version --> 703) was invoked instead of vim (:echo v:version --> 800).
following got rid of the error.
Most helpful comment
So, it's an issue with your version of Vim, not YCM (the command should return
800with Vim 8.0). My guess is that you are starting system Vim instead of the Homebrew one. Did you install MacVim with the following command:? The
--with-override-system-vimoption will create symlinks such that typingvimin a terminal will start MacVim instead of system Vim.