Vim - YouCompleteMe RestartServer 不断关闭
Vim - YouCompleteMe RestartServer constantly shutting down
我正在使用 vim,它真的很好用。
但是,现在我想尝试 AutoCompletion(主要使用 C 和 golang),因此了解了插件 YouCompleteMe。
我阅读了完整的说明并逐步复制了它们,到目前为止我已经理解了它们。但是当我知道开始 Vim 时,我确实收到以下错误消息:
The ycmd server SHUT DOWN (restart with :YcmRestartServer). Stderr (last 30 lines):
当然我用谷歌搜索了一下,在 github 上发现了一些已解决的问题,但我没有找到解决方案。有一种说法我不理解其意义:
You could also force the use of a custom libclang library with -DEXTERNAL_LIBCLANG_PATH=/path/to/libclang.so flag (the library would end with .dylib on a Mac). Again, this flag would be used instead of the other flags. If you compiled LLVM from source, this is the flag you should be using.
那里的加粗句,是不是意味着我,谁不使用system-clang/llvm(而是下载的二进制文件,我想要 C) 的语义支持,必须使用 DEXTERNAL.... 标志?
我使用此命令构建 makefile:
cmake -G "Unix Makefiles" -DPATH_TO_LLVM_ROOT=~/ycm_temp/llvm_root_dir . ~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp
编辑:我在 github 上打开了 this issue。信息量很大。
以下对我有用:
cp ~/ycm_temp/llvm_root_dir/lib/libclang.so.3.7
/.vim/bundle/YouCompleteme/third_party/ycmd
我正在使用 vim,它真的很好用。
但是,现在我想尝试 AutoCompletion(主要使用 C 和 golang),因此了解了插件 YouCompleteMe。
我阅读了完整的说明并逐步复制了它们,到目前为止我已经理解了它们。但是当我知道开始 Vim 时,我确实收到以下错误消息:
The ycmd server SHUT DOWN (restart with :YcmRestartServer). Stderr (last 30 lines):
当然我用谷歌搜索了一下,在 github 上发现了一些已解决的问题,但我没有找到解决方案。有一种说法我不理解其意义:
You could also force the use of a custom libclang library with -DEXTERNAL_LIBCLANG_PATH=/path/to/libclang.so flag (the library would end with .dylib on a Mac). Again, this flag would be used instead of the other flags. If you compiled LLVM from source, this is the flag you should be using.
那里的加粗句,是不是意味着我,谁不使用system-clang/llvm(而是下载的二进制文件,我想要 C) 的语义支持,必须使用 DEXTERNAL.... 标志?
我使用此命令构建 makefile:
cmake -G "Unix Makefiles" -DPATH_TO_LLVM_ROOT=~/ycm_temp/llvm_root_dir . ~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp
编辑:我在 github 上打开了 this issue。信息量很大。
以下对我有用:
cp ~/ycm_temp/llvm_root_dir/lib/libclang.so.3.7
/.vim/bundle/YouCompleteme/third_party/ycmd