unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Wilhelm Kirschbaum <wkirschbaum@gmail.com>
To: 60465@debbugs.gnu.org
Subject: bug#60465: 29.0.60; File missing error when calling treesit-install-language-grammar
Date: Sun, 01 Jan 2023 13:28:38 +0200	[thread overview]
Message-ID: <87lemmebdm.fsf@gmail.com> (raw)


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






             reply	other threads:[~2023-01-01 11:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-01 11:28 Wilhelm Kirschbaum [this message]
2023-01-01 13:50 ` bug#60465: 29.0.60; File missing error when calling treesit-install-language-grammar Eli Zaretskii
2023-01-02  0:17 ` Yuan Fu

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=87lemmebdm.fsf@gmail.com \
    --to=wkirschbaum@gmail.com \
    --cc=60465@debbugs.gnu.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).