gutentags: ctags job failed, returned: 1
hahuang65 opened this issue · 5 comments
Describe the bug
I'm having problems saving tags in my Ruby project. Full trace provided below.
Steps to reproduce
Really, it's just saving a file in my Ruby project.
Share your setup
- What OS and version of Vim are you using?
macOS 10.15.6
$ vim --version
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Aug 2 2020 00:45:48)
macOS version
Included patches: 1-1350
Compiled by Homebrew
Huge version without GUI. Features included (+) or not (-):
+acl -farsi +mouse_sgr +tag_binary
+arabic +file_in_path -mouse_sysmouse -tag_old_static
+autocmd +find_in_path +mouse_urxvt -tag_any_white
+autochdir +float +mouse_xterm -tcl
-autoservername +folding +multi_byte +termguicolors
-balloon_eval -footer +multi_lang +terminal
+balloon_eval_term +fork() -mzscheme +terminfo
-browse +gettext +netbeans_intg +termresponse
++builtin_terms -hangul_input +num64 +textobjects
+byte_offset +iconv +packages +textprop
+channel +insert_expand +path_extra +timers
+cindent +ipv6 +perl +title
-clientserver +job +persistent_undo -toolbar
+clipboard +jumplist +popupwin +user_commands
+cmdline_compl +keymap +postscript +vartabs
+cmdline_hist +lambda +printer +vertsplit
+cmdline_info +langmap +profile +virtualedit
+comments +libcall -python +visual
+conceal +linebreak +python3 +visualextra
+cryptv +lispindent +quickfix +viminfo
+cscope +listcmds +reltime +vreplace
+cursorbind +localmap +rightleft +wildignore
+cursorshape +lua +ruby +wildmenu
+dialog_con +menu +scrollbind +windows
+diff +mksession +signs +writebackup
+digraphs +modify_fname +smartindent -X11
-dnd +mouse -sound -xfontset
-ebcdic -mouseshape +spell -xim
+emacs_tags +mouse_dec +startuptime -xpm
+eval -mouse_gpm +statusline -xsmp
+ex_extra -mouse_jsbterm -sun_workshop -xterm_clipboard
+extra_search +mouse_netterm +syntax -xterm_save
- What version of
ctags
,gtags
, or whatever do you have installed?
$ ctags --version
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
Compiled: Oct 6 2019, 20:31:35
Addresses: <dhiebert@users.sourceforge.net>, http://ctags.sourceforge.net
Optional compiled features: +wildcards, +regex
- Are you using
g:gutentags_cache_dir
?
Yes,~/.tags_cache
.
Post the logs
- Run
:let g:gutentags_trace = 1
. - Reproduce the bug.
- Run
:messages
and show the messages that Gutentags posted. - Look for the
tags.log
file that Gutentags' script left behind, and post its contents.
I wasn't able to find atags.log
file...
Additional context
Full trace:
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/node_modules/lodash/lodash.min.js'
"app/mailers/news_mailer.rb" 97L, 3182B written
gutentags: Tag file '/Users/hhhuang/.tags_cache/Users-hhhuang-Documents-Projects-a5-crm-tags' is already being updated. Queuing it up...
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/node_modules/vue-resource/dist/vue-resource.min.js'
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/node_modules/imurmurhash/imurmurhash.min.js'
E348: No string under cursor
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/node_modules/prettier/parser-html.js'
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/node_modules/prettier/parser-markdown.js'
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/node_modules/prettier/parser-markdown.js'
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/node_modules/prettier/parser-postcss.js'
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/node_modules/prettier/parser-postcss.js'
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/node_modules/prettier/parser-postcss.js'
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/node_modules/prettier/parser-postcss.js'
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/node_modules/prettier/parser-postcss.js'
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/node_modules/prettier/parser-postcss.js'
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/node_modules/buefy/dist/buefy.min.js'
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/node_modules/buefy/dist/buefy.esm.min.js'
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/node_modules/buefy/dist/components/tabs/index.min.js'
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/node_modules/buefy/dist/components/rate/index.min.js'
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/node_modules/buefy/dist/components/taginput/index.min.js'
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/node_modules/buefy/dist/components/pagination/index.min.js'
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/node_modules/buefy/dist/components/timepicker/index.min.js'
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/node_modules/buefy/dist/components/loading/index.min.js'
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/node_modules/buefy/dist/components/loading/index.min.js'
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/node_modules/buefy/dist/components/autocomplete/index.min.js'
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/node_modules/tweetnacl/nacl-fast.min.js'
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/node_modules/tweetnacl/nacl-fast.min.js'
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/node_modules/tweetnacl/nacl-fast.min.js'
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/node_modules/tweetnacl/nacl-fast.min.js'
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/node_modules/scss-tokenizer/node_modules/source-map/build/mini-require.js'
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/node_modules/events/tests/add-listeners.js'
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/node_modules/terser/dist/bundle.min.js'
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/node_modules/terser/dist/bundle.min.js'
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/node_modules/http-proxy/lib/http-proxy/passes/ws-incoming.js'
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/node_modules/file-loader/node_modules/json5/dist/index.min.js'
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/vendor/assets/javascripts/jquery.contextMenu.min.js'
gutentags: [job stderr]: 'ctags: Warning: ignoring null tag in /Users/hhhuang/Documents/Projects/a5/crm/vendor/assets/javascripts/muuri.min.js'
gutentags: [job stdout]: 'Replacing tags file'
gutentags: [job stdout]: 'mv -f "/Users/hhhuang/.tags_cache/Users-hhhuang-Documents-Projects-a5-crm-tags.temp" "/Users/hhhuang/.tags_cache/Users-hhhuang-Documents-Projects-a5-crm-tags"'
gutentags: [job stdout]: 'Unlocking tags file...'
gutentags: [job stdout]: 'Done.'
gutentags: Finished ctags job, running queued update for '/Users/hhhuang/.tags_cache/Users-hhhuang-Documents-Projects-a5-crm-tags'.
gutentags: Wildignore options file is up to date.
gutentags: Running: ['/Users/hhhuang/.vim/plugged/vim-gutentags/plat/unix/update_tags.sh', '-e', 'ctags', '-t', '/Users/hhhuang/.tags_cache/Users-hhhuang-Documents-Projects-a5-crm-tags', '-p', '/Users/hhhuang/Documents/Projects/a5/crm', '-s', '/Users/hhhuang/Documents/Projects/a5/crm/app/mailers/news_mailer.rb', '-o', '/Users/hhhuang/.vim/plugged/vim-gutentags/res/ctags_recursive.options', '-x', '@/Users/hhhuang/.tags_cache/_wildignore.options', '-l', '/Users/hhhuang/.ta
gs_cache/Users-hhhuang-Documents-Projects-a5-crm-tags.log']
gutentags: In: /Users/hhhuang/Documents/Projects/a5/crm
gutentags: [job stdout]: 'Locking tags file...'
gutentags: [job stdout]: 'Removing references to: /Users/hhhuang/Documents/Projects/a5/crm/app/mailers/news_mailer.rb'
gutentags: [job stdout]: 'grep --text -Ev ''^[^^I]+^I/Users/hhhuang/Documents/Projects/a5/crm/app/mailers/news_mailer.rb^I'' ''/Users/hhhuang/.tags_cache/Users-hhhuang-Documents-Projects-a5-crm-tags'' > ''/Users/hhhuang/.tags_cache/Users-hhhuang-Documents-Projects-a5-crm-tags.temp'''
gutentags: [job stdout]: 'Running ctags on "/Users/hhhuang/Documents/Projects/a5/crm/app/mailers/news_mailer.rb"'
gutentags: [job stdout]: 'ctags -f "/Users/hhhuang/.tags_cache/Users-hhhuang-Documents-Projects-a5-crm-tags.temp" "--options=/Users/hhhuang/.vim/plugged/vim-gutentags/res/ctags_recursive.options" --exclude=@/Users/hhhuang/.tags_cache/_wildignore.options --append "/Users/hhhuang/Documents/Projects/a5/crm/app/mailers/news_mailer.rb"'
gutentags: [job stderr]: 'ctags: "/Users/hhhuang/.tags_cache/Users-hhhuang-Documents-Projects-a5-crm-tags.temp" doesn''t look like a tag file; I refuse to overwrite it.'
gutentags: Finished ctags job.
gutentags: ctags job failed, returned: 1
@hahuang65 Hello, I met the same problem.Do you fix it?
Describe the bug
Share your setup
when I first use the vim-gutentags and universal-ctags, they work fine.However, suddenly vim got a error,I can not fix it.
And the job stderr is random code, I can not figure it out.
-
What OS and version of Vim are you using?
window10 -
What version of ctags, gtags, or whatever do you have installed?
Universal Ctags 0.0.0(86bdb84c), Copyright (C) 2015 Universal Ctags Team Universal Ctags is derived from Exuberant Ctags. Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert Compiled: Sep 21 2020, 00:06:51 URL: https://ctags.io/ Optional compiled features: +win32, +wildcards, +regex, +internal-sort, +unix-path-separator, +iconv, +option-directory, +xpath, +json, +interactive, +yaml, +case-insensitive-filenames, +packcc
-
Are you using g:gutentags_cache_dir?
Yes
Post the logs
Hi!
Note one of the last messages in the original log:
gutentags: [job stderr]: 'ctags: "/Users/hhhuang/.tags_cache/Users-hhhuang-Documents-Projects-a5-crm-tags.temp" doesn''t look like a tag file; I refuse to overwrite it.'
IIRC Gutentags checks the existing tags
file and if it doesn't start with !_TAG_
, it figures that it might be something else and, to be cautious, aborts. You can disable this check with g:gutentags_ctags_check_tagfile
if you're using some non-standard ctags
tool that doesn't generate that token on the first line. This error message also looks like an old version of that check... do you have an old gutentags?
Hmm, well I don't know when this fixed itself, but maybe it was an update. Although I had this issue for a long time, and I religiously update my vim plugins, at least once every 2 or 3 days.
I don't see the error anymore though.
Sounds good! Thanks