Youcompleteme: YouCompeteMe unavailable:YCM support libs too old,please recompile

Created on 4 Jun 2014  路  11Comments  路  Source: ycm-core/YouCompleteMe

HI,
today I update the ycm,I compile the clang not long ago.

clang -v
clang version 3.4.1 (tags/RELEASE_34/dot1-final)
Target: i386-pc-linux-gnu
Thread model: posix
Found candidate GCC installation: /usr/lib/gcc/i686-redhat-linux/4.8.2
Selected GCC installation: /usr/lib/gcc/i686-redhat-linux/4.8.2

but now I open vim ,it鈥檚 an error.
YouCompeteMe unavailable:YCM support libs too old,please recompile

the ycmdebuginfo:
Printing YouCompleteMe debug information...
to deal with function 99_DebugInfo There was an error:
Line 2:
Traceback (most recent call last):
File "", line 1, in
NameError: name 'ycm_state' is not defined
E858: Eval did not return a valid python object

So,I need to recompile the clang or what ?
thank you.

Most helpful comment

From the docs, to recompile YCM means to compile it again just like when you installed it for the first time:

with semantic support for C-family:

cd ~/.vim/bundle/YouCompleteMe
./install.py --clang-completer

or, without semantic support for C-family:

cd ~/.vim/bundle/YouCompleteMe
./install.py

All 11 comments

No you need to recompile ycmd. See the docs.

FWIW, the quick answer which did the trick for me is to update the submodules:

git submodule update --recursive

To this extend, the docs is of no-help whatsoever, as it only mentions a fresh install, and not an update... It would be nice if install.sh could be smart enough to do this automatically...

From the docs, to recompile YCM means to compile it again just like when you installed it for the first time:

with semantic support for C-family:

cd ~/.vim/bundle/YouCompleteMe
./install.py --clang-completer

or, without semantic support for C-family:

cd ~/.vim/bundle/YouCompleteMe
./install.py

@iamaziz your point being ?

@lacombar recompile :-)

but it's not enough. When you update, you will have to upgrade the submodules, as well as recompile.

.... and there is no documentation about this.

Aha, not sure! however all I needed was to get rid of that annoying warning message
YouCompleteMe unavailable: YCM support libs too old, PLEASE RECOMPILE
that pops up every time I open vim. I did the recompile mentioned in the docs and it worked.

as I originally did, but it didn't work until I upgraded all the submodules

$rm -fr ~/.vim/bundle/YouCompleteMe
and reinstall with Vundle

then:
cd ~/.vim/bundle/YouCompleteMe
./install.py --clang-completer

works for me :)

@lacombar is correct. Sometimes when you update YCM, you also have to update all submodules. If you don't, the installation will complete successfully, but the error message won't go away.

Was this page helpful?
0 / 5 - 0 ratings