ludovicchabant / vim-gutentags

A Vim plugin that manages your tag files
https://bolt80.com/gutentags/
MIT License
2.29k stars 175 forks source link

Prepend project root when connecting to cscope database #183

Open elsdrium opened 6 years ago

elsdrium commented 6 years ago

Thanks for the great vim-gutentags project, it really saves my time on indexing codebase and managing tags. Here I would like to give it a feedback about a small problem in my daily work.

  1. Firstly, vim-gutentags provides g:gutentags_cache_dir which allows customizing tag directory and preventing from pollute project directory.
  2. Also, I use vim-rooter to keep default working directory at project root. That is a common demand for many developers.

However, when I use them both, the cscope query result in vim will display relative to the pwd in shell but vim's pwd has been switched to the project root. Thus cscope's query result cannot be simply jumped through relative paths displayed.

ludovicchabant commented 6 years ago

Hi, thanks for the nice comments! Did you close the PR to re-work it?

elsdrium commented 6 years ago

Hi, sorry for my late reply. Yes, I did close the PR a few days ago because I found prepending project root (and set csnore) can cause unexpected behavior in vim-cscope binding. That's under investigation, I will create a new PR after I fix that.

sachingns commented 5 years ago

Hi, I just installed cscope, but it throwing an error like this ERROR: no gtags database for this project, check gutentags's documents what i need to do to resolve this..

elsdrium commented 5 years ago

@sachingns Hi, could you share your related settings? Like your gtags version, gutentags' configuration. Thanks.