Skip to content

Commit 61bad13

Browse files
committed
chore(tree_sitter): fixed syntax detection with csharp
1 parent 7dce87a commit 61bad13

File tree

4 files changed

+24
-26
lines changed

4 files changed

+24
-26
lines changed

AgentCrew/modules/file_editing/tree_sitter_checker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class TreeSitterChecker:
5353
".cxx": "cpp",
5454
".h": "c",
5555
".hpp": "cpp",
56-
".cs": "csharp",
56+
# ".cs": "csharp",
5757
".go": "go",
5858
".rs": "rust",
5959
".rb": "ruby",
@@ -140,7 +140,7 @@ def _extract_errors(self, tree, content: str) -> List[SyntaxError]:
140140

141141
def visit_node(node):
142142
"""Recursively visit tree nodes to find errors."""
143-
if node.type == "ERROR":
143+
if node.is_error:
144144
line = node.start_point[0] + 1 # tree-sitter uses 0-indexed lines
145145
column = node.start_point[1]
146146

docker/pyproject.docker.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@ dependencies = [
2929
"groq>=0.18.0",
3030
"chromadb>=1.0.0",
3131
"openai>=1.65.2",
32-
"tree-sitter>=0.23.2",
3332
"mcp>=1.24.0",
3433
"google-genai>=1.7.0",
3534
"toml>=0.10.2",
3635
"markdown>=3.7",
37-
"tree-sitter-language-pack>=0.7.0",
36+
"tree-sitter-language-pack>=0.10.0",
3837
"nest-asyncio>=1.6.0",
3938
"voyageai>=0.3.2",
4039
"numpy>=1.24.4,<2; python_version < '3.13' and sys_platform == 'darwin'",

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@ dependencies = [
2929
"groq>=0.18.0",
3030
"chromadb>=1.0.0",
3131
"openai>=1.65.2",
32-
"tree-sitter>=0.23.2",
3332
"mcp>=1.24.0",
3433
"google-genai>=1.7.0",
3534
"pyside6>=6.8.3",
3635
"markdown>=3.7",
37-
"tree-sitter-language-pack>=0.7.0",
36+
"tree-sitter-language-pack>=0.10.0",
3837
"nest-asyncio>=1.6.0",
3938
"voyageai>=0.3.2",
4039
"numpy>=1.24.4,<2; python_version < '3.13' and sys_platform == 'darwin'",

uv.lock

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)