TransWikia.com

"The ycmd server SHUT DOWN" with vim 8.1

Vi and Vim Asked by Luís de Sousa on August 31, 2021

I just upgraded my system, in the process vim was itself updated to version 8.1 (from 8.0). Now every time I start vim the following error is displayed:

The ycmd server SHUT DOWN (restart with ‘:YcmRestartServer’).
Unexpected error while loading the YCM core library. Type
‘:YcmToggleLogs ycmd_37049_stderr_x1nynwom.log’ to check the logs.

The log file contains the following:

   Traceback (most recent call last):
     File "/home/duque004/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/utils.py", line 498, in ImportAndCheckCore
       ycm_core = ImportCore()
     File "/home/duque004/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/utils.py", line 489, in ImportCore
       import ycm_core as ycm_core
   ImportError: libpython3.6m.so.1.0: cannot open shared object file: No such file or directory

The Python version installed in this system is 3.8.2, no shared objects are available for version 3.6. How can vim be instructed to use the correct one?

One Answer

Following the hint from filbranden I got rid of the error message by recompiling the plugin via Python. Vundle must be run in first place, to guarantee the latest version is fetched from the repository. From normal mode:

:PluginInstall

Then in the shell compilation must be triggered manually:

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

Answered by Luís de Sousa on August 31, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP