Youcompleteme: On Vim 8.0, I get error: YouCompleteMe unavailable: requires Vim 7.4.143+

Created on 25 Jan 2017  Â·  7Comments  Â·  Source: ycm-core/YouCompleteMe

Issue Prelude

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:

  • [x ] I have read and understood YCM's CONTRIBUTING document.
  • [ x] I have read and understood YCM's CODE_OF_CONDUCT document.
  • [ x] I have read and understood YCM's README, especially the
    Frequently Asked Questions section.
  • [ x] I have searched YCM's issue tracker to find issues similar to the one I'm
    about to report and couldn't find an answer to my problem. (Example Google
    search.
    )
  • [ x] If filing a bug report, I have included the output of vim --version.
  • [ ] If filing a bug report, I have included the output of :YcmDebugInfo.
  • [ ] If filing a bug report, I have attached the contents of the logfiles using
    the :YcmToggleLogs command.
  • [ x] If filing a bug report, I have included which OS (including specific OS
    version) I am using.
  • [ ] If filing a bug report, I have included a minimal test case that reproduces
    my issue, including what I expected to happen and what actually happened.
  • [ ] If filing a installation failure report, I have included the entire output
    of install.py (or cmake/make/ninja) including its invocation
  • [ x] I understand this is an open-source project staffed by volunteers and
    that any help I receive is a selfless, heartfelt _gift_ of their free time. I
    know I am not entitled to anything and will be polite and courteous.
  • [ x] I understand my issue may be closed if it becomes obvious I didn't
    actually perform all of these steps.

Thank you for adhering to this process! It ensures your issue is resolved
quickly and that neither your nor our time is needlessly wasted.

Issue Details

Provide a clear description of the problem, including the following key
questions:

  • What did you do?
    I installed YCM using Vundle. But got an error saying YCM is unavailable.

Include steps to reproduce here.

  1. Added Plugin 'Valloric/YouCompleteMe' to .vimrc file.
  2. After saving the file, I ran :PluginInstall [and later on i tried :PluginUpdate as well with similar result]
  3. I got this message in red at the bottom of vim file: YouCompleteMe unavailable: requires Vim 7.4.143+
  4. 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.

  • What did you expect to happen?
    Expected YCM to be installed like other plugins.

Include description of the expected behaviour.

  • What actually happened?
    YCM gave the error.

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.

Diagnostic data

Output of vim --version

VIM - 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.

Output of YcmDebugInfo

Place the output here, or a link to a gist.

Contents of YCM, ycmd and completion engine logfiles

Include link here to a gist containing the entire logfiles for ycm, ycmd
and any completer logfiles listed by :YcmToggleLogs.

OS version, distribution, etc.

El Capitan, version 10.11.6

Include system information here.

Output of build/install commands

Include link to a gist containing the invocation and entire output of
install.py if reporting an installation issue.

Most helpful comment

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.

All 7 comments

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.

  • [ ] alias vi="vim"
  • [ ] export EDITOR=/path/to/vim
Was this page helpful?
0 / 5 - 0 ratings