luben / sctags

Ctags and Etags extractor for Scala
Apache License 2.0
33 stars 4 forks source link

Full compatibility with ctags flags #2

Open kat-co opened 7 years ago

kat-co commented 7 years ago

Thanks for the great project!

I'm attempting to use GNU global to tag a Scala project. Global has the ability to use plugins, one of which is exuberant-ctags to perform the tagging. I can point it at sctags, but I get some errors around flags that sctags doesn't support:

[Thu Apr 13 13:02:20 CDT 2017] Creating 'GTAGS' and 'GRTAGS'. [1] extracting tags of foo/bar/baz.scala Skipping file --langmap=Asm:.asm.ASM.s.S.A51.29k.29K,Asp:.asp.asa,Awk:.awk.gawk.mawk,Basic:.bas.bi.bb.pb,BETA:.bet,C:.c,C++:.c++.cc.cp.cpp.cxx.h.h++.hh.hp.hpp.hxx,C#:.cs,Cobol:.cbl.cob.CBL.COB,DosBatch:.bat.cmd,Eiffel:.e,Erlang:.erl.ERL.hrl.HRL,Flex:.as.mxml,Fortran:.f.for.ftn.f77.f90.f95,HTML:.htm.html,Java:.java,JavaScript:.js,Lisp:.cl.clisp.el.l.lisp.lsp,Lua:.lua,Make:.mak.mk,MatLab:.m,OCaml:.ml.mli,Pascal:.p.pas,PHP:.php.php3.phtml,Python:.py.pyx.pxd.pxi.scons,REXX:.rexx.rx,Ruby:.rb.ruby,Scala:.scala,Scheme:.SCM.SM.sch.scheme.scm.sm,Sh:.sh.SH.bsh.bash.ksh.zsh,SLang:.sl,SML:.sml.sig,SQL:.sql,Tcl:.tcl.tk.wish.itcl,Tex:.tex,Vera:.vr.vri.vrh,Verilog:.v,VHDL:.vhdl.vhd,Vim:.vim,YACC:.y Skipping file --format=1 Skipping file -xu Skipping file --filter Skipping file --filter-terminator=###terminator### gtags: unexpected EOF.

I don't know how much work this would be, but it would be nice to either fake out these flags or support them fully so that things that expect exuberant-ctags functionality, work.

luben commented 7 years ago

make sense, I will look to make it work