From 87a47f56a8d9e0a41ef434804a6d821e0b0bea24 Mon Sep 17 00:00:00 2001 From: Mikey Lombardi Date: Thu, 11 Dec 2025 14:46:26 -0600 Subject: [PATCH 1/2] (MAINT) Pin `tree-sitter-cli` to `0.25.10` Prior to this change, CI began failing due to errors in the generated bindings for the grammar crates. This seems to be related to a new release of tree-sitter. This change pins the version of tree-sitter in the build script to use `0.25.10`, which is the last version that doesn't cause build failures. We should investigate further in the future, but for now the pinning should resolve CI failures that are blocking all other PRs. --- build.helpers.psm1 | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/build.helpers.psm1 b/build.helpers.psm1 index 419fde804..15cb368df 100644 --- a/build.helpers.psm1 +++ b/build.helpers.psm1 @@ -471,6 +471,19 @@ function Install-TreeSitter { [switch]$UseCFS ) + begin { + $arguments = @( + 'install', + 'tree-sitter-cli', + '--version', '0.25.10' + ) + + if ($UseCFS) { + $arguments += '--config' + $arguments += '.cargo/config.toml' + } + } + process { if (Test-CommandAvailable -Name 'tree-sitter') { Write-Verbose "tree-sitter already installed." @@ -478,11 +491,9 @@ function Install-TreeSitter { } Write-Verbose -Verbose "tree-sitter not found, installing..." - if ($UseCFS) { - cargo install tree-sitter-cli --config .cargo/config.toml - } else { - cargo install tree-sitter-cli - } + + cargo @arguments + if ($LASTEXITCODE -ne 0) { throw "Failed to install tree-sitter-cli" } From a33e2ae3e3138ee898083b0508aa734f8a80ce07 Mon Sep 17 00:00:00 2001 From: Mikey Lombardi Date: Thu, 11 Dec 2025 15:00:49 -0600 Subject: [PATCH 2/2] (MAINT) Remove unused export in `dsc-lib::dscerror` --- lib/dsc-lib/src/dscerror.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/dsc-lib/src/dscerror.rs b/lib/dsc-lib/src/dscerror.rs index 02a482107..2e1488c77 100644 --- a/lib/dsc-lib/src/dscerror.rs +++ b/lib/dsc-lib/src/dscerror.rs @@ -6,7 +6,6 @@ use std::str::Utf8Error; use indicatif::style::TemplateError; use thiserror::Error; -use tracing::error; use tree_sitter::LanguageError; #[derive(Error, Debug)]