Skip to content

Why any-of predicate doesn't work ? #3226

Answered by WillLillis
uros-5 asked this question in Q&A
Discussion options

You must be logged in to vote

I tried running this with your repo as is and saw the reported behavior. After that I also ran it with the tree-sitter dependency bumped up to the latest release. Here's the modified version of your Cargo.toml file to better illustrate what I mean:

[package]
name = "any-of-tree-sitter"
version = "0.1.0"
edition = "2021"

[build-dependencies]
cc="*"

[dependencies]
tree-sitter = "0.22.2"
tree-sitter-rust = {path = "/home/lillis/projects/tree-sitter-rust"}

In order for this to compile I also had to depend on a local clone of tree-sitter-rust (note the specified path for tree-sitter-rust) with the tree-sitter dependency bumped up in its Cargo.toml file. (The maintainers are aware of this, see

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by uros-5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants