unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#63990: 30.0.50; `treesit-install-language-grammar' does not work noninteractively
@ 2023-06-09 16:39 Dominique Quatravaux
  2023-06-15  1:58 ` Dmitry Gutov
  2023-06-15  5:38 ` Eli Zaretskii
  0 siblings, 2 replies; 6+ messages in thread
From: Dominique Quatravaux @ 2023-06-09 16:39 UTC (permalink / raw)
  To: 63990

[-- Attachment #1: Type: text/plain, Size: 1066 bytes --]

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.
--
 Dominique Quatravaux
 dominique@quatravaux.org

[-- Attachment #2: Type: text/html, Size: 1389 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-06-15  8:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2023-06-15  8:26   ` Yuan Fu
2023-06-15  8:40     ` Eli Zaretskii

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).