-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gutentags: gutentags: gtags-cscope job failed, returned: 1 #225
Comments
After edit source file autoload/gutentags/gtags_cscope.vim line 91 : And I have another questions : How to use g:gutentags_exclude_filetypes? |
I'm not familiar with gtags but maybe some files had encoding it doesn't handle, or maybe permissions it couldn't access? Either way we should add a Look for |
I encounter the same thing, gutentags: gtags-cscope job failed, returned: 1 |
@CodingdAwn me too. The log ending with "gutentags: [job output]: 'gtags: nextkey not found in GPATH.'", exactly the same with you. |
Me too. 3 files generated with file size 0 in Vim, |
Do you all have both |
I disable generate ctags, open new c++ file, it's not work. |
On Ubuntu 20.04 daily build, I got the same error with 3 empty
I manually added a So if you are experiencing the same issue, you might want to check your |
Gentoo, |
Ok , i have try switch to Python3 ,gtags worked !! Thank U. |
@winkee01 , it is a totally flaky solution to modify gtags's read-only script. This script works for both python 2 and 3. Why not just install pygments module in your python2 ?? |
Has there been any progress on implementing 'g:gutentags_gtags_extra_args' or any other way of setting default options? For example I prefer to have '--accept-dotfiles --compact' on every run. |
Just delete ~/.cache/tags/* . It works for me -:) |
when first open a new file, it auto-generate some tags, this process is successful, and no error messages are popped out, but when executing:w again, the error message will show. usually, when the tracing message does not identify where the errors come from, it's probably because the tags file are messed up, so in this case, we can try simply delete all cached tags file in |
I think gutentags needs more precise error reporting (job failed, returned 1 is no better than nothing), or even better, check the environment during installation |
try simple project first |
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
Share your setup
g:gutentags_cache_dir
? YesHers'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!!!!!!
The text was updated successfully, but these errors were encountered: