From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Wilhelm Kirschbaum Newsgroups: gmane.emacs.bugs Subject: bug#60465: 29.0.60; File missing error when calling treesit-install-language-grammar Date: Sun, 01 Jan 2023 13:28:38 +0200 Message-ID: <87lemmebdm.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40918"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.9.3; emacs 29.0.60 To: 60465@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 01 12:36:41 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pBwdt-000AST-3y for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 Jan 2023 12:36:41 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pBwdI-0006kU-T9; Sun, 01 Jan 2023 06:36:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pBwdG-0006jS-PH for bug-gnu-emacs@gnu.org; Sun, 01 Jan 2023 06:36:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pBwdG-0003Wy-G9 for bug-gnu-emacs@gnu.org; Sun, 01 Jan 2023 06:36:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pBwdG-0008On-7M for bug-gnu-emacs@gnu.org; Sun, 01 Jan 2023 06:36:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Wilhelm Kirschbaum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Jan 2023 11:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60465 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.167257291232204 (code B ref -1); Sun, 01 Jan 2023 11:36:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Jan 2023 11:35:12 +0000 Original-Received: from localhost ([127.0.0.1]:40380 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pBwcS-0008NM-Iq for submit@debbugs.gnu.org; Sun, 01 Jan 2023 06:35:12 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:38064) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pBwcQ-0008NC-RC for submit@debbugs.gnu.org; Sun, 01 Jan 2023 06:35:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pBwcQ-0006dd-Hn for bug-gnu-emacs@gnu.org; Sun, 01 Jan 2023 06:35:10 -0500 Original-Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pBwcN-0003Lk-2Q for bug-gnu-emacs@gnu.org; Sun, 01 Jan 2023 06:35:08 -0500 Original-Received: by mail-wr1-x42c.google.com with SMTP id bn26so4455231wrb.0 for ; Sun, 01 Jan 2023 03:35:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:subject:to:from:user-agent:from:to:cc :subject:date:message-id:reply-to; bh=5jvvFQpH/22Gp6S9jHdBZdIA3JOKKFmM4xMoqHHIy7w=; b=YrLhkzFrrm+zlmdjIgMCtCaE0LVCVM2F4LKrssE6I8V9Bp8i3tL6zhVNG3v14/gbNI b+Lg8fbRp80/yDH4CeYlWYwbMsGPPD+zpQS2m/ci0n+ml+1xC9oaFV51qj88c8fYl9zh 53ijyLBU3Ky5AiIFMeI1zX8gx1heigRHcgXp+L3Ipp+03WAdZYcTwMZdGBoPnfB9+ksQ CLA/unlvHu1/81T9SNVT6GMoiTbl2vyASda8zw6BMqOVuLWzkfQRVfwxu++TMMjOxuz1 PRgBJPYSpAgz2Q4+4DmKvYUXS4nASh+vlSxlseygQps5aYyQ96hNTksh2+f+wGDLx7vZ LIWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:subject:to:from:user-agent :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5jvvFQpH/22Gp6S9jHdBZdIA3JOKKFmM4xMoqHHIy7w=; b=Eaf72TGT4/Uv2rlZ9WFQllix4Z1qyXwWMP6oatHTalGDGZCcwhbpgIt2GZ8E3KT9BA 7Qa9D7VNz/jKrhaSkAAR3TSaTwzSYl6DlbQYSVTm6QqxKYTdPK8kWPXdsd2XDtWYSfeu HnW/Q3JvFYXEbKdV0JQs8lyJDcQhjA5VW/mEcHuqJCd220DV2JaC6Xx6onqnZIHLzbK4 yixQMOy7Oi4JcLQrYcpTdF/KSMeKjs8fhL4w8JEOji9GynqxX6SMYrb3Uj2WUBmMaw8t aXJ1/joHob2EPhoye9XLyImXQ8ExHKt5q+LmP4azxybiGrQlac0mlC0tjr4Mp1qScWGG +4bw== X-Gm-Message-State: AFqh2kqTj7QkKCadJpDa/WBRTfJZC6z5zyf3zfrzmCZ3cVOvOIlARHLO GyT/NuCTP4BTFm9ifsbzEUDi098hFB4= X-Google-Smtp-Source: AMrXdXvABA09jJb082Er+0HuyZA4IG3zus0v71E0MnKI3FcG5dAox0qzGZ1eW7CyWG63uUyflXvLBg== X-Received: by 2002:a05:6000:614:b0:242:17a6:8bad with SMTP id bn20-20020a056000061400b0024217a68badmr30179095wrb.60.1672572904913; Sun, 01 Jan 2023 03:35:04 -0800 (PST) Original-Received: from melissa.local ([2c0f:ef18:1431:0:b09:9616:db04:c248]) by smtp.gmail.com with ESMTPSA id p14-20020adfe60e000000b0022584c82c80sm25615900wrm.19.2023.01.01.03.35.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Jan 2023 03:35:04 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=wkirschbaum@gmail.com; helo=mail-wr1-x42c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:252237 Archived-At: 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