all messages for Emacs-related lists mirrored at yhetil.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

* bug#63990: 30.0.50; `treesit-install-language-grammar' does not work noninteractively
  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
  1 sibling, 1 reply; 6+ messages in thread
From: Dmitry Gutov @ 2023-06-15  1:58 UTC (permalink / raw)
  To: Dominique Quatravaux, 63990

On 09/06/2023 19:39, Dominique Quatravaux wrote:
> 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 
> <https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/treesit.el#n3073>
> which should read
> 
>                    default-out-dir)))
> 
> instead of
> 
>                    out-dir)))

Makes sense. Perhaps we'll want that in Emacs 29 as well?





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

* bug#63990: 30.0.50; `treesit-install-language-grammar' does not work noninteractively
  2023-06-15  1:58 ` Dmitry Gutov
@ 2023-06-15  5:37   ` Eli Zaretskii
  0 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2023-06-15  5:37 UTC (permalink / raw)
  To: Dmitry Gutov; +Cc: dominique, 63990

> Date: Thu, 15 Jun 2023 04:58:40 +0300
> From: Dmitry Gutov <dmitry@gutov.dev>
> 
> On 09/06/2023 19:39, Dominique Quatravaux wrote:
> > 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 
> > <https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/treesit.el#n3073>
> > which should read
> > 
> >                    default-out-dir)))
> > 
> > instead of
> > 
> >                    out-dir)))
> 
> Makes sense. Perhaps we'll want that in Emacs 29 as well?

That problem doesn't exist on emacs-29.





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

* bug#63990: 30.0.50; `treesit-install-language-grammar' does not work noninteractively
  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:38 ` Eli Zaretskii
  2023-06-15  8:26   ` Yuan Fu
  1 sibling, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2023-06-15  5:38 UTC (permalink / raw)
  To: Dominique Quatravaux, Yuan Fu; +Cc: 63990

> 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?





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

* bug#63990: 30.0.50; `treesit-install-language-grammar' does not work noninteractively
  2023-06-15  5:38 ` Eli Zaretskii
@ 2023-06-15  8:26   ` Yuan Fu
  2023-06-15  8:40     ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Yuan Fu @ 2023-06-15  8:26 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Dominique Quatravaux, 63990



> On Jun 14, 2023, at 10:38 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> 
>> 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?

Thanks to both of you. I’ve fixed it as you suggested, Dominique.

Yuan




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

* bug#63990: 30.0.50; `treesit-install-language-grammar' does not work noninteractively
  2023-06-15  8:26   ` Yuan Fu
@ 2023-06-15  8:40     ` Eli Zaretskii
  0 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2023-06-15  8:40 UTC (permalink / raw)
  To: Yuan Fu; +Cc: dominique, 63990-done

> From: Yuan Fu <casouri@gmail.com>
> Date: Thu, 15 Jun 2023 01:26:48 -0700
> Cc: Dominique Quatravaux <dominique@quatravaux.org>,
>  63990@debbugs.gnu.org
> 
> 
> 
> > On Jun 14, 2023, at 10:38 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> > 
> >> 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?
> 
> Thanks to both of you. I’ve fixed it as you suggested, Dominique.

So I'm closing this bug.





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