Package Details: tree-sitter-latex 0.6.0-2

Git Clone URL: https://aur.archlinux.org/tree-sitter-latex.git (read-only, click to copy)
Package Base: tree-sitter-latex
Description: LaTeX grammar for tree-sitter
Upstream URL: https://github.com/latex-lsp/tree-sitter-latex
Licenses: MIT
Groups: tree-sitter-grammars
Provides: libtree-sitter-latex.so
Submitter: Chocobo1
Maintainer: Chocobo1
Last Packager: Chocobo1
Votes: 0
Popularity: 0.000000
First Submitted: 2025-03-07 16:40 (UTC)
Last Updated: 2026-01-03 18:13 (UTC)

Pinned Comments

Chocobo1 commented on 2025-03-22 08:26 (UTC)

Any idea what I need to do?

Seems upstream messed it up. It is better to report it to them: https://github.com/latex-lsp/tree-sitter-latex/issues

Latest Comments

ChrisTX commented on 2026-07-19 16:18 (UTC) (edited on 2026-07-19 22:05 (UTC) by ChrisTX)

@Chocobo1 Hey, the reason the build fails is that with this commit 2 years ago they removed the generated tree-sitter-latex.h entirely. However, they forgot to remove this line in the Makefile which tries to install the now removed file. Removing that line works.

I've used this patch to the PKGBUILD to remove the problematic line from the Makefile. You can also re-enable the tests, they will run fine like that.

I have also opened a PR upstream with this fix, see here

Edit: Oh btw, tree-sitter-latex-git kept working because their PKGBUILD doesn't use make install but rather installs individual files itself. But that way it avoided running into this particular issue. Either way, make install with the problematic line removed is a preferable solution.

gi1242 commented on 2026-05-14 02:19 (UTC) (edited on 2026-05-14 23:03 (UTC) by gi1242)

I also get the error:

install: cannot stat 'bindings/c/tree-sitter-latex.h': No such file or directory
make: *** [Makefile:89: install] Error 1
==> ERROR: A failure occurred in package().
    Aborting...

The tree-sitter-latex-git complies cleanly though.

maogouste commented on 2026-04-10 21:44 (UTC)

When installing tree-sitter-latex with 'paru -S tree-sitter-latex', I get :

install -m644 bindings/c/tree-sitter-latex.h '/home/gerard/.cache/paru/clone/tree-sitter-latex/pkg/tree-sitter-latex/usr/include'/tree_sitter/tree-sitter-latex.h install: cannot stat 'bindings/c/tree-sitter-latex.h': No such file or directory make: *** [Makefile:89: install] Error 1 ==> ERROR: A failure occurred in package(). -- Aborting...

I do agree, there's no .h file in bindings/c/

what do I do wrong ?

Chocobo1 commented on 2025-03-22 08:26 (UTC)

Any idea what I need to do?

Seems upstream messed it up. It is better to report it to them: https://github.com/latex-lsp/tree-sitter-latex/issues

cfr42 commented on 2025-03-22 01:17 (UTC)

I cannot get this to compile:

... Warning: No tree-sitter.json file found in your grammar, this file is required to generate with ABI 15. Using ABI version 14 instead. This file can be set up with tree-sitter init. For more information, see https://tree-sitter.github.io/tree-sitter/cli/init. cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/home/software/builds/git-cloned/tree-sitter-latex/src=/usr/src/debug/tree-sitter-latex -flto=auto -ffat-lto-objects -Isrc -std=c11 -fPIC -c -o src/parser.o src/parser.c ar rcs libtree-sitter-latex.a src/parser.o src/scanner.o cc -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -shared -Wl,-soname,libtree-sitter-latex.so.0 src/parser.o src/scanner.o -o libtree-sitter-latex.so ==> Starting check()... ==> Entering fakeroot environment... ==> WARNING: PACKAGER should have the format 'Example Name email@address.invalid' ==> Starting package()... install -d '/home/software/builds/git-cloned/tree-sitter-latex/pkg/tree-sitter-latex/usr/include'/tree_sitter '/home/software/builds/git-cloned/tree-sitter-latex/pkg/tree-sitter-latex/usr/lib/pkgconfig' '/home/software/builds/git-cloned/tree-sitter-latex/pkg/tree-sitter-latex/usr/lib' install -m644 bindings/c/tree-sitter-latex.h '/home/software/builds/git-cloned/tree-sitter-latex/pkg/tree-sitter-latex/usr/include'/tree_sitter/tree-sitter-latex.h install: cannot stat 'bindings/c/tree-sitter-latex.h': No such file or directory make: *** [Makefile:89: install] Error 1 ==> ERROR: A failure occurred in package(). Aborting...

Any idea what I need to do?