luben / sctags Goto Github PK
View Code? Open in Web Editor NEWCtags and Etags extractor for Scala
License: Apache License 2.0
Ctags and Etags extractor for Scala
License: Apache License 2.0
scala 2.12.3 is on my path
$ which scala
/c/Program Files (x86)/scala/bin/scala
When I run
$ sctags -R ./
from inside a scala project, I get
$ sctags -R ./
Error: Could not find or load main class .
Made a pull request to change Line: to line: here #3
I just cloned the repository and built it following your instructions. When I run sctags
on the sctags project I get an exception:
Command:
sctags -f TAGS -R src/main/scala
Backtrace:
Exception in thread "main" java.lang.NoClassDefFoundError: scala/reflect/internal/Trees$Tree
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2615)
at java.lang.Class.getMethod0(Class.java:2856)
at java.lang.Class.getMethod(Class.java:1668)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
Caused by: java.lang.ClassNotFoundException: scala.reflect.internal.Trees$Tree
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 6 more
How do I fix this?
Thanks
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.