GNU bug report logs - #78754
Tree-sitter started versioning their shared library filenames

Previous Next

Package: emacs;

Reported by: Peter Oliver <p.d.oliver <at> mavit.org.uk>

Date: Tue, 10 Jun 2025 18:53:04 UTC

Severity: normal

Done: Yuan Fu <casouri <at> gmail.com>

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Yuan Fu <casouri <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#78754: closed (Tree-sitter started versioning their shared
 library filenames)
Date: Wed, 11 Jun 2025 06:48:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Tue, 10 Jun 2025 23:47:38 -0700
with message-id <973B691D-9AA0-48B7-9BA6-8103717D756D <at> gmail.com>
and subject line Re: bug#78754: Tree-sitter started versioning their shared library filenames
has caused the debbugs.gnu.org bug report #78754,
regarding Tree-sitter started versioning their shared library filenames
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
78754: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78754
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Peter Oliver <p.d.oliver <at> mavit.org.uk>
To: bug-gnu-emacs <at> gnu.org
Subject: Tree-sitter started versioning their shared library filenames
Date: Tue, 10 Jun 2025 19:52:21 +0100 (BST)
[Message part 3 (text/plain, inline)]
The Makefiles distributed with Tree-sitter parsers used to install to, say, /usr/lib/libtree-sitter-foo.so.0.0.  Consequently, Emacs currently 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’s src/parser.c).  Emacs should look in these places as well.

Presumably we should ask the libtree-sitter we’re using what ABI versions it supports, rather than hard-coding 14 and 15.

-- 
Peter Oliver
[Message part 4 (message/rfc822, inline)]
From: Yuan Fu <casouri <at> gmail.com>
To: Peter Oliver <p.d.oliver <at> mavit.org.uk>
Cc: 78754-done <at> debbugs.gnu.org
Subject: Re: bug#78754: Tree-sitter started versioning their shared library
 filenames
Date: Tue, 10 Jun 2025 23:47:38 -0700

> On Jun 10, 2025, at 11:52 AM, Peter Oliver <p.d.oliver <at> mavit.org.uk> wrote:
> 
> The Makefiles distributed with Tree-sitter parsers used to install to, say, /usr/lib/libtree-sitter-foo.so.0.0.  Consequently, Emacs currently 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’s src/parser.c).  Emacs should look in these places as well.
> 
> Presumably we should ask the libtree-sitter we’re using what ABI 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 supported 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-sitter-foo.so.14.0, and libtree-sitter-foo.so.15.0.

Yuan

This bug report was last modified 2 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.