Closed SherloqueChang closed 1 year ago
Hi!
You have to force the tree sitter backend like this:
Tree src = new CTreeSitterTreeGenerator().generateFrom().file(srcFile).getRoot();
Tree dst = new CTreeSitterTreeGenerator().generateFrom().file(dstFile).getRoot();
If everything is installed correctly and you have a very recent clone of GumTree, it should work :-)
Cheers!
Ahh...another question here: why should I have a clone of GumTree?
I'm using Maven dependency like: `
`
In this case, can I just add dependency in my pom.xml file? If so, what should
Sorry, but the tree sitter integration has not yet been released to Maven!
Ok, I understand now. Thanks a lot!
I've installed
tree-sitter-parser
, but how can I get C code edit actions by invoking Java API in a Java project? The original implementaion is usingcgum
, but my OS is windows and I couldn't compile it. Here is my code: