Git Product home page Git Product logo

Comments (7)

saheel1115 avatar saheel1115 commented on July 19, 2024

Okay, looks like cgum is the tool found in gumtreediff/cgum. Unfortunately, I couldn't compile that repository to get the cgum binary. I have opened an issue there regarding that. Once I have that binary, to avoid the above error is it sufficient to include the cgum executable in my path?

from gumtree.

jrfaller avatar jrfaller commented on July 19, 2024

Yes you are right!

I believe this should go to the Wiki :)

In which section do you think it would be appropriate?

from gumtree.

JuliaLawall avatar JuliaLawall commented on July 19, 2024

On Fri, 19 Aug 2016, Jean-Rémy Falleri wrote:

Yes you are right!

I believe this should go to the Wiki :)

In which section do you think it would be appropriate?

I'm lost. There is a comment in saheel1115's mail about "Unfortunately,
I couldn't compile that repository to get the cgum binary. I have opened
an issue there regarding that." But I don't know how to find the issue
that he opened.

julia

from gumtree.

jrfaller avatar jrfaller commented on July 19, 2024

I believe this is this one : GumTreeDiff/cgum#1

from gumtree.

saheel1115 avatar saheel1115 commented on July 19, 2024

I was able to install Cgum and successfully parse/diff C files. Thanks!

In which section do you think it would be appropriate?

The Installation section in Getting Started mentions that Gradle is used to manage dependencies. Ideally, Gradle should deal with Cgum internally. If that cannot be done or is a time-consuming task, at the very least we can add a line in the Installation section saying Gumtree/Cgum is a dependency (and that the binary should be in the path) if you want to diff C files.

from gumtree.

jrfaller avatar jrfaller commented on July 19, 2024

I have updated the installation section of the wiki!

from gumtree.

nimisha-agarwal avatar nimisha-agarwal commented on July 19, 2024

I have added "cgum" to the system path, however, I am still getting the same error. Can someone help me to resolve the error?
java.io.IOException: Cannot run program "cgum" (in directory "/tmp"): error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at com.github.gumtreediff.gen.c.CTreeGenerator.generate(CTreeGenerator.java:73)
at com.github.gumtreediff.gen.TreeGenerator.generateFromReader(TreeGenerator.java:37)
at com.github.gumtreediff.gen.TreeGenerator.generateFromFile(TreeGenerator.java:43)
at com.github.gumtreediff.gen.Generators.getTree(Generators.java:43)
at com.github.gumtreediff.client.diff.AbstractDiffClient.getTreeContext(AbstractDiffClient.java:128)
at com.github.gumtreediff.client.diff.AbstractDiffClient.getSrcTreeContext(AbstractDiffClient.java:114)
at com.github.gumtreediff.client.diff.AbstractDiffClient.matchTrees(AbstractDiffClient.java:105)
at com.github.gumtreediff.client.diff.TextDiff.run(TextDiff.java:98)
at com.github.gumtreediff.client.Run.startClient(Run.java:80)
at com.github.gumtreediff.client.Run.main(Run.java:108)
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.(UNIXProcess.java:247)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 10 more
** Error while running client diff: java.lang.NullPointerException

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.