加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

Vim – YouCompleteMe RestartServer不断关闭

发布时间:2020-12-16 01:56:29 所属栏目:安全 来源:网络整理
导读:我正在使用 vim,它真的很棒. 但是,现在我想尝试AutoCompletion(主要使用C和golang),因此了解了插件YouCompleteMe. 我阅读完整的说明并逐步复制它们到目前为止我理解它们.但是当我知道启动Vim时,我收到以下错误消息: The ycmd server SHUT DOWN (restart wit
我正在使用 vim,它真的很棒.

但是,现在我想尝试AutoCompletion(主要使用C和golang),因此了解了插件YouCompleteMe.

我阅读完整的说明并逐步复制它们到目前为止我理解它们.但是当我知道启动Vim时,我收到以下错误消息:

The ycmd server SHUT DOWN (restart with :YcmRestartServer). Stderr (last 30 lines):

当然我用Google搜索了,我在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.

那里的大胆句子,是否意味着,我不使用系统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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读