Vim - YouCompleteMe RestartServer constantly shuts down

I use vim and it really works fine.

However, now I want to try Autocomplete (mainly using C and golang), and therefore I learned the YouCompleteMe plugin .

I read the complete instructions and copied them step by step until I understood them. But when I know starting with Vim, I get the following error message:

Server ycmd SHUT DOWN (restart using YcmRestartServer). Stderr (last 30 lines):

Of course, I was looking for it, and I found some closed questions about github, but what I did not find was a solution. There is one statement, the meaning of which I do not understand:

You can also force the use of the custom libclang library with the flag -DEXTERNAL_LIBCLANG_PATH = / path / to / libclang.so (the library will end with .dylib on Mac). Again, this flag will be used instead of other flags. If you compiled LLVM from source, this is the flag you should use.

bold sentence, does this mean that I, which does not use system-clang / llvm (instead of the downloaded binaries , I want semantic support for C ), I need to use the DEXTERNAL .... flag?

I used this command to create make files:

cmake -G "Unix Makefiles" -DPATH_TO_LLVM_ROOT=~/ycm_temp/llvm_root_dir . ~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp

EDIT: I discovered this problem on github. There is a lot of information.

+4
source share
1 answer

The following works for me:
cp ~/ycm_temp/llvm_root_dir/lib/libclang.so.3.7 /.vim/bundle/YouCompleteme/third_party/ycmd

0
source

Source: https://habr.com/ru/post/1607295/


All Articles