emacs-bug-tracker
[Top][All Lists]
Advanced

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

bug#63990: closed (30.0.50; `treesit-install-language-grammar' does not


From: GNU bug Tracking System
Subject: bug#63990: closed (30.0.50; `treesit-install-language-grammar' does not work noninteractively)
Date: Thu, 15 Jun 2023 08:41:02 +0000

Your message dated Thu, 15 Jun 2023 11:40:41 +0300
with message-id <83jzw5t8xi.fsf@gnu.org>
and subject line Re: bug#63990: 30.0.50; `treesit-install-language-grammar' 
does not work noninteractively
has caused the debbugs.gnu.org bug report #63990,
regarding 30.0.50; `treesit-install-language-grammar' does not work 
noninteractively
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
63990: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63990
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: 30.0.50; `treesit-install-language-grammar' does not work noninteractively 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.
--
 Dominique Quatravaux
 dominique@quatravaux.org

--- End Message ---
--- Begin Message --- Subject: Re: bug#63990: 30.0.50; `treesit-install-language-grammar' does not work noninteractively Date: Thu, 15 Jun 2023 11:40:41 +0300
> 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.


--- End Message ---

reply via email to

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