emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Treesit says grammar is unavailable when it


From: Eli Zaretskii
Subject: Re: Treesit says grammar is unavailable when it
Date: Fri, 10 Mar 2023 14:32:33 +0200

> Date: Fri, 10 Mar 2023 09:24:25 +0000
> From: mprodrigues@posteo.net
> 
> I've been trying to test the new tree-sitter modes, but I'm having some
> difficulties and would like to debug this. I have tried 
> dockerfile-ts-mode,
> python-ts-mode and yaml-ts-mode, of these only dockerfile worked, for
> the other two I get:
> 
> Warning (treesit): Cannot activate tree-sitter, because language grammar
> for python is unavailable (not-found): (libtree-sitter-python 
> libtree-sitter-python.so)
> No such file or directory
> 
> but I have yaml and python's grammar under ~/.emacs.d/tree-sitter
> I tried compiling the grammars myself and use emacs's own
> treesit-install-language-grammar to no avail. How can I debug this?

What is the value of user-emacs-directory in your Emacs sessions?

Also, please show the full contents of the ~/.emacs.d/tree-sitter
directory.

To debug this, I'd recommend stepping with a debugger into the
function treesit_load_language, and trying to figure out why it fails
to find the shared libraries you installed.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]