有人知道左边那个自动提示错误的怎么关闭吗?强迫症真的受不了
vim吧
全部回复
仅看楼主
level 1
wei2hw 楼主
有人知道左边那个自动提示错误的怎么关闭吗?强迫症真的受不了[喷]
2019年04月01日 01点04分 1
level 1
wei2hw 楼主
用的是youcompleteme插件,但是.vimrc是按着别人给的配置的,不知道这功能是ycm的还是自带的
2019年04月01日 01点04分 2
level 3
可以看看是不是一个叫syntastic的插件,在vimrc里删掉或者改一下设置不自动检查
2019年04月03日 05点04分 5
level 1
不过提示你应该设置一下C/C++头文件路径的环境变量,它找的到这些头文件,就不报错了
2019年05月06日 12点05分 6
兄弟能教教我吗?我最近也遇到这个问题了,我是windows系统
2020年09月07日 08点09分
level 4
楼主解决了吗
2020年09月07日 08点09分 8
level 1
楼主解决了吗,告诉我一下,我强迫症我快疯了
2020年09月15日 03点09分 9
level 5
设置下这个
let g:ycm_enable_diagnostic_signs = 0
2021年04月26日 04点04分 10
level 1
我已经成功解决了,主要是参考stackoverflow和github上的
https://stackoverflow.com/questions/66346896/how-to-fix-ycm-printing-use-of-undeclared-identifier-cout-or-no-member-named
https://github.com/ycm-core/YouCompleteMe/issues/2885#issuecomment-360835891
解决方法就是:你的 .ycm_extra_conf.py 文件里面需要配置c++版本的路径/usr/include/c++/7.2.1 要放在 /usr/include 前面!这个很重要!
可以通过 g++ --version命令查看你的g++版本,c++的include目录是在/usr/include/c++下面,根据你的版本自己找。
You are getting these errors because the order of your -isystem flags is wrong: /usr/include/c++/7.2.1 must be included before /usr/include. Try the following .ycm_extra_conf.py file:
def FlagsForFile( filename ):
return { 'flags': [
'-Wall',
'-Wextra',
'-Werror',
'-std=c++11',
'-x',
'c++',
'-isystem',
'/usr/include/c++/7.2.1',
'-isystem',
'/usr/include/c++/7.2.1/x86_64-pc-linux-gnu',
'-isystem',
'/usr/include/c++/7.2.1/backward',
'-isystem',
'/usr/local/include',
'-isystem', '/usr/include',
] }
2021年06月30日 04点06分 11
1