Open ssoriche opened 12 years ago
I also have this same issue :(
If either of you can still reproduce this issue with the latest version of the vim-easytags
plug-in, please run the command :verbose UpdateTags
and post the output here.
I have the same problem, so I'll just add the output:
easytags.vim 3.4: vim-misc 1.8.5: External command failed with exit code 1!
Command line: sh -c '(/usr/bin/ctags --fields=+l --c-kinds=+p --c++-kinds=+p '\''-f'\'' --sort=foldcase '\''--language-force=python'\'' '\''/home/wieland/dev/lala/setup.py'\'') 1>'\''/tm p/vg3UtMh/16'\'' 2>'\''/tmp/vg3UtMh/17'\'''
Output on standard output stream:
ctags: output file name may not begin with a '-' (at function xolox#easytags#update..70_run_ctags..xolox#misc#os#exec, line 150)
You can find my .vimrc at https://github.com/mineo/dotfiles/blob/master/.vimrc but I'm not sure if that gives any hints about what's causing this because it works just fine on my notebook but not on my desktop.
Either I'm retarded and looking past a really obvious problem (in that case: please, someone, enlighten me ;-)) or this really is a tricky issue. I've certainly never seen this even though I've used vim-easytags on Windows, Linux and Mac OS X.
@mineo: It's interesting that you mention that it works fine on your notebook but consistently (?) breaks on your desktop. Are both computers running the same operating system? And which operating system is that? Also, are you running the same version of Exuberant Ctags on both systems? (you can check with ctags --version
).
I just installed vim-easytags, and I ran into the same issue. After some digging, I think I've figured out what's going on--at least in my configuration.
ctags was getting called with an empty output file name (the -f
option) after having set g:easytags_file = '~/.vim/tags'
as per the example in the documentation. vim-easytags runs this variable through expand()
(in the get_tagsfile()
function). The issues was that expand()
honors the wildignore
option, and I happen to have "tags"
in my wildignore
, so get_tagsfile()
ended up returning an empty filename.
Using a different tags filename and/or changing my wildignore
option to not include "tags"
both make the issue go away, and vim-easytags works as expected. expand()
seems to take an optional second {nosuf}
parameter, to make it ignore wildignore
; perhaps that's another possibility.
I've updated to the latest version and I'm getting an error message everytime easytags tries to update the ctags file.
easytags.vim 2.7.6: Failed to update tags file ~/Projects/SAA5: ctags: output file name may not begin with a '-'^@! (at function xolox#easytags#autoload..xolox#easytags#update..48_run_ctags, line 11)
My vimrc sets easytags_file as:
let g:easytags_file='./.vimtags'
~Shawn