Closed grembo closed 7 months ago
Hmm, ok. I did that in the hopes of avoiding a lockstep-bump of major version (i.e. having to release 0.5.0
to match tree-sitter’s 0.23.1
) but it looks like Cargo’s dependency resolver ends up just bundling both versions.
I can check, but it sounds like ast-grep is still on 0.20.x, is that right? So I should just go back to matching that?
I can check, but it sounds like ast-grep is still on 0.20.x, is that right? So I should just go back to matching that?
Yes, it seems like it, so I think this would be the way to go. Once you tag a release, I can open a PR at ast-grep (or you can do that, if you prefer)
tree-sitter-lua-0.0.19/Cargo.toml.orig:tree-sitter = "0.20"
tree-sitter-css-0.20.0/Cargo.toml.orig:tree-sitter = "~0.20.10"
tree-sitter-elixir-0.1.1/Cargo.toml.orig:tree-sitter = ">= 0.19, < 0.21"
tree-sitter-kotlin-0.3.5/Cargo.toml.orig:tree-sitter = "0.20"
tree-sitter-javascript-0.20.4/Cargo.toml.orig:tree-sitter = "~0.20.10"
tree-sitter-scala-0.20.3/Cargo.toml.orig:tree-sitter = "0.20.7"
tree-sitter-json-0.20.2/Cargo.toml.orig:tree-sitter = "~0.20.10"
tree-sitter-rust-0.20.4/Cargo.toml.orig:tree-sitter = "~0.20.10"
tree-sitter-swift-0.4.2/Cargo.toml.orig:tree-sitter = ">=0.20.4, <0.23.0"
tree-sitter-swift-0.4.2/Cargo.toml.orig:tree-sitter = "0.20.4"
tree-sitter-php-0.22.2/Cargo.toml.orig:tree-sitter = "~0.20.10"
tree-sitter-cpp-0.20.5/Cargo.toml.orig:tree-sitter = "~0.20.10"
tree-sitter-facade-sg-0.9.2/Cargo.toml.orig:tree-sitter = "0.20"
ast-grep-tree-sitter-c-sharp-0.20.0/Cargo.toml.orig:tree-sitter = "0.20"
tree-sitter-bash-0.20.5/Cargo.toml.orig:tree-sitter = "~0.20.10"
tree-sitter-typescript-0.20.5/Cargo.toml.orig:tree-sitter = "~0.20.10"
tree-sitter-ruby-0.20.1/Cargo.toml.orig:tree-sitter = "0.20.10"
tree-sitter-python-0.20.4/Cargo.toml.orig:tree-sitter = "~0.20.10"
tree-sitter-c-0.20.8/Cargo.toml.orig:tree-sitter = "~0.20.10"
tree-sitter-go-0.20.0/Cargo.toml.orig:tree-sitter = ">= 0.20, < 0.21"
tree-sitter-dart-0.0.3/Cargo.toml.orig:tree-sitter = "0.20.8"
tree-sitter-java-0.20.2/Cargo.toml.orig:tree-sitter = ">= 0.19, < 0.21"
tree-sitter-html-dvdb-0.20.0/Cargo.toml.orig:tree-sitter = "~0.20.10"
OK, published 0.4.3 that goes back to exclusively supporting 0.20.x
: https://crates.io/crates/tree-sitter-swift/0.4.3
I admit, I am a bit skeptical of how the tree-sitter
ecosystem plans to migrate to 0.23
-- it seems like all the grammars are just holding back. If individual grammar repos can't do cross-MV support like this, it's going to take a long time to shore up.
I admit, I am a bit skeptical of how the
tree-sitter
ecosystem plans to migrate to0.23
-- it seems like all the grammars are just holding back. If individual grammar repos can't do cross-MV support like this, it's going to take a long time to shore up.
I don’t know much about the tree-sitter ecosystem (I’m basically just a user whose CI process broke), but from what I’ve seen I would agree to your assertion.
Thank you for the ultra-quick response! 🙏
tree-sitter's new release is pretty hard to upgrade. All grammars need to be updated for a multi-language tool to be upgraded :/
Hi,
This issue could also be left at tree-sitter or ast-grep, but it feels like this is the best place to start.
When building some versions of ast-grep (including the latest 0.19.4 - e.g.
cargo install ast-grep
), the build fails with:Without digging too deep, it seems like to be caused by a combination of a new release of tree-sitter and this dependency in Cargo.toml:
Changing it to
or
fixes the build.