Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse functionality not working #17

Open
mikias21 opened this issue Sep 28, 2021 · 0 comments
Open

Parse functionality not working #17

mikias21 opened this issue Sep 28, 2021 · 0 comments

Comments

@mikias21
Copy link

mikias21 commented Sep 28, 2021

I am using the docker container of gumtree. Trying to parse a C code and generate AST but not working.
I tried these two commands but both of them throw error. Can someone help me with this issue please?

└─$ sudo docker run -p 8000 gumtreediff/gumtree parse ~/Desktop/research/snippets/gumtree/orignal/test.c

Error while running client 'parse'.
java.nio.file.NoSuchFileException: /home/kali/Desktop/research/snippets/gumtree/orignal/test.c
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:219)
at java.base/java.nio.file.Files.newByteChannel(Files.java:371)
at java.base/java.nio.file.Files.newByteChannel(Files.java:422)
at java.base/java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:420)
at java.base/java.nio.file.Files.newInputStream(Files.java:156)
at java.base/java.nio.file.Files.newBufferedReader(Files.java:2839)
at com.github.gumtreediff.gen.TreeGenerator$ReaderConfigurator.file(TreeGenerator.java:90)
at com.github.gumtreediff.gen.TreeGenerator$ReaderConfigurator.file(TreeGenerator.java:100)
at com.github.gumtreediff.gen.TreeGenerators.getTree(TreeGenerators.java:55)
at com.github.gumtreediff.gen.TreeGenerators.getTree(TreeGenerators.java:67)
at com.github.gumtreediff.client.Serializer.getTreeContext(Serializer.java:140)
at com.github.gumtreediff.client.Serializer.run(Serializer.java:132)
at com.github.gumtreediff.client.Run.startClient(Run.java:81)
at com.github.gumtreediff.client.Run.main(Run.java:115)

└─$ sudo docker run -v ~/Desktop/research/snippets/gumtree/orignal:/diff/left -p 4567:4567 gumtreediff/gumtree parse left/

Error while running client 'parse'.
java.lang.UnsupportedOperationException: No generator found for file: left/
at com.github.gumtreediff.gen.TreeGenerators.getTree(TreeGenerators.java:54)
at com.github.gumtreediff.gen.TreeGenerators.getTree(TreeGenerators.java:67)
at com.github.gumtreediff.client.Serializer.getTreeContext(Serializer.java:140)
at com.github.gumtreediff.client.Serializer.run(Serializer.java:132)
at com.github.gumtreediff.client.Run.startClient(Run.java:81)
at com.github.gumtreediff.client.Run.main(Run.java:115)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant