Synergy between ctags and cscope

2019-08-21 20:10发布

问题:

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!



标签: c++ ctags cscope