leoliu / ggtags

Emacs frontend to GNU Global source code tagging system.
http://elpa.gnu.org
575 stars 56 forks source link

Unknown language #164

Open hisnawi opened 6 years ago

hisnawi commented 6 years ago

When using universal-ctags as the default parser in gtags I get this warning:

 Using configuration file '/Users/hisnawi/gitproject/gtags.conf'.
 Using configuration label 'default'.
 Using 'gtags.files' as a file list.
 Using plug-in parser.
[Mon Dec 11 10:43:08 PST 2017] Creating 'GTAGS' and 'GRTAGS'.
 [1] extracting tags of proj_headers/mod/testing.h
ctags: Warning: Unknown language "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.inl,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.f03.f08.f15,HTML:.htm.html,Java:.java,JavaScript:.js,Lisp:.cl.clisp.el.l.lisp.lsp,Lua:.lua,Make:.mak.mk,MatLab:.m,OCaml:.ml.mli.aug,Pascal:.p.pas,Perl:.pl.pm.plx.perl.ph,PHP:.php.php3.phtml.php4.php5.php7,Python:.py.pyx.pxd.pxi.scons,REXX:.rexx.rx,Ruby:.rb.ruby,Scheme:.SCM.SM.sch.scheme.scm.sm,Sh:.sh.SH.bsh.bash.ksh.zsh.ash,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.vba,YACC:.y,Ada:.adb.ads.Ada,Ant:.ant,Clojure:.clj,CoffeeScript:.coffee,CSS:.css,ctags:.ctags,D:.d.di,Diff:.diff.patch,DTS:.dts.dtsi,Falcon:.fal.ftd,gdbinit:.gdb,Go:.go,JSON:.json,m4:.m4.spt,ObjectiveC:.mm,Perl6:.p6.pm6.pl6,R:.r.R.q,reStructuredText:.rest.reST.rst,Rust:.rs,SystemVerilog:.sv.svh.svi,WindRes:.rc,Zephir:.zep" in "langmap" option
ctags: Warning: --extra option is obsolete; use --extras instead

Is this a known issue?

leoliu commented 6 years ago

Make sure you are using https://ctags.sourceforge.io

hisnawi commented 6 years ago

❯ ctags --version Universal Ctags 0.0.0(248cffc), Copyright (C) 2015 Universal Ctags Team Universal Ctags is derived from Exuberant Ctags. Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert Compiled: Dec 7 2017, 17:35:49 URL: https://ctags.io/ Optional compiled features: +wildcards, +regex, +multibyte, +option-directory, +xpath, +case-insensitive-filenames

leoliu commented 6 years ago

maybe check "langmap" option in your .ctags config file.

hisnawi commented 6 years ago

I have no .ctags file. Only gtags.conf which does have langmap, but I have not changed anything in that file. So is universal-ctags no compatible with gtags anymore?

leoliu commented 6 years ago

I see. maybe ask on the gnu global mailing list. It is definitely possible to run global + ctags + pygments.