You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It states it's compatible with CTags but after running it recursively on a working directory I still get "not found" errors in ST2 trying to navigate to definition.
I'm not sure it's CTags plugin problem or CoffeeTags. Either way I would appreciate any help to get it working.
Unfortunately coffeetags output is not sorted by symbol. It seems to be sorted by file name, line number.
By sorting it manually, coffee tags seems to work.
$ coffeetags -R -f coffeetags
$ ruby -e 'l = STDIN.readlines; for i in (l[0,6] + l[7,l.size].sort); puts i; end' < coffeetags > tags
Coffeetags output looks different from ctags output. Sublime text ctags seems to use match expression, but not lineno to look up the definition. Tag jump doesn't work as expected if the definition is under the references.
@shirosaki so I'm guessing to fix this I'd have to add a flag which sorts the tags by symbol, right? The thing is that vim works just fine with tags generated by regular CTags, Coffeetags and jsctags (aka doctorjs).
I've used jsctags output as a base for the format which coffeetags produces - probably that was my mistake.
Activity
barneywilliams commentedon May 16, 2012
Did you run ctags manually (from the command line)? Or did you use the menu item or keybinding?
okonet commentedon May 16, 2012
I did run it via CLI and then checked .tags file. I could submit it so you can investigate if it is plugin or CoffeeTags bug.
lukaszkorecki commentedon Jul 23, 2012
Hiya! CoffeeTags author here
I can help looking into this - I'm not a ST2 user myself, but CoffeeTags is supposed to work everywhere :-)
okonet commentedon Jul 23, 2012
Hey, would be nice! Thanks!
barneywilliams commentedon Nov 9, 2012
@lukaszkorecki Any luck in your investigation?
lukaszkorecki commentedon Nov 9, 2012
@barneywilliams sorry didn't have time recently... I will try to look into it soon.
barneywilliams commentedon Dec 17, 2012
OK, lemme know when and if you get time to investigate @lukaszkorecki
shirosaki commentedon Jan 28, 2013
Hi,
Tags file should be sorted by symbol. bisect is used for symbol search.
https://github.com/SublimeText/CTags/blob/master/ctags.py#L224
Unfortunately coffeetags output is not sorted by symbol. It seems to be sorted by file name, line number.
By sorting it manually, coffee tags seems to work.
Coffeetags output looks different from ctags output. Sublime text ctags seems to use match expression, but not lineno to look up the definition. Tag jump doesn't work as expected if the definition is under the references.
https://github.com/lukaszkorecki/CoffeeTags/blob/master/spec/fixtures/out.test.ctags
lukaszkorecki commentedon Jan 28, 2013
@shirosaki so I'm guessing to fix this I'd have to add a flag which sorts the tags by symbol, right? The thing is that vim works just fine with tags generated by regular CTags, Coffeetags and jsctags (aka doctorjs).
I've used jsctags output as a base for the format which coffeetags produces - probably that was my mistake.
shirosaki commentedon Jan 28, 2013
@lukaszkorecki that is right. It would be nice to add a feature to sort by symbol.
Ctags output is sorted by symbol (tagname) as the following document.
http://ctags.sourceforge.net/FORMAT
shirosaki commentedon Jan 29, 2013
I've created a patch for coffeetags to make more compatible with ctags.
I think this issue could also be fixed on sublime text side.
lukaszkorecki commentedon Feb 2, 2013
Hi all - thanks to @shirosaki we got a build of CoffeeTags which is supposed to work with Sublime Text's ctags plugin.
I haven't tested it myself, but all tests pass without any problem.
I will release the gem shortly (I've been waiting for RubyGems to lift the publish ban established due to security issues).
edit ok, v0.0.3 is live https://rubygems.org/gems/CoffeeTags
shirosaki commentedon Feb 4, 2013
@lukaszkorecki thank you for new release! It works fine for me.