Fix tree-sitter version compatibility with tree-sitter-languages
Pin tree-sitter to 0.20.x because tree-sitter-languages 1.10.x is incompatible with tree-sitter 0.21+. The 0.21+ API changed Parser() and Language() constructors, causing '__init__() takes exactly 1 argument (2 given)' errors on all file parsing operations. This fix restores selective indexing functionality which relies on TreeSitter for code parsing and symbol extraction.
This commit is contained in:
parent
3a5d7dee81
commit
64a8807f33
1 changed files with 3 additions and 1 deletions
|
|
@ -8,7 +8,9 @@ sqlite-vec>=0.1.0
|
|||
numpy>=1.24.0
|
||||
|
||||
# Tree-sitter for fast structural indexing
|
||||
tree-sitter>=0.21.0
|
||||
# NOTE: tree-sitter-languages 1.10.x is incompatible with tree-sitter 0.21+
|
||||
# The 0.21+ API changed Parser() and Language() constructors breaking the library
|
||||
tree-sitter>=0.20.0,<0.21.0
|
||||
tree-sitter-languages>=1.10.0 # Pre-built binaries for 40+ languages
|
||||
networkx>=3.2.1 # For dependency graphs and PageRank
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue