Subject: 31.0.50; Stale Tree-sitter compatibility report

From: Peter Oliver <[email-masked]>
Date: Tue, 10 Jun 2025 16:51:04 +0100 (BST)

The Tree-sitter parser version compatibility report generated by admin/tree-sitter/treesit-admin.el currently shows stale versions of the parsers.

Attached is a patch to resolve this.

-- 
Peter Oliver

From a9f2282738eb35e9c534b92a2938702defb1ad7d Mon Sep 17 00:00:00 2001
From: Peter Oliver <[email-masked]>
Date: Tue, 10 Jun 2025 15:02:58 +0100
Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20lock=20Treesitter=20compatibili?=
 =?UTF-8?q?ty=20report=20to=20known=20working=20versions?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The aim of `treesit-admin--generate-compatibility-report' is to test the
latest versions of the various Tree-sitter parsers to see which are
compatible with a given Emacs version.  Pinning to known-working parser
versions defeats the point, so let’s not do that.

* admin/tree-sitter/treesit-admin.el
(treesit-admin--builtin-language-sources): Don’t specify versions, so
the latest will be used.
---
 admin/tree-sitter/treesit-admin.el | 48 ++++++++++++++----------------
 1 file changed, 23 insertions(+), 25 deletions(-)

diff --git a/admin/tree-sitter/treesit-admin.el b/admin/tree-sitter/treesit-admin.el
index f41c4592039..af39963f8b7 100644
--- a/admin/tree-sitter/treesit-admin.el
+++ b/admin/tree-sitter/treesit-admin.el
@@ -72,33 +72,31 @@ treesit-admin-check-manual-coverage
 ;;; Query validation
 
 (defvar treesit-admin--builtin-language-sources
-  '((c "https://github.com/tree-sitter/tree-sitter-c" "v0.23.4")
-    (cpp "https://github.com/tree-sitter/tree-sitter-cpp" "v0.23.4")
-    (cmake "https://github.com/uyha/tree-sitter-cmake" "v0.5.0")
-    (dockerfile "https://github.com/camdencheek/tree-sitter-dockerfile" "v0.2.0")
-    (go "https://github.com/tree-sitter/tree-sitter-go" "v0.23.4")
-    (ruby "https://github.com/tree-sitter/tree-sitter-ruby" "v0.23.1")
-    (javascript "https://github.com/tree-sitter/tree-sitter-javascript" "v0.23.1")
+  '((c "https://github.com/tree-sitter/tree-sitter-c")
+    (cpp "https://github.com/tree-sitter/tree-sitter-cpp")
+    (cmake "https://github.com/uyha/tree-sitter-cmake")
+    (dockerfile "https://github.com/camdencheek/tree-sitter-dockerfile")
+    (go "https://github.com/tree-sitter/tree-sitter-go")
+    (ruby "https://github.com/tree-sitter/tree-sitter-ruby")
+    (javascript "https://github.com/tree-sitter/tree-sitter-javascript")
     (typescript "https://github.com/tree-sitter/tree-sitter-typescript"
-                "v0.23.2" "typescript/src")
-    (tsx "https://github.com/tree-sitter/tree-sitter-typescript"
-         "v0.23.2" "tsx/src")
-    (json "https://github.com/tree-sitter/tree-sitter-json" "v0.24.8")
-    (rust "https://github.com/tree-sitter/tree-sitter-rust" "v0.23.2")
-    (php "https://github.com/tree-sitter/tree-sitter-php"
-         "v0.23.11" "php/src")
-    (css "https://github.com/tree-sitter/tree-sitter-css" "v0.23.1")
+                nil "typescript/src")
+    (tsx "https://github.com/tree-sitter/tree-sitter-typescript" nil "tsx/src")
+    (json "https://github.com/tree-sitter/tree-sitter-json")
+    (rust "https://github.com/tree-sitter/tree-sitter-rust")
+    (php "https://github.com/tree-sitter/tree-sitter-php" nil "php/src")
+    (css "https://github.com/tree-sitter/tree-sitter-css")
     (phpdoc "https://github.com/claytonrcarter/tree-sitter-phpdoc")
-    (doxygen "https://github.com/tree-sitter-grammars/tree-sitter-doxygen" "v1.1.0")
-    (lua "https://github.com/tree-sitter-grammars/tree-sitter-lua" "v0.3.0")
-    (python "https://github.com/tree-sitter/tree-sitter-python" "v0.23.6")
-    (html "https://github.com/tree-sitter/tree-sitter-html" "v0.23.2")
-    (elixir "https://github.com/elixir-lang/tree-sitter-elixir" "v0.3.3")
-    (heex "https://github.com/phoenixframework/tree-sitter-heex" "v0.7.0")
-    (java "https://github.com/tree-sitter/tree-sitter-java" "v0.23.5")
-    (jsdoc "https://github.com/tree-sitter/tree-sitter-jsdoc" "v0.23.2")
-    (toml "https://github.com/tree-sitter-grammars/tree-sitter-toml" "v0.7.0")
-    (yaml "https://github.com/tree-sitter-grammars/tree-sitter-yaml" "v0.7.0"))
+    (doxygen "https://github.com/tree-sitter-grammars/tree-sitter-doxygen")
+    (lua "https://github.com/tree-sitter-grammars/tree-sitter-lua")
+    (python "https://github.com/tree-sitter/tree-sitter-python")
+    (html "https://github.com/tree-sitter/tree-sitter-html")
+    (elixir "https://github.com/elixir-lang/tree-sitter-elixir")
+    (heex "https://github.com/phoenixframework/tree-sitter-heex")
+    (java "https://github.com/tree-sitter/tree-sitter-java")
+    (jsdoc "https://github.com/tree-sitter/tree-sitter-jsdoc")
+    (toml "https://github.com/tree-sitter-grammars/tree-sitter-toml")
+    (yaml "https://github.com/tree-sitter-grammars/tree-sitter-yaml"))
   "A list of sources for the builtin modes.
 The source information are in the format of
 `treesit-language-source-alist'.  This is for development only.")
-- 
2.49.0