From unknown Sat Jun 21 10:45:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#78754: Tree-sitter started versioning their shared library filenames Resent-From: Peter Oliver
> On Jun 10, 2025, at 11:52=E2=80=AFAM, Peter Oliver <p.d.oliver@mavit.org.uk&g= t; wrote:
>
> The Makefiles distributed with Tree-sitter parsers used to install to,= say, /usr/lib/libtree-sitter-foo.so.0.0.=C2=A0 Consequently, Emacs current= ly expects parsers to have names like this.
>
> Recent Makefiles instead install to /usr/lib/libtree-sitter-foo.so.14.= 0 or /usr/lib/libtree-sitter-foo.so.15.0 (where 14 or 15 is the Tree-sitter= ABI version, taken from LANGUAGE_VERSION in the parser=E2=80=99s src/parse= r.c).=C2=A0 Emacs should look in these places as well.
>
> Presumably we should ask the libtree-sitter we=E2=80=99re using what A= BI versions it supports, rather than hard-coding 14 and 15.
>
> --
> Peter Oliver
Thanks for the heads-up! I pushed a change to emacs-30 to look for all supp= orted versions. Eg, if the tree-sitter library supports language version 13= to 15, Emacs will try to look for libtree-sitter-foo.so.13.0, libtree-sitt= er-foo.so.14.0, and libtree-sitter-foo.so.15.0.