Subject: Re: bug#78747: 31.0.50; Bash and C# missing from Tree-sitter compatibility report

From: Michael Albinus <[email-masked]>
Date: Tue, 10 Jun 2025 19:55:33 +0200

Peter Oliver <[email-masked]> writes:

Hi Peter,

> Tree-sitter parsers for the Bash and C# languages are not currently included in the version compatibility report generated by admin/tree-sitter/treesit-admin.el
>
> A patch to resolve this is attached.
>
> diff --git a/admin/tree-sitter/treesit-admin.el b/admin/tree-sitter/treesit-admin.el
> index f41c4592039..6f17a174f0c 100644
> --- a/admin/tree-sitter/treesit-admin.el
> +++ b/admin/tree-sitter/treesit-admin.el
> @@ -72,41 +72,43 @@ 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")
> +  '((bash "https://github.com/tree-sitter/tree-sitter-bash")
> +    (c "https://github.com/tree-sitter/tree-sitter-c" "v0.23.4")
> +    (c-sharp "https://github.com/tree-sitter/tree-sitter-c-sharp")

...

Is it still appropriate to have hard-coded versions here?
treesit-language-source-alist is populated with proper versions
meanwhile.

That's why, that I do on emba

--8<---------------cut here---------------start------------->8---
(setq treesit-admin--builtin-language-sources treesit-language-source-alist)
--8<---------------cut here---------------end--------------->8---

when generating compatibility-report.html. See test/infra/Dockerfile.emba.

> Peter Oliver

Best regards, Michael.