vim-gutentags icon indicating copy to clipboard operation
vim-gutentags copied to clipboard

update_tags.sh does not allowed multiple option files

Open markwu opened this issue 4 years ago • 0 comments

Descriptions

Recently, I just found my tags file become empty, and I try to trace down to the problem. I found update_tags.sh does not allow multiple option files.

Therefore, ctags just ignore ctags_recursive.options and give me an empty tag file.

The problem never happened before, I have no idea when the issue appeared.

Here comes the debug messages from gutentags. (I copied the command and run it in shell manually to see what's going on)

~/.dot_vim/bundle/vim-gutentags/plat/unix/update_tags.sh -e ctags -t tags -p . -o /Users/mark/.dot_vim/bundle/vim-gutentags/res/ctags_recursive.options -o /Users/mark/projects/blog/.gutctags -l tags.log
Locking tags file...
Running ctags on whole project
ctags -f "tags.temp" "--options=/Users/mark/projects/blog/.gutctags"  "."
Replacing tags file
mv -f "tags.temp" "tags"
Unlocking tags file...
Done.

You can see I passed two option files, but only /Users/mark/projects/blog/.gutctags option file used.

I can fix the issue if I add --recurse=yes in my .gutctags file.

Steps to reproduce

  1. Create a .gutctags in your ptoject root
  2. Genrate the tags
  3. The tags files is empty

My setup

  • macOS 10.14.6
  • universal-ctags master branch

markwu avatar Mar 08 '20 16:03 markwu