xolox / vim-easytags

Automated tag file generation and syntax highlighting of tags in Vim
http://peterodding.com/code/vim/easytags/
1.01k stars 109 forks source link

windows .ctags / ctags.cnf problems #67

Open cmcpasserby opened 10 years ago

cmcpasserby commented 10 years ago

got a very weird bug in easytags, if i create a .ctags or ctags.cnf file in my windows user directory, easytags pops me a error on gvim start.

simply removing the file, and restarting vim fixes the problem, but i need to pass the .ctags to ctags since im defining a custom filetype for ctags.

easytags.vim 3.3.12: Plug-in not loaded because Exuberant Ctags isn't 
installed! Please download & install Exuberant Ctags from 
http://ctags.sf.net
cmcpasserby commented 10 years ago

i ran some tests in vim-misc with redir => listing | verbose call xolox#misc#tests#run() | redir END | tabedit | call setline(1, split(listing, "\n")) and got Took 1.54 seconds to run 26 tests: 125 assertions passed, no assertions failed. so i can confirm that vim-misc is working as expected and the problem lies in easytags. after running verbose echo xolox#easytags#initialize('5.5') i get

verbose echo xolox#easytags#initialize('5.5')

easytags.vim 3.4.3: Checking if Exuberant Ctags is installed as 'ctags'.
shell.vim 0.13.2: Checking if compiled DDL is supported ..
shell.vim 0.13.2: Called function libversion() in DLL C:\Users\User\.vim\bundle\vim-shell\misc\shell\shell-x86.dll, returning string '0.5' in 0.0013 seconds.
vim-misc 1.8.5: Executing external command using compiled DLL: (ctags --version) 1>"C:\Users\User\AppData\Local\Temp\VICEC0A.tmp" 2>"C:\Users\User\AppData\Local\Temp\VIDEC0B.tmp"
shell.vim 0.13.2: Executing external command: cmd.exe /c "(ctags --version) 1>"C:\Users\User\AppData\Local\Temp\VICEC0A.tmp" 2>"C:\Users\User\AppData\Local\Temp\VIDEC0B.tmp""
shell.vim 0.13.2: Called function execute_synchronous() in DLL C:\Users\User\.vim\bundle\vim-shell\misc\shell\shell-x86.dll, returning string 'exit_code=0' in 0.037 seconds.
vim-misc 1.8.5: Parsed version string '5.5' into [5, 5].
vim-misc 1.8.5: Parsed version string '' into [].
vim-misc 1.8.5: Available version () is lower than expected version (5.5).
easytags.vim 3.4.3: Version is not compatible! :-(
easytags.vim 3.4.3: Standard output of command: ['ctags: Warning: regcomp ^[ ^I]*([^\[=]+)=(.*): Unmatched [ or [^', 'Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert', '  Compiled: Jul  9 2009, 17:05:35', '  Addresses: <dhiebert@users.sourceforge.net>, http://ctags.sourceforge.net', '  Optional compiled features: +win32, +regex, +internal-sort']
easytags.vim 3.4.3: Standard error of command: []
0

which is looking very familiar from stuff in issue #58.

The problem is isolated to running ctags with a .ctags or ctags.cnf present in my home directory.

cmcpasserby commented 10 years ago

ah sorry for the big post i forgot about the issue last time, and it was a ctags error throwing off how vim-misc grabs the version from ctags. Though it would be nice, is if when vim-misc cant find the version it displays any errors that ctags outputs

ReneFroger commented 10 years ago

I have same issue. I use Windows, and Gvim.

After installed Easytags. I get the popup when I start Gvim, with the message:

easytags.vim 3.3.12: Plug-in not loaded because Exuberant Ctags isn't 
installed! Please download & install Exuberant Ctags from 
http://ctags.sf.net

Could you tell me how you solved it?

xolox commented 10 years ago

@ReneFroger: Please run the following Vim command and post the output here:

:verbose echo xolox#easytags#initialize('5.5')

The output may scroll of your screen, you can use the Vim command :messages to recall the message history. If you don't know how to copy/paste the messages you can post a screenshot of the messages here, that's fine as well.