-
Notifications
You must be signed in to change notification settings - Fork 174
Description
Describe the bug
I got error message like tittle.
And I put "let g:gutentags_trace = 1" in .vimrc then I saw a message:
gutentags: Running: ['gtags', '--incremental', '/home/hellokitty/.cache/.tags/project-hellokitty-proj1-']
gutentags: In: project/hellokitty/proj1
...
'gtags: /home/hellokitty/.cache/.tags/project-hellokitty-proj1-/GTAGS seems corrupted.'
gutentags: gutentags: gtags-cscope job failed, returned: 1
I manually run gtags in the root project folder and it works.
And in cache :
-rw------- 1 hellokitty rnd 0 Dec 20 22:35 GPATH
-rw------- 1 hellokitty rnd 0 Dec 20 22:35 GRTAG
-rw------- 1 hellokitty rnd 0 Dec 20 22:35 GTAGS
Steps to reproduce
- let g:gutentags_trace = 1 in ~/.vimrc
- open any project file.
Share your setup
- CentOS / Vim 8.2.0
- Universal Ctags/gtags (GNU GLOBAL) 6.6.3
- Are you using
g:gutentags_cache_dir? Yes
Hers's my confiuration in .vimrc
let g:gutentags_modules = ['ctags', 'gtags_cscope']
let g:gutentags_project_root = ['.git']
let g:gutentags_ctags_tagfile = '.tags'
let s:vim_tags = expand('~/.cache/.tags')
let g:gutentags_cache_dir = s:vim_tags
let g:gutentags_file_list_command = 'find . -type f -name *.c -o -type f -name *.h'
if !isdirectory(s:vim_tags)
silent! call mkdir(s:vim_tags, 'p')
endif
let g:gutentags_ctags_extra_args = ['--fields=+niazS', '--extras=+q']
let g:gutentags_ctags_extra_args += ['--c++-kinds=+px']
let g:gutentags_ctags_extra_args += ['--c-kinds=+px']
let g:gutentags_ctags_extra_args += ['--output-format=e-ctags']
let g:gutentags_trace = 1
Best Regards!!!!!!