Synergy between ctags and cscope

孤街醉人 提交于 2019-12-11 23:26:48

问题


I've used both cscope and ctags to collectively help browse the C code previously.

Now with C++ code, I'm trying to use them to aid in code browsing. This is how the cscope and ctags DBs have been built:

$ find . -name '*.cc' -o -name '*.h' > cscope.files
$ cscope -b
$ ctags -L cscope.files

Invoking cscope:

$ cscope -d

Once I search for a symbol and open the relevant file from within cscope, I'm unable to find definitions of other symbols using . The error is:

E433: No tags file
E426: tag not found: Parser
Press ENTER or type command to continue

Any idea on what's wrong?

Thanks!


回答1:


Looking through the .vimrc file, I found an entry for tags that was pointing to an invalid location. Removing that entry solved the problem.

Thanks!



来源:https://stackoverflow.com/questions/35331992/synergy-between-ctags-and-cscope

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!