记一次使用YouCompleteMe报错的解决方案
The ycmd server shut down … option to python 2 interpreter path
我安装完YCM后,用vim编辑的时候报错“The ycmd server shut down option to python 2 interpreter path”
我的系统(UKylin)的Python解释器有:
/usr/bin/python
/usr/bin/python2
/usr/bin/python3
我的编译方式
cd ~/.vim/bundle/YouCompleteMe/
./install.py --clang-completer
用户模式下可能报Permission Denied,修改~/.vim/bundle/YouCompleteMe/third_party/ycmd/PYTHON_USED_DURING_BUILDING的权限即可。
报错The ycmd server shut down … option to python 2 interpreter path解决方案
把~/.vim/bundle/YouCompleteMe/third_party/ycmd/PYTHON_USED_DURING_BUILDING的写的解释器**/usr/bin/python** 添加为vimrc中的解释器即可
原因解释
ycmd server的编译环境和运行环境不一致导致服务起不来,我的系统默认的编译环境是**/usr/bin/python**,但运行环境在vimrc文件中我写成了**/usr/bin/python3**,导致ycmd服务起不来