Hi, I want to ask how to build this tool from source code.
I've cloned tree-sitter-rust and tree-splicer and then ran cargo build. However, I encountered multiple errors, such as:
error[E0425]: cannot find function `language` in crate `tree_sitter_rust`
--> src/main.rs:2777:44
|
2777 | parser.set_language(&tree_sitter_rust::language()).unwrap();
| ^^^^^^^^ help: a constant with a similar name
exists: `LANGUAGE`
|
::: /tree-sitter-rust/bindings/rust/lib.rs:35:1
|
35 | pub const LANGUAGE: LanguageFn = unsafe { LanguageFn::from_raw(tree_sitter_rust) };
| ------------------------------ similarly named constant `LANGUAGE` defined here
error[E0308]: mismatched types
--> src/fuzz_tree_splicer.rs:156:31
|
156 | Splicer::new(splicer_cfg, hmap)
| ------------ ^^^^ expected `tree_sitter::Tree`, found `Tree`
| |
| arguments to this function are incorrect
|
note: two different versions of crate `tree_sitter` are being used; two types coming from two di
fferent versions of the same crate are different types even if they look the same
--> /root/.cargo/git/checkouts/tree-sitter-a21c02e4b1d6dd0c/f0e7ac2/lib/binding_rust/lib.rs:9
2:1
I tried switching to some older versions of tree-sitter and tree-splicer, but the same errors persisted. Would you have any suggestions on how to fix these? Or is there an alternative way to use this tool?
Thanks!
Hi, I want to ask how to build this tool from source code.
I've cloned
tree-sitter-rustandtree-splicerand then rancargo build. However, I encountered multiple errors, such as:I tried switching to some older versions of
tree-sitterandtree-splicer, but the same errors persisted. Would you have any suggestions on how to fix these? Or is there an alternative way to use this tool?Thanks!