Skip to content

fix: raise tree-sitter floor to 0.25, test query compilation - #2170

Open
Aman-goel-04 wants to merge 1 commit into
repowise-dev:mainfrom
Aman-goel-04:fix/tree-sitter-floor-2165
Open

fix: raise tree-sitter floor to 0.25, test query compilation#2170
Aman-goel-04 wants to merge 1 commit into
repowise-dev:mainfrom
Aman-goel-04:fix/tree-sitter-floor-2165

Conversation

@Aman-goel-04

Copy link
Copy Markdown
Contributor

Summary

  • Raise the tree-sitter floor from >=0.23,<1 to >=0.25,<1. 0.23.x/0.24.x fail to compile 13 of 27 language queries (Impossible pattern), silently indexing those languages at zero symbols
  • Add a test that compiles every language's query against its registered grammar and asserts the result isn't None, instead of expecting an exception
  • Add a CI job that pins tree-sitter to the exact declared floor (0.25.0) and runs that one test, so a future floor regression is caught without a full --resolution lowest-direct job

Related Issues

Fixes #2165

Test Plan

  • Tests pass (pytest)
  • Lint passes (ruff check .)
  • Web build passes (npm run build) (if frontend changes): N/A, no frontend changes

Checklist

  • My code follows the project's code style
  • I have added tests for new functionality
  • All existing tests still pass
  • I have updated documentation if needed: N/A, no docs affected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Raise the tree-sitter floor to 0.25 and add a test that compiles every language query

1 participant