matthiaskrgr / matthiaskrgr/icemaker
Build failure with cargo build
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 88
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
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!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with cargo build and inspect the reported call in src/main.rs:2777 alongside tree-sitter-rust's Rust bindings. Then examine src/fuzz_tree_splicer.rs:156 and the dependency versions named in the error. Done means the tool builds without these errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100