Emacs tree-sitter 0.25.3-3.1 error

In an email to the mailing list, Berthold Höllmann noted that the recent update to tree-sitter appears to have broken Emacs. Launching it, even without any configuration, gives a long spiel (a stacktrace?) ending with

Symbol’s value as variable is void: /usr/lib64/tree-sitter

Höllmann says this is due to the file /usr/share/emacs/site-lisp/site-start.d/tree-sitter-load-path.el, which contains:

;;  -*- lexical-binding: t -*-
;; Add tree-sitter grammars packaged by openSUSE
(add-to-list 'treesit-extra-load-path /usr/lib64/tree-sitter)

and notes that it appears you can solve it by adding double quotes around /usr/lib64/tree-sitter, which also worked for me. Is this just a simple syntax mistake, or is there more to it? If so, how can it best be reported and fixed?

@lambdion Hi and welcome to the Forum :smile:
The user opened a bug report, add your voice there.

https://bugzilla.opensuse.org/show_bug.cgi?id=1259205

1 Like

… and a fix is included in TW 20260308, see New Tumbleweed snapshot 20260308 released!

==== tree-sitter ====
Subpackages: libtree-sitter0_25 libtree-sitter0_25-x86-64-v3

  • Fix quoting of Emacs tree-sitter-extra-load-path. Fixes boo#1259205
  • Install Emacs trees-sitter site-start script to libtree-sitter.
    Grammars should be found without installing the main package.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.