根据
Github的介绍,我刚刚编译并安装了Vim,Vundle和
YouCompleteMe插件.
但是,在我的Vim中,YouCompleteMe插件不能正常工作.它可以自动完成变量的名称,但它不会自动完成STL对象(向量,映射)的操作.甚至无法自动完成“this->”在课堂上它总是告诉我“(^ U ^ N ^ P)找不到模式”.
你有没有看过这个?
我使用Ubuntu 12.04.
我该怎么办?
但是,在我的Vim中,YouCompleteMe插件不能正常工作.它可以自动完成变量的名称,但它不会自动完成STL对象(向量,映射)的操作.甚至无法自动完成“this->”在课堂上它总是告诉我“(^ U ^ N ^ P)找不到模式”.
你有没有看过这个?
我使用Ubuntu 12.04.
我该怎么办?
现在,github repo的自述文件现在解决了这个问题.
This is caused by an issue with libclang. Compiling from clang the binary uses the correct default header search paths but compiling from libclang.so does not. The issue seems to impact some OS’s more than others. It appears that OS X Mavericks in particular has problems with this.
The current workaround is to call echo | clang -v -E -x c++ – and look at the paths under the #include <…> search starts here: heading. You should take those paths,prepend -isystem to each individual path and append them all to the list of flags you return from your FlagsForFile function in your .ycm_extra_conf.py file.
您可能还想看看相应的issue
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。