From 64a8807f3381a879d02b18b81c0f39b434c609b4 Mon Sep 17 00:00:00 2001 From: Illya Date: Mon, 8 Dec 2025 20:26:20 -0500 Subject: [PATCH] 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. --- requirements.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 44a002a..e79365f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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