Skip to content

Skip version check #123

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

Closed
casimir opened this issue Jun 29, 2015 · 14 comments
Closed

Skip version check #123

casimir opened this issue Jun 29, 2015 · 14 comments

Comments

@casimir
Copy link

casimir commented Jun 29, 2015

I am trying to use universal-ctags, which is more or less exuberant-ctags maintained, so it should be completely compatible.
The problem is that easytags considers this version incompatible. This come from the fact that universal-ctags isn't versioned, its version is always "Development".

% ctags --version
Universal Ctags Development, Copyright (C) 1996-2009 Darren Hiebert
  Compiled: Jun 25 2015, 11:40:16
  Addresses: <[email protected]>, https://github.com/universal-ctags/ctags
  Optional compiled features: +wildcards, +regex, +debug, +option-directory, +coproc
@xolox
Copy link
Owner

xolox commented Jul 1, 2015

Do I understand correctly that universal-ctags is a fork of Exuberant Ctags >= 5.8? In that case it should be fully compatible indeed (until they start making backwards incompatible changes ;-) so I can see if I can get the version check to accept "Universal Ctags Development".

@casimir
Copy link
Author

casimir commented Jul 1, 2015

I was actually waiting for a response from you before investigate more. 👼 I switched to it like 1 week ago and except for your plugin I didn't encounter any problem. I saw in there doc that they are merging exuberant patches so I would say they are backward compatible. They have a specific section for this in there doc: https://github.com/universal-ctags/ctags/blob/master/docs/tracking.rst#exuberant-ctags

xolox added a commit that referenced this issue Jul 1, 2015
Refer to issue 123 on GitHub for details:
  #123
@xolox
Copy link
Owner

xolox commented Jul 1, 2015

I just published vim-easytags version 3.11 where I've tried to at least make the version check accept Universal Ctags as an alternative to Exuberant Ctags. I don't have time to try Universal Ctags at the moment, so I can't confirm if this is enough to get things going. Can you give it a try and report back? Thanks for the feedback!

@casimir
Copy link
Author

casimir commented Jul 2, 2015

After a few hours with several languages (c, go, rust, python) still no problem. Thanks a lot. 😄

@masatake
Copy link

masatake commented Jan 5, 2016

Hi, I'm a developer of universal ctags.
Could you look at universal-ctags/ctags#748 ?

These days I'm planing releasing 1.0.0. As the first step I changed the output of ctags --version.
Now universal ctags has following output:

% ./ctags --version
./ctags --version
Universal Ctags 0.0.0(93f3c66), 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  5 2016, 02:36:12
  URL: https://ctags.io/
  Optional compiled features: +wildcards, +regex, +option-directory, +coproc

@masatake
Copy link

masatake commented Jan 8, 2016

I have found a fix is available: Wraul@f5746bd !

@still-dreaming-1
Copy link

As @masatake has reported, there is a supposed fix available, but it is a pull request from December 24, 2015 that has neither been accepted or rejected. #133

@jmromer
Copy link

jmromer commented Mar 31, 2016

@xolox I'm still seeing the following. Is that intended?

% vim .
easytags.vim 3.11: Plug-in not loaded because Exuberant Ctags 5.5 or newer is required while you have version 0.0.0 installed!
Press ENTER or type command to continue

% which ctags
/usr/local/bin/ctags

% ctags --version
Universal Ctags 0.0.0(44e0c66), Copyright (C) 2015 Universal Ctags Team
Universal Ctags is derived from Exuberant Ctags.
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
  Compiled: Mar 31 2016, 14:56:40
  URL: https://ctags.io/
  Optional compiled features: +wildcards, +regex, +option-directory, +coproc, +xpath

@jmromer
Copy link

jmromer commented Mar 31, 2016

@xolox whoops -- I completely overlooked the date on the your earlier comment, sorry D:
disregard my last

@bew
Copy link

bew commented May 24, 2016

@xolox Any possible news on this ? (see @JKRMR message above)
I'm currently using Wraul@f5746bd which works correctly

@jmromer
Copy link

jmromer commented May 24, 2016

@Bew78LesellB I ended up using the following as a workaround, if it's helpful at all:

" suppress ctags version warning (since universal-ctags)
let g:easytags_suppress_ctags_warning = 1

@talmobi
Copy link

talmobi commented Apr 22, 2017

@xolox
@JKRMR That gets rid of the warning but sadly fails to run the plugin (:UpdateTags not available etc) and therefore fails to run cats automatically. Running ctags manually (ctags -R) works fine.

Using the latest universal-ctags version:

Universal Ctags 0.0.0(0d8de20), Copyright (C) 2015 Universal Ctags Team
Universal Ctags is derived from Exuberant Ctags.
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
  Compiled: Apr 23 2017, 01:55:22
  URL: https://ctags.io/
  Optional compiled features: +wildcards, +regex, +option-directory, +coproc, +xpath, +case-insensitive-filenames

Running with exuberant-ctags gives me warnings and fails to work at all (doesn't even work manually):

$ ctags --version
ctags: Warning: unknown regex flag: ' '
ctags: Warning: unknown regex flag: ' '
ctags: Warning: unknown regex flag: ' '
ctags: Warning: unknown regex flag: ' '
ctags: Warning: unknown regex flag: ' '
ctags: Warning: unknown regex flag: ' '
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
  Compiled: Sep 13 2016, 04:58:37
  Addresses: <[email protected]>, http://ctags.sourceforge.net
  Optional compiled features: +wildcards, +regex

Running latest maxOS Sierra 10.12.4 (16E195)

$ uname -a
Darwin Mollie-2.local 16.5.0 Darwin Kernel Version 16.5.0: Fri Mar  3 16:52:33 PST 2017; root:xnu-3789.51.2~3/RELEASE_X86_64 x86_64

All I can find on tags of any kind are pretty old comments (this thread being the latest almost a year old) -- perhaps there's a mother similar solution people are using these days?

@masatake
Copy link

(I don't use vim, so what I write here may be pointless.)

If you have a trouble in output format of ctags, consider to use --output-format=e-ctags.

These days --output-format option is added to handle a tag including whitespaces.
The default format (u-ctags) includes the tag.
The classic format (e-uctags) excludes the tag.

Following example shows the difference.

[jet@localhost]% cat /tmp/foo.html 
cat /tmp/foo.html 
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
  </head>
  <body>
    <h1>abc</h1>
    <h1>e f g </h1>    
  </body>
</html>
[jet@localhost]% ~/var/ctags/ctags --output-format=e-ctags -o - /tmp/foo.html
~/var/ctags/ctags --output-format=e-ctags -o - /tmp/foo.html
abc	/tmp/foo.html	/^    <h1>abc<\/h1>$/;"	h
[jet@localhost]% ~/var/ctags/ctags  -o - /tmp/foo.html
~/var/ctags/ctags  -o - /tmp/foo.html
abc	/tmp/foo.html	/^    <h1>abc<\/h1>$/;"	h
e f g	/tmp/foo.html	/^    <h1>e f g <\/h1>    $/;"	h

@talmobi
Copy link

talmobi commented Apr 24, 2017

For anyone else stumbling upon here I ended up following the vim plugin tagbar wiki (which is up to date) of using jsctags (and tern which it depends on) and universal-ctags for everything else (CSS etc) -- works great (you don't have to use the vim tag bar plugin but I found that the plugin actually works quite nicely so will probably use it).

https://github.com/majutsushi/tagbar/wiki#jsctags-depends-on-tern--recommended-

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

7 participants