Comments (8)
@leusonmario One solution is provided in #88, it seems the problem with ClassIndex, which replaces Reflections to scan all the generators.
from gumtree.
Hi and thanks for your feedback.
Could you be more precise about the issues you ran over with?
Cheers.
from gumtree.
Thanks for your reply.
So... When I run the project with or without the required dependencies, I always have the same message:
** No command given.
Available Options:
-c <2> Set global property (-c property value). Properties do not need to be prefixed by gumtree.
-v Verbose mode
--help Display help (this screen)Available Commands:
- list: List things (matchers, generators, properties, ...)
- parse: Parse file and dump result
According to Getting Started page after adding the dependencies, all commands and parsers should be available.
Adding the dependencies and running the Run class with the command webdiff f<fileNameOne>.java <fileNameTwo>.java
, I got:
** Unknown sub-command 'webdiff'.
from gumtree.
Can you tell me how you installed GumTree?
from gumtree.
I basically used Eclipse for configuring the project.
The project was imported as Github Repository. All projects worked well except 'benchmark'. Thus, I added a new dependency on its gradle file compile group: 'org.openjdk.jmh', name: 'jmh-core', version: '1.19'
Since all projects were configured and built correctly, I run the Run class with and without the dependencies introduced on the project classpath.
Adding all projects to the classpath, I got the following message.
I think it happens due to cycles on the build path
Exception in thread "main" java.lang.NoClassDefFoundError: org/antlr/runtime/RecognitionException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
at java.lang.Class.getConstructor0(Class.java:3075)
at java.lang.Class.getConstructor(Class.java:1825)
at com.github.gumtreediff.gen.Registry.defaultFactory(Registry.java:129)
at com.github.gumtreediff.gen.Generators.newEntry(Generators.java:55)
at com.github.gumtreediff.gen.Generators.newEntry(Generators.java:1)
at com.github.gumtreediff.gen.Registry.install(Registry.java:74)
at com.github.gumtreediff.client.Run.lambda$0(Run.java:63)
at java.lang.Iterable.forEach(Iterable.java:75)
at com.github.gumtreediff.client.Run.initGenerators(Run.java:58)
at com.github.gumtreediff.client.Run.(Run.java:80)
Caused by: java.lang.ClassNotFoundException: org.antlr.runtime.RecognitionException
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 12 more
from gumtree.
It was an issue with eclipse version.
I'll close this issue.
from gumtree.
Have you tried IDEA? The same problem comes to me in IDEA so I wonder what you did to resolve it.
Thanks! @leusonmario
from gumtree.
@Symbolk I didn't use IDEA, but eclipse IDE. I solved my issue using a new version of eclipse. You may possibly try it also.
from gumtree.
Related Issues (20)
- Confusing results generated by GTD HOT 2
- Confusion about Move action HOT 1
- Error while running gumtree with textdiff option HOT 16
- 3.0 jdt tree generator does not handle the type arguments of MethodInvocation HOT 4
- No syntax exception raised in some cases for JDT HOT 16
- Order ignored? HOT 3
- Respect .gitignore HOT 9
- `textdiff` has inconsistent range output between formats HOT 3
- Support for renaming files HOT 1
- Docker Image HOT 1
- Reversed left and right in git gd command HOT 1
- Steps to get AST Diff for Python Files HOT 5
- ClassNotFound `org/simmetrics/StringMetrics` HOT 15
- Can't generate a parse tree I get this error HOT 1
- ast diff in with gumtree in the browser for file diff on Github
- generate edit script through command HOT 3
- use gumtree diff two commit edit script HOT 2
- use treesitter parse ast failed HOT 4
- JdtVisitor ignores optionalTagName for javadocs HOT 9
- What is the difference between monaco, classic, monaco-native? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gumtree.