我正在使用一个相当大的C/C++包,我需要找到函数的定义.我通常使用grep ctags.
最近我尝试使用cscope而不是ctags并将其与Vundle一起安装.
我看到一些文件出现以下错误
E568: duplicate cscope database not added
我搜索了网络,发现了这个:
https://blogs.oracle.com/natarajan/entry/avoiding_duplicate_cscope_database_error
它不起作用.
我怎样才能解决这个问题?
对于cscopeverbose的Vim帮助如下:
If
'cscopeverbose'
is not set (the default),messages will not be printed
indicating success or failure when adding a cscope database. Ideally,you
should reset this option in your.vimrc
before adding any cscope databases,
and after adding them,set it. From then on,when you add more databases
within Vim,you will get a (hopefully) useful message should the database fail
to be added.
这里的问题是(a)有多个脚本试图加载cscope.out文件,(b)他们没有遵循在加载文件之前禁用“详细”cscope警告的最佳做法,然后重新启用它,如上面的帮助文本所示.
完整的错误输出应该告诉您哪个脚本正在触发此警告;对我来说它看起来像这样:
Error detected while processing /home/me_and/.vim/plugin/cscope_maps.vim: line 42: E568: duplicate cscope database not added
然后修复了〜/ .vim / plugin / cscope_maps.vim文件以在cs add …行之前添加set nocscopeverbose.我的这个文件的版本之后已经设置了cscopeverbose,但是如果你没有,你也应该添加它.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。