GithubHelp home page GithubHelp logo

Getting Started about gumtree HOT 8 CLOSED

gumtreediff avatar gumtreediff commented on June 18, 2024
Getting Started

from gumtree.

Comments (8)

Symbolk avatar Symbolk commented on June 18, 2024 1

@leusonmario One solution is provided in #88, it seems the problem with ClassIndex, which replaces Reflections to scan all the generators.

from gumtree.

jrfaller avatar jrfaller commented on June 18, 2024

Hi and thanks for your feedback.

Could you be more precise about the issues you ran over with?

Cheers.

from gumtree.

leusonmario avatar leusonmario commented on June 18, 2024

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.

jrfaller avatar jrfaller commented on June 18, 2024

Can you tell me how you installed GumTree?

from gumtree.

leusonmario avatar leusonmario commented on June 18, 2024

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.

leusonmario avatar leusonmario commented on June 18, 2024

It was an issue with eclipse version.
I'll close this issue.

from gumtree.

Symbolk avatar Symbolk commented on June 18, 2024

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.

leusonmario avatar leusonmario commented on June 18, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.