skywind3000 / gutentags_plus

The right way to use gtags with gutentags
266 stars 49 forks source link

ERROR: no gtags database for this project, check gutentags's documents #21

Closed nqiu closed 5 years ago

nqiu commented 5 years ago

I followed the README.md file and configured vim as follows,

" gutentags -------------------------- " enable gtags module let g:gutentags_modules = ['ctags', 'gtags_cscope']

" config project root markers. let g:gutentags_project_root = ['.root', '.git', '.svn', '.hg', '.project']

" generate datebases in my cache directory, prevent gtags files polluting my project let g:gutentags_cache_dir = expand('~/.cache/tags')

" change focus to quickfix window after search (optional). let g:gutentags_plus_switch = 1

but Vim complained "gutentags: gtags-cscope job failed, returned: 122" when I opened a .py file. The ctrl + ] worked, but not <leader>cs or GscopeFind c <func_name>. It complained "ERROR: no gtags database for this project, check gutentags's documents"

nqiu commented 5 years ago

@skywind3000 Could you help me, please? Thanks a lot in advance~

nqiu commented 5 years ago

This issue was caused by the lack of gtags-cscope on my Mac, and it was resolved by installing global on Mac. brew install global

sachingns commented 5 years ago

Hi How to solve this issue ERROR: no gtags database for this project, check gutentags's documents

nqiu commented 5 years ago

Hi How to solve this issue ERROR: no gtags database for this project, check gutentags's documents

The root cause for my case was that the executable binary of gtags-cscope(which is included in the global package) was missing on my MacOS. You can try to install the global package to solve the problem by running the following commands in shell: (MacOS) $ brew install global (Ubuntu) $ sudo apt install global

Lim-LinYuanbo commented 4 years ago

Why is it always prompted “no gtags database for this project...”

my source code path:/mnt/e/project/rt-thread, The .git in rt-thread root directory. The .cache/tags/mnt-e-project-rt-thread-.tags is generated. I has been install global.

Please help me, thx a lot.

dseeni commented 4 years ago

same issue here.. i have cscope and I can generate gtags... gut I can not use gtags-cscope... I keep getting "tmp directory doesn't exist or isn't accessable'....is thre anyway to use gtags without gtags-cscope (since I already have cscope installed/working?"