From: Eli Zaretskii <eliz@gnu.org>
To: Dominique Quatravaux <dominique@quatravaux.org>,
Yuan Fu <casouri@gmail.com>
Cc: 63990@debbugs.gnu.org
Subject: bug#63990: 30.0.50; `treesit-install-language-grammar' does not work noninteractively
Date: Thu, 15 Jun 2023 08:38:17 +0300 [thread overview]
Message-ID: <83352tuvxy.fsf@gnu.org> (raw)
In-Reply-To: <CA+tDuRw9xirYZOYKmLCs5qCE-bNBSRqCq=QqA7YL432bP4Je8g@mail.gmail.com> (message from Dominique Quatravaux on Fri, 9 Jun 2023 18:39:05 +0200)
> From: Dominique Quatravaux <dominique@quatravaux.org>
> Date: Fri, 9 Jun 2023 18:39:05 +0200
>
> When evaluating the following elisp snippet in the *scratch* buffer,
>
> (treesit-install-language-grammar 'bash)
>
> I expected treesit.el to download and compile the grammar for the bash
> language.
>
> Instead, I got
>
> ⛔ Warning (treesit): The installed language grammar for bash cannot be located or has problems
> (not-found): (libtree-sitter-bash.so libtree-sitter-bash.so.0 libtree-sitter-bash.so.0.0
> libtree-sitter-bash.dylib libtree-sitter-bash.dylib.0 libtree-sitter-bash.dylib.0.0) No such file or directory
>
> The ~/.emacs.d/tree-sitter directory doesn't even get created,
> indicating that there was in fact no attempt to build or download the library.
>
> Upon digging down with the debugger, the bug appears to be in
> https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/treesit.el#n3073
> which should read
>
> default-out-dir)))
>
> instead of
>
> out-dir)))
>
> Fixing that line as indicated and re-loading the function, fixes the
> problem described above.
Yuan, could you please look into this?
next prev parent reply other threads:[~2023-06-15 5:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-09 16:39 bug#63990: 30.0.50; `treesit-install-language-grammar' does not work noninteractively Dominique Quatravaux
2023-06-15 1:58 ` Dmitry Gutov
2023-06-15 5:37 ` Eli Zaretskii
2023-06-15 5:38 ` Eli Zaretskii [this message]
2023-06-15 8:26 ` Yuan Fu
2023-06-15 8:40 ` Eli Zaretskii
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83352tuvxy.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=63990@debbugs.gnu.org \
--cc=casouri@gmail.com \
--cc=dominique@quatravaux.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).