Vim error prompt solution: The ycmd server SHUT DOWN (restart with ':YcmRestartServer'). Unexpected exit code 1.

1. There is an error message when vim opens

After viminstalling YouCompleteMethe plug-in, you may get an error message like the following when vimyou open the file:

The ycmd server SHUT DOWN (restart with ':YcmRestartServer'). Unexpected exit code 1.

2. Solutions

to the installation path YouCompleteMeof

imaginemiracle@im-Linux:~$ cd  ~/.vim/plugged/YouCompleteMe

Execute the following command

imaginemiracle@im-Linux:~$ /usr/bin/python install.py
imaginemiracle@im-Linux:~$ /usr/bin/python2 install.py

At this point, the error message disappears and vimcan be automatically completed.

Guess you like

Origin blog.csdn.net/qq_36393978/article/details/127532566