tree-sitter-python
tree-sitter-python copied to clipboard
Simplify try statement, accept missing else/except/finally
This makes the parser more useful for editors, since the try_statement will still be identified, even if it's incomplete.
If you update the parser to ABI 15, you also need to update the bindings to match (tree-sitter init --update).
- Apparently the
package-lock.jsonis out of date? Trynpm updateand commit the result. (Alsocargo updatefor good luck.) - You are using a(n outdated) distro build of
tree-sitterCLI that strips the commit info. Either use acargo buildfrom thev0.25.5tag of a local checkout, or addgenerate: falseto theparser-test-actionstep.
I'm using the latest version of Tree-sitter CLI via cargo install tree-sitter-cli. That should be a supported workflow. This build sha thing is not helpful right now.
I'm using the latest version of Tree-sitter CLI via cargo install tree-sitter-cli.
Didn't you just release a new version? ;) It looks like you're using a distro build of v0.25.4 (distro I'm guessing, but the version is right there in the diff.)
Didn't you just release a new version?
Yeah, but the same error occurred before that; the problem is that you don't get a BUILD SHA apparently if you cargo install.
(I do agree FWIW; it can be useful info but in combination with the overbearing workflows it's obnoxious.)
I get the good intention behind failing the build if the parser changed, but combined with the build sha thing, it's causing problems. It's nobody's fault, just observing some pain points that have arisen with Tree-sitter because of a few good ideas combining badly.
Maybe the workflow can ignore the first line of that diff (git diff |tail -n +1); that would sand off the sharpest edges here.
https://github.com/tree-sitter/parser-test-action/issues/6
(Not a maintainer here so I can't push to your PR; otherwise it'd be an easy fix for me.)
nice!