GNU bug report logs - #60465
29.0.60; File missing error when calling treesit-install-language-grammar

Previous Next

Package: emacs;

Reported by: Wilhelm Kirschbaum <wkirschbaum <at> gmail.com>

Date: Sun, 1 Jan 2023 11:36:02 UTC

Severity: normal

Found in version 29.0.60

Done: Yuan Fu <casouri <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 60465 in the body.
You can then email your comments to 60465 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#60465; Package emacs. (Sun, 01 Jan 2023 11:36:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Wilhelm Kirschbaum <wkirschbaum <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 01 Jan 2023 11:36:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Wilhelm Kirschbaum <wkirschbaum <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.0.60; File missing error when calling
 treesit-install-language-grammar 
Date: Sun, 01 Jan 2023 13:28:38 +0200
I am getting the following if the [home emacs config 
dir]/tree-sitter directory don't exist yet. 

Warning (treesit): Error encountered when installing language 
grammar:
(file-missing Opening output file No such file or directory [home 
emacs
config dir]/tree-sitter/libtree-sitter-elixir.so)

Adding the following fixes the issue for me:

modified   lisp/treesit.el
@@ -2772,6 +2772,7 @@ treesit--install-language-grammar-1
                      (rx bos (+ anychar) ".o" eos))
                   "-o" ,lib-name))
          ;; Copy out.
+          (make-directory out-dir t)
          (copy-file lib-name (file-name-as-directory out-dir) t 
          t)
          (message "Library installed to %s/%s" out-dir 
          lib-name))
      (when (file-exists-p workdir)


Please let me know if I am a bit aggressive with these reports, 
not sure
if I am more annoying or somewhat helpful. Is there perhaps a 
better
way to give feedback?

Wilhelm





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#60465; Package emacs. (Sun, 01 Jan 2023 13:51:01 GMT) Full text and rfc822 format available.

Message #8 received at 60465 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Wilhelm Kirschbaum <wkirschbaum <at> gmail.com>
Cc: 60465 <at> debbugs.gnu.org
Subject: Re: bug#60465: 29.0.60;
 File missing error when calling treesit-install-language-grammar
Date: Sun, 01 Jan 2023 15:50:03 +0200
> From: Wilhelm Kirschbaum <wkirschbaum <at> gmail.com>
> Date: Sun, 01 Jan 2023 13:28:38 +0200
> 
> I am getting the following if the [home emacs config 
> dir]/tree-sitter directory don't exist yet. 
> 
> Warning (treesit): Error encountered when installing language 
> grammar:
> (file-missing Opening output file No such file or directory [home 
> emacs
> config dir]/tree-sitter/libtree-sitter-elixir.so)
> 
> Adding the following fixes the issue for me:

Thanks.

> Please let me know if I am a bit aggressive with these reports, not
> sure if I am more annoying or somewhat helpful.

No, not at all.

> Is there perhaps a better way to give feedback?

This is the right way, thank you for doing this.




Reply sent to Yuan Fu <casouri <at> gmail.com>:
You have taken responsibility. (Mon, 02 Jan 2023 00:18:02 GMT) Full text and rfc822 format available.

Notification sent to Wilhelm Kirschbaum <wkirschbaum <at> gmail.com>:
bug acknowledged by developer. (Mon, 02 Jan 2023 00:18:02 GMT) Full text and rfc822 format available.

Message #13 received at 60465-done <at> debbugs.gnu.org (full text, mbox):

From: Yuan Fu <casouri <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Wilhelm <wkirschbaum <at> gmail.com>, 60465-done <at> debbugs.gnu.org
Subject: Re: bug#60465: 29.0.60; File missing error when calling 
 treesit-install-language-grammar
Date: Sun, 1 Jan 2023 16:17:38 -0800
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Wilhelm Kirschbaum <wkirschbaum <at> gmail.com>
>> Date: Sun, 01 Jan 2023 13:28:38 +0200
>> 
>> I am getting the following if the [home emacs config 
>> dir]/tree-sitter directory don't exist yet. 
>> 
>> Warning (treesit): Error encountered when installing language 
>> grammar:
>> (file-missing Opening output file No such file or directory [home 
>> emacs
>> config dir]/tree-sitter/libtree-sitter-elixir.so)
>> 
>> Adding the following fixes the issue for me:
>
> Thanks.
>
>> Please let me know if I am a bit aggressive with these reports, not
>> sure if I am more annoying or somewhat helpful.
>
> No, not at all.
>
>> Is there perhaps a better way to give feedback?
>
> This is the right way, thank you for doing this.

Yes, this prevents us from forgetting about a reported problem.

Fixed and closing, thanks.

Yuan




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 30 Jan 2023 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 137 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.