Skip to content
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_file_list_command doesn't work, but update_tags.sh does #301

Open
faisal-shah opened this issue Mar 31, 2021 · 1 comment
Open

Comments

@faisal-shah
Copy link

I have the identical problem to #208. Running update_tags.sh works like a charm (with the exception of tags.log not being generated):

$ ~/.vim/plugged/vim-gutentags/plat/unix/update_tags.sh -e ctags -t tags -p . -L 'ag -l' -l tags.log
Locking tags file...
Running file list command
eval ag -l > "tags.files"
Running ctags on whole project
ctags -f "tags.temp" -L "tags.files"
Replacing tags file
mv -f "tags.temp" "tags"
Unlocking tags file...
Done.

However, in Vim it doesn't work. Below is the :messages output:

gutentags: Scanning buffer '/home/dev/repos/project/main.c' for gutentags setup...
gutentags: No specific project type.
gutentags: Setting gutentags for buffer '/home/dev/repos/project/main.c'

gutentags: Generating missing tags file: /home/dev/repos/project/tags
gutentags: Wildignore options file is up to date.
gutentags: Running: ['/home/dev/.vim/plugged/vim-gutentags/plat/unix/update_tags.sh', '-e', 'ctags', '-t', 'tag
s', '-p', '.', '-L', 'ag -l', '-l', 'tags.log']
gutentags: In: /home/dev/repos/project/speed
gutentags: [job stdout]: 'Locking tags file...'
gutentags: [job stdout]: 'Running file list command'
gutentags: [job stdout]: 'eval ag -l > "tags.files"'

... and then nothing.

Not using g:gutentags_cache_dir.

$ vim --version
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Feb 21 2021 21:02:22)
Included patches: 1-2539
Modified by jonathon.fernyhough@york.ac.uk
Compiled by jonathon.fernyhough@york.ac.uk
Huge version with GTK3 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_gui +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_interact
+ex_extra -mouse_jsbterm -sun_workshop +xterm_clipboard
+extra_search +mouse_netterm +syntax -xterm_save
$ uname -a
Linux dev-vm 5.8.0-45-generic #51~20.04.1-Ubuntu SMP Tue Feb 23 13:46:31 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

$ ctags --version
Universal Ctags 0.0.0, Copyright (C) 2015 Universal Ctags Team
Universal Ctags is derived from Exuberant Ctags.
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
Compiled: Jan 6 2019, 23:23:29
URL: https://ctags.io/
Optional compiled features: +wildcards, +regex, +iconv, +option-directory, +xpath, +json, +interactive, +sandbox, +yaml

@jocko
Copy link

jocko commented Dec 11, 2022

You can use unbuffer to make this work. Specify your file list command as unbuffer ag -l

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants