Bug 2258924 - Tree-sitter language libraries are not available in Fedora
Summary: Tree-sitter language libraries are not available in Fedora
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: emacs
Version: 45
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Peter Oliver
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 2193261 2273973 2274357 2274382 2307524 2307526 2307527 2307528 2307558 2307561 2307563 2307567 2333124 2349521 2349709 2349768 2349769 2349770 2349771 2349772 2349773 2349778 2349779 2349780 2422653 2467049
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-01-18 03:32 UTC by Fabrice Salvaire
Modified: 2026-08-17 13:17 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Fabrice Salvaire 2024-01-18 03:32:08 UTC
-> to forward to tree-sister package

Emacs is compiled with tree-sitter

but language libraries are not yet available in Fedora

Warning (treesit): Cannot activate tree-sitter, because language grammar for python is unavailable (not-found): (libtree-sitter-python libtree-sitter-python.0 libtree-sitter-python.0.0 libtree-sitter-python.so libtree-sitter-python.so.0 libtree-sitter-python.so.0.0) No such file or directory


Reproducible: Always

Comment 1 Fabrice Salvaire 2024-01-18 04:00:33 UTC
workaround https://gist.github.com/habamax/290cda0e0cdc6118eb9a06121b9bc0d7

run M-x treesit-install-language-grammar RET type python RET

Comment 2 Peter Oliver 2024-01-18 13:42:12 UTC
We need volunteers to create these additional packages.  We can then Recommend them from the emacs-common RPM, like we already do for libtree-sitter-java.

A couple of things which would make packaging easier:

- I have proposed an rpmdev-newspec template for creating Tree-sitter parser package .spec files.  https://pagure.io/rpmdevtools/pull-request/114

- Last time I checked, not all Tree-sitter parsers had a release containing a Makefile.  Upstream are considering changing the way this works (https://github.com/tree-sitter/tree-sitter/pull/2438), and I don’t think we can reasonably cover all languages until this is resolved.

Comment 3 Peter Oliver 2024-11-05 17:23:15 UTC
All recently-released Tree-sitter parsers now include a Makefile, which makes building them a uniform process.

I propose the use of RPM macros to simplify packaging Tree-sitter parsers.  https://lists.fedoraproject.org/archives/list/packaging@lists.fedoraproject.org/thread/X3B2MYPPSWBGWRFD7K62NNLIMIL3O56F/

Comment 4 Aoife Moloney 2025-02-26 12:54:57 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle.
Changing version to 42.

Comment 5 Peter Oliver 2025-03-03 14:01:44 UTC
Macros are now available to make these packages typically very easy.

https://docs.fedoraproject.org/en-US/packaging-guidelines/Tree-sitter/

Comment 6 Peter Oliver 2025-06-15 14:12:00 UTC
The only parsers remaining for Emacs 30 without a package completed or under review are:
- gomod, which needs its Makefile modernising if it's to be installable with Fedora's macros.
- phpdoc, but we can't package that until its licence is clarified.

Comment 7 Peter Oliver 2026-05-06 12:30:54 UTC
Emacs 31 will have some new Tree-sitter parser dependencies:

- gitattributes
- liquid
- markdown

Comment 8 Peter Oliver 2026-08-12 14:43:45 UTC
Outstanding for Emacs 31:

- dockerfile (needs https://github.com/camdencheek/tree-sitter-dockerfile/issues/48 fixing)
- doxygen
- gomod (needs https://github.com/camdencheek/tree-sitter-go-mod/pull/27 merging)
- gowork

It would be better for Emacs if we didn't package the following parsers yet, which won't work because of https://debbugs.gnu.org/cgi/bugreport.cgi?bug=81025.  Until that bug is fixed, this will also apply to any future modes defined via define-treesit-generic-mode (probably in treesit-x.el).

- gitattributes
- liquid

Comment 9 Peter Oliver 2026-08-12 15:02:34 UTC
- gowork (needs https://github.com/omertuc/tree-sitter-go-work/issues/3 fixing)

Comment 10 Peter Oliver 2026-08-12 15:15:50 UTC
- doxygen (needs https://github.com/tree-sitter-grammars/tree-sitter-doxygen/issues/23 fixing)

Comment 11 Aoife Moloney 2026-08-17 13:17:24 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 45 development cycle.
Changing version to 45.


Note You need to log in before you can comment on or make changes to this bug.