Closed nimisha-agarwal closed 12 months ago
Hi! You have to install and put in the path tree sitter parser.
Cheers
Do I need to install the java-tree-sitter parser? Can you share the link that contains instructions for installing it?
It's all on the tree sitter parser repo, located in the same organization.
Thank you so much. I got it.
After installing the tree sitter and adding it to the system path, I got this new error. Can you help me in resolving it?
Apparently, there is a syntax error in your file.
Do you mean the error is in the GumTree code, as its binary is extracted from the zip file generated after the build?
Could you attach the files you are trying to diff? The syntax error should be in one of those
I am using the same file for both arguments. Here are the contents: solution.txt
Could you provide me the command? It works for me
./gumtree textdiff ~/solution.c ~/solution.c
OK it's definitively working on my side, although the result is not very interesting ;-)
Something is not right with your install. Could you try tree-sitter-parser.py solution.c c
? You should obtain the XML of the AST.
I am getting the following error on running this command:
I have taken code from the main branch. This file is unavailable in my local repository. Where can I find it?
OK it seems that you did not checkout the submodules in the project tree-sitter-parser right ?
I have checked them out, and GumTree is also working now. Thanks for all the help :)
One more query: How can I install GumTree on Ubuntu 18.04 as the dependent packages are not available for this version?
if you don't need the dependent packages, you can install GumTree without them, it will work, if not you need to find how to compile manually the required native packages.
How to resolve this error?