From: Eli Zaretskii <eliz@gnu.org>
To: mprodrigues@posteo.net
Cc: emacs-devel@gnu.org
Subject: Re: Treesit says grammar is unavailable when it
Date: Fri, 10 Mar 2023 14:32:33 +0200 [thread overview]
Message-ID: <83ilf8zt0e.fsf@gnu.org> (raw)
In-Reply-To: <e2b3367e146a9a19f11f7f2a665eb8db@posteo.net> (mprodrigues@posteo.net)
> 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.
next prev parent reply other threads:[~2023-03-10 12:32 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-10 9:24 Treesit says grammar is unavailable when it mprodrigues
2023-03-10 12:32 ` Eli Zaretskii [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-12-04 12:43 Gernot Kieseritzky
2023-12-13 3:33 ` Yuan Fu
2023-12-13 12:00 ` Eli Zaretskii
2023-12-14 8:14 ` Yuan Fu
2023-12-14 8:27 ` Eli Zaretskii
2023-12-15 2:43 ` Madhu
2023-12-15 9:00 ` Eli Zaretskii
2023-12-17 6:31 ` Yuan Fu
2023-12-17 8:32 ` Eli Zaretskii
2023-12-27 6:41 ` Yuan Fu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83ilf8zt0e.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=mprodrigues@posteo.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.