unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#60465: 29.0.60; File missing error when calling treesit-install-language-grammar
@ 2023-01-01 11:28 Wilhelm Kirschbaum
  2023-01-01 13:50 ` Eli Zaretskii
  2023-01-02  0:17 ` Yuan Fu
  0 siblings, 2 replies; 3+ messages in thread
From: Wilhelm Kirschbaum @ 2023-01-01 11:28 UTC (permalink / raw)
  To: 60465


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






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

end of thread, other threads:[~2023-01-02  0:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-01 11:28 bug#60465: 29.0.60; File missing error when calling treesit-install-language-grammar Wilhelm Kirschbaum
2023-01-01 13:50 ` Eli Zaretskii
2023-01-02  0:17 ` Yuan Fu

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