Received: (at 51460) by debbugs.gnu.org; 26 Feb 2022 22:54:36 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 26 17:54:36 2022 Received: from localhost ([127.0.0.1]:56441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nO5xU-00047G-0Z for submit <at> debbugs.gnu.org; Sat, 26 Feb 2022 17:54:36 -0500 Received: from out0.migadu.com ([94.23.1.103]:44788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <kyle@HIDDEN>) id 1nO5xR-000477-O7 for 51460 <at> debbugs.gnu.org; Sat, 26 Feb 2022 17:54:34 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@HIDDEN and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1645916071; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DnLLOoJsbvVlNO0dxDIM2npdr/cxNjAcDXnpjUZuz0Y=; b=uhAflTM0JhtkzMn5jUuSkqyfg589u5qjYe5dGW87y9fB+O9APhzAjKFZcZsBcWocK3bcBB ie+bMqpvlcM+sSq9hhRwWNECU4o8inSR/Ww/yGxtch3oo6eUIFDuqVB8DnfAA0dQa09Kcm w/8OVK4sBewoZArShuQ/KwMd+waRMtww4CmiRLu3vnlEvloD73n08QQKMEg7Kxo8RoTsAT El8I/j8E75PaUwM2cUmDvdleyKe+U6CM1lJ+8k4952joZqL71QsgWTIZQGb5kWXiGX3A5t JzlLKu648YZH1U76Ws4w83/pTBLMCMRFXv0dxSl2rI5/1bZBv6ILLTs9Zefe5w== From: Kyle Meyer <kyle@HIDDEN> To: Christopher Howard <christopher@HIDDEN> Subject: Re: bug#51460: emacs-magit: path error during commit In-Reply-To: <068232bf9c2157d6b8636615b361398cac4470c1.camel@HIDDEN> References: <068232bf9c2157d6b8636615b361398cac4470c1.camel@HIDDEN> Date: Sat, 26 Feb 2022 17:54:29 -0500 Message-ID: <87czj92q8q.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: kyleam.com X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51460 Cc: 51460 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) Hello, I came across this bug report when searching for something else. In case it helps... Christopher Howard writes: > Hello, for a long time I've struggled with getting a path error when I > try to do a commit using emacs-magit. Here is an example log copied from > the magit-process buffer: > > ``` > 0 git =E2=80=A6 add -u -- Genesis/gen_1.org > 1 git =E2=80=A6 commit -- > hint: Waiting for your editor to close the file... > Waiting for Emacs... > *ERROR*: Searching for program: No such file or directory, git > error: There was a problem with the editor > '/gnu/store/dpky3z5844bclhswdk69z90vayy65b58-emacs-27.2/bin/emacsclient > --socket-name=3D/run/user/1000/emacs/server'. > Please supply the message using either -m or -F option. > ``` In Magit v3.3.0 and earlier, this error matches what you would see if "git" isn't in $PATH for the editor that pops up. This is true even when magit-git-executable points to an executable. In the development version of Magit, this should no longer happen as of 77255776 (git-commit: Use magit-git-executable function if available, 2022-02-21). The issue that prompted that is <https://github.com/magit/with-editor/issues/106>. (I know that below you say you don't use GitHub, but for others that may find that useful.) (Based on what you say below, it sounds like "git" should be in $PATH, so things aren't quite adding up still.) > I find this confusing because > - I can use magit to stage my commits > - In the Magit Group (M-x customize-group magit), the Magit Git > Executable is set to /home/christopher/.guix-profile/bin/git, and that > file does exist in my profile. > - /gnu/store/dpky3z5844bclhswdk69z90vayy65b58-emacs-27.2/bin/emacsclient= =20 > also does exist Yes, staging and most of things in Magit respect magit-git-executable. As I mention above and you suspect in the quoted text below, that value wasn't consulted by the code path relevant for the error above (in git-commit.el). > - Within emacs, I can run the shell command M-! git commit or M-! git > commit -m "..." and this works fine. Hmm, so your main Emacs session has "git" on its exec-path. Perhaps there's something going on with the with-editor launched editor. I'd suggest looking at with-editor-debug and seeing if /home/christopher/.guix-profile/bin is in the path it reports. > I suspect that emacs-magit might not be properly using the Magit Git > Executable path for this action, but haven't had a chance to look at the > source code yet. Yep, that's it, and, as I mentioned above, should be fixed by 77255776 (git-commit: Use magit-git-executable function if available, 2022-02-21).
bug-guix@HIDDEN
:bug#51460
; Package guix
.
Full text available.Received: (at submit) by debbugs.gnu.org; 28 Oct 2021 14:25:00 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 28 10:25:00 2021 Received: from localhost ([127.0.0.1]:52897 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mg6Kx-0002XB-FR for submit <at> debbugs.gnu.org; Thu, 28 Oct 2021 10:25:00 -0400 Received: from lists.gnu.org ([209.51.188.17]:49586) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <christopher@HIDDEN>) id 1mg6Kk-0002WY-Cp for submit <at> debbugs.gnu.org; Thu, 28 Oct 2021 10:24:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57388) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <christopher@HIDDEN>) id 1mg6Kj-0003HO-Bd for bug-guix@HIDDEN; Thu, 28 Oct 2021 10:24:46 -0400 Received: from mx.kolabnow.com ([212.103.80.153]:40318) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <christopher@HIDDEN>) id 1mg6Ke-0004qX-To for bug-guix@HIDDEN; Thu, 28 Oct 2021 10:24:44 -0400 Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id D0EBF40F2A for <bug-guix@HIDDEN>; Thu, 28 Oct 2021 16:24:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:mime-version:content-type:content-type :date:date:from:from:subject:subject:message-id:received :received:received; s=dkim20160331; t=1635431076; x=1637245477; bh=AjBFVjThBkLGyEaIQ/Ws/dF9PJMAAbIwNHIA/pIrtYA=; b=CDCgVJ+TjLTS e792yAaYccigCwc+xI5S44+j4c/Uvri7NVzqWsmjY960umYqCiZRPpsDA5eWwkcr 0GimopTdRTtLbv/KQXPsHBGyW0MjBgMXg1m6gWi0+6BHUF7dHDUPRb/0gvORdheX eAvxu/PQiI/mIl/aWjZlpaq3sn3voSCFoLWUI8nkPOLqTPI4TKpRVlOCl9M36QSA D5UM/AzmHfTxyqkZ+rRaYAWDyz+YrdGBDkaLhIQK92xs+JauziAoON4nVEBDD7UZ zSTif5gdYp5YEdt3fA7VtjRoNInOk0kN5HNGG1q9uubZudaECTpbrrMQvTeRLzuW 4wIZeElX19hVah1ywM3CWyjNK5nTCFkuCdaB7TnptLjWNzNPfdbWaCYkgDJBSrW8 rJeTffk+9Evy7/BgyuaoYL5JlJFqvy5SS2c4UFnQCGmSiTAePMz4lnYe/7RSYca6 TJD6E+IUHOMHYz/o5KcBPBvjR7Cdf2H9Y553hwC3VoMeVxRfP/iOmRb64upvMdsI 0fXqvZQvGatGJLpvmdI5DXESe3mrdgDBeG7q44i5njBszLXmkiYeCfnxMHGcUt5+ R416ukJXT8XYpQz+KnoRL+sMsHtNxPKKydWL84C8CA/ILjSpzxXiE307fibHkKz7 5GUTVFl0K2vxm2L712DFmL9mEE1WXzA= X-Virus-Scanned: amavisd-new at mykolab.com X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-10 required=5 tests=[BAYES_00=-1.9] autolearn=ham autolearn_force=no Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out003.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zAB7nnDVyv7w for <bug-guix@HIDDEN>; Thu, 28 Oct 2021 16:24:36 +0200 (CEST) Received: from int-mx001.mykolab.com (unknown [10.9.13.1]) by mx.kolabnow.com (Postfix) with ESMTPS id 1CA4A40EA2 for <bug-guix@HIDDEN>; Thu, 28 Oct 2021 16:24:35 +0200 (CEST) Received: from ext-subm003.mykolab.com (unknown [10.9.6.3]) by int-mx001.mykolab.com (Postfix) with ESMTPS id C706FB6D for <bug-guix@HIDDEN>; Thu, 28 Oct 2021 16:24:35 +0200 (CEST) Message-ID: <068232bf9c2157d6b8636615b361398cac4470c1.camel@HIDDEN> Subject: emacs-magit: path error during commit From: Christopher Howard <christopher@HIDDEN> To: Guix Bug Reports <bug-guix@HIDDEN> Date: Thu, 28 Oct 2021 06:24:30 -0800 Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: none client-ip=212.103.80.153; envelope-from=christopher@HIDDEN; helo=mx.kolabnow.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Hello, for a long time I've struggled with getting a path error when I try to do a commit using emacs-magit. Here is an example log copied from the magit-process buffer: ``` 0 git … add -u -- Genesis/gen_1.org 1 git … commit -- hint: Waiting for your editor to close the file... Waiting for Emacs... *ERROR*: Searching for program: No such file or directory, git error: There was a problem with the editor '/gnu/store/dpky3z5844bclhswdk69z90vayy65b58-emacs-27.2/bin/emacsclient --socket-name=/run/user/1000/emacs/server'. Please supply the message using either -m or -F option. ``` I find this confusing because - I can use magit to stage my commits - In the Magit Group (M-x customize-group magit), the Magit Git Executable is set to /home/christopher/.guix-profile/bin/git, and that file does exist in my profile. - /gnu/store/dpky3z5844bclhswdk69z90vayy65b58-emacs-27.2/bin/emacsclient also does exist - Within emacs, I can run the shell command M-! git commit or M-! git commit -m "..." and this works fine. I suspect that emacs-magit might not be properly using the Magit Git Executable path for this action, but haven't had a chance to look at the source code yet. Probably this should be submitted as an issue or support request to emacs-magit, but I have not done so since (on principle) I do not have a github account, or use google groups. Here is my system information; ``` christopher@nightshade ~$ neofetch --stdout christopher@nightshade ---------------------- OS: Guix System 9aaf402a379b9ac9e4c3eee5b16f7496d7606e91 x86_64 Host: GA-880GM-UD2H Kernel: 5.14.9-gnu Uptime: 1 hour, 20 mins Packages: 61 (guix-system), 155 (guix-user) Shell: bash 5.0.16 Resolution: 1920x1200 DE: GNOME 3.34.5 Theme: Adwaita [GTK2/3] Icons: Adwaita [GTK2/3] Terminal: .gnome-terminal CPU: AMD Athlon II X3 455 (3) @ 3.300GHz GPU: NVIDIA GeForce 8400 GS Rev. 3 Memory: 1338MiB / 7893MiB ``` -- Christopher Howard Gemini capsule: gemini://gem.librehacker.com Web version: https://portal.mozz.us/gemini/gem.librehacker.com
Christopher Howard <christopher@HIDDEN>
:bug-guix@HIDDEN
.
Full text available.bug-guix@HIDDEN
:bug#51460
; Package guix
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.