You are not logged in.

#1 2025-07-27 18:56:55

0815
Member
Registered: 2021-11-05
Posts: 23

emacs tree-sitter dependencies

This is probably by design, but I thought I'd ask anyway: the emacs packages all have the libtree-sitter.so dependency, which is needed for tree-sitter support in the builtin major modes that use tree-sitter. However none of the language grammars are pulled as dependencies, some aren't available from the repos at all. Do we not pull in the language grammars as not everybody might want to use said major modes? Also is there a reason that 10 grammars are in the repositories but others for builtin major modes aren't (eg CSS).

This leads to those major modes crashing when started.

Yes it is easy to compile the libraries oneself, but feels a bit like a stop-gap

Offline

#2 2025-11-07 07:38:37

krydos
Member
Registered: 2025-11-06
Posts: 1

Re: emacs tree-sitter dependencies

I don't have answer to your questions but just to think aloud with you - maybe those existing tree-sitter grammars in extra repo should be added as optdepends to Emacs' PKGBUILD.
On the other hand Emacs package maintainer should then watch for new grammars published as a package and update Emacs' PKGBUILD every time which sounds too time consuming.

It does make sense to not have them as required dependency as it's not required to have them to run Emacs, but you're right, it makes the whole experience a bit off.

Offline

Board footer

Powered by FluxBB