GNU bug report logs - #73462
emacs-guix: shell commands broken

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Christopher Howard <christopher@HIDDEN>; dated Tue, 24 Sep 2024 21:59:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 73462 <at> debbugs.gnu.org:


Received: (at 73462) by debbugs.gnu.org; 6 Nov 2024 15:50:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 06 10:50:18 2024
Received: from localhost ([127.0.0.1]:45192 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1t8iIU-0006jY-H6
	for submit <at> debbugs.gnu.org; Wed, 06 Nov 2024 10:50:18 -0500
Received: from mx.kolabnow.com ([212.103.80.154]:36436)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <christopher@HIDDEN>) id 1t8iIR-0006ep-PK
 for 73462 <at> debbugs.gnu.org; Wed, 06 Nov 2024 10:50:17 -0500
Received: from localhost (unknown [127.0.0.1])
 by mx.kolabnow.com (Postfix) with ESMTP id 236DC30065DD;
 Wed,  6 Nov 2024 16:50:10 +0100 (CET)
Authentication-Results: ext-mx-out013.mykolab.com (amavis);
 dkim=pass (2048-bit key) reason="pass (just generated, assumed good)"
 header.d=kolabnow.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h=
 content-type:content-type:mime-version:message-id:date:date
 :in-reply-to:subject:subject:from:from:received:received
 :received; s=dkim20240523; t=1730908206; x=1732722607; bh=EhzTNm
 4PYsxDToKA3wVRTPKN54+DLgoG0RWxIwlCmzc=; b=X7r31Q4lK223p3dQ/+b+dU
 ebNcS0/VHcXTzrGPTjYSkCp+cqga6e0R4py1mEYbE9xl7yF2TirjkYRTzbSXFxsI
 RqjLpV/3dZqRgtA2qB4BdGY5PsZG5zWV0IpIXJQ8xnOn/hl3xsi18AwYLKaPz2Xs
 v3s3Aqb/txrwEvpy3qiAeBe2dnVifLyllFpNxWKGV24DThbfHjzligzvWGSiz0Wc
 G04ioGS5Z2NAO/IYx3jtxv7tAP9HbecXjAk6ydiDcgZGu766nyTfemjxLxpMX6gp
 UVJXqiAQpi55aYtQ835p1ruwYl9fZrD0IMzve8xu3RRN9VoHwBigJIGwyebsIqGw
 ==
X-Virus-Scanned: amavis at mykolab.com
X-Spam-Flag: NO
X-Spam-Score: -0.999
X-Spam-Level: 
X-Spam-Status: No, score=-0.999 tagged_above=-10 required=5
 tests=[ALL_TRUSTED=-1, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mx.kolabnow.com ([127.0.0.1])
 by localhost (ext-mx-out013.mykolab.com [127.0.0.1]) (amavis, port 10024)
 with ESMTP id ls3n6jLag8bG; Wed,  6 Nov 2024 16:50:06 +0100 (CET)
Received: from int-mx011.mykolab.com (unknown [10.9.13.11])
 by mx.kolabnow.com (Postfix) with ESMTPS id 901AC30065DC;
 Wed,  6 Nov 2024 16:50:04 +0100 (CET)
Received: from ext-subm010.mykolab.com (unknown [10.9.6.10])
 by int-mx011.mykolab.com (Postfix) with ESMTPS id 1F70D30C577E;
 Wed,  6 Nov 2024 16:50:04 +0100 (CET)
From: Christopher Howard <christopher@HIDDEN>
To: "Suhail Singh" <suhailsingh247@HIDDEN>
Subject: [bug#73462][PATCH] emacs-guix: shell commands broken
In-Reply-To: Christopher Howard's message of "Tue, 05 Nov 2024 09:49:06 -0900
 (20 hours, 32 minutes, 29 seconds ago)"
Date: Wed, 06 Nov 2024 06:50:00 -0900
Message-ID: <87h68ktl93.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 73462
Cc: Katherine Cox-Buday <cox.katherine.e+guix@HIDDEN>,
 Liliana Marie Prikler <liliana.prikler@HIDDEN>,
 Andrew Tropin <andrew@HIDDEN>, 73462 <at> debbugs.gnu.org,
 Guix Devel <guix-devel@HIDDEN>, guix-patches@HIDDEN
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.0 (-)

--=-=-=
Content-Type: text/x-patch; charset=utf-8
Content-Disposition: attachment;
 filename=0001-Provides-work-around-for-https-issues.guix.gnu.org-i.patch
Content-Transfer-Encoding: quoted-printable
Content-Description: 0001-Provides-work-around-for-https-issues.guix.gnu.org-i.patch

From 282aea01d0212e3a9a2acac52d76a6a7325cf7e7 Mon Sep 17 00:00:00 2001
From: Christopher Howard <christopher@HIDDEN>
Date: Wed, 6 Nov 2024 05:53:45 -0900
Subject: [PATCH] Provides work-around for
 https://issues.guix.gnu.org/issue/73462

---
 elisp/guix-repl.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/elisp/guix-repl.el b/elisp/guix-repl.el
index bf1dc82..3d75ac6 100644
--- a/elisp/guix-repl.el
+++ b/elisp/guix-repl.el
@@ -1,6 +1,7 @@
 ;;; guix-repl.el --- Making and using Guix REPL
=20
 ;; Copyright =C2=A9 2014=E2=80=932019 Alex Kost <alezost@HIDDEN>
+;; Copyright =C2=A9 2024 Christopher Howard <christopher@HIDDEN>
=20
 ;; This file is part of Emacs-Guix.
=20
@@ -290,6 +291,10 @@ display messages."
                    (guix-get-repl-buffer-name internal))))
         (guix-start-repl repl (and internal guix-repl-current-socket))
         (set repl-var repl)
+        ;; work-around for https://issues.guix.gnu.org/issue/73462
+        (if internal
+            (guix-geiser-eval-in-repl-synchronously
+             ",re (guix gexp)" repl t t))
         ;; Wait until switching to (emacs-guix) module finishes.
         (guix-geiser-eval-in-repl-synchronously
          ",m (emacs-guix)" repl t t)
--=20
2.46.0


--=-=-=
Content-Type: text/plain

I've attached a patch for the emacs-guix source which works around this issue. It modifies the REPL starting process for the Internal REPL, so that the (guix gexp) module is explicitly (re)loaded, which allows to reader syntax to work when the other modules load. I do not know why this should be necessary.

I wondered if there is some subtle difference here when dealing with a REPL that is accessed over a socket, as is the case with the Internal REPL. But I can't reproduce the problem on the command-line, outside of emacs-guix, using sockets.

With this patch, the "guix shell command" popup opens, though I see there is something wrong with the popup itself. It does not ask for a command to run, and the popup options only attempt to run an empty command. But I could investigate that in a separate bug.

Troubleshooting/testing was done with GNU Emacs 30.0.92 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0) of 2024-10-29.

-- 
Christopher Howard

--=-=-=--




Information forwarded to bug-guix@HIDDEN:
bug#73462; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 6 Nov 2024 15:50:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 06 10:50:18 2024
Received: from localhost ([127.0.0.1]:45190 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1t8iIU-0006jD-0m
	for submit <at> debbugs.gnu.org; Wed, 06 Nov 2024 10:50:18 -0500
Received: from lists.gnu.org ([209.51.188.17]:52568)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <christopher@HIDDEN>) id 1t8iIS-0006gk-8T
 for submit <at> debbugs.gnu.org; Wed, 06 Nov 2024 10:50:16 -0500
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 <christopher@HIDDEN>)
 id 1t8iIQ-0000zj-79; Wed, 06 Nov 2024 10:50:14 -0500
Received: from mx.kolabnow.com ([212.103.80.155])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <christopher@HIDDEN>)
 id 1t8iIO-0007sj-EG; Wed, 06 Nov 2024 10:50:13 -0500
Received: from localhost (unknown [127.0.0.1])
 by mx.kolabnow.com (Postfix) with ESMTP id 236DC30065DD;
 Wed,  6 Nov 2024 16:50:10 +0100 (CET)
Authentication-Results: ext-mx-out013.mykolab.com (amavis);
 dkim=pass (2048-bit key) reason="pass (just generated, assumed good)"
 header.d=kolabnow.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h=
 content-type:content-type:mime-version:message-id:date:date
 :in-reply-to:subject:subject:from:from:received:received
 :received; s=dkim20240523; t=1730908206; x=1732722607; bh=EhzTNm
 4PYsxDToKA3wVRTPKN54+DLgoG0RWxIwlCmzc=; b=X7r31Q4lK223p3dQ/+b+dU
 ebNcS0/VHcXTzrGPTjYSkCp+cqga6e0R4py1mEYbE9xl7yF2TirjkYRTzbSXFxsI
 RqjLpV/3dZqRgtA2qB4BdGY5PsZG5zWV0IpIXJQ8xnOn/hl3xsi18AwYLKaPz2Xs
 v3s3Aqb/txrwEvpy3qiAeBe2dnVifLyllFpNxWKGV24DThbfHjzligzvWGSiz0Wc
 G04ioGS5Z2NAO/IYx3jtxv7tAP9HbecXjAk6ydiDcgZGu766nyTfemjxLxpMX6gp
 UVJXqiAQpi55aYtQ835p1ruwYl9fZrD0IMzve8xu3RRN9VoHwBigJIGwyebsIqGw
 ==
X-Virus-Scanned: amavis at mykolab.com
X-Spam-Flag: NO
X-Spam-Score: -0.999
X-Spam-Level: 
X-Spam-Status: No, score=-0.999 tagged_above=-10 required=5
 tests=[ALL_TRUSTED=-1, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mx.kolabnow.com ([127.0.0.1])
 by localhost (ext-mx-out013.mykolab.com [127.0.0.1]) (amavis, port 10024)
 with ESMTP id ls3n6jLag8bG; Wed,  6 Nov 2024 16:50:06 +0100 (CET)
Received: from int-mx011.mykolab.com (unknown [10.9.13.11])
 by mx.kolabnow.com (Postfix) with ESMTPS id 901AC30065DC;
 Wed,  6 Nov 2024 16:50:04 +0100 (CET)
Received: from ext-subm010.mykolab.com (unknown [10.9.6.10])
 by int-mx011.mykolab.com (Postfix) with ESMTPS id 1F70D30C577E;
 Wed,  6 Nov 2024 16:50:04 +0100 (CET)
From: Christopher Howard <christopher@HIDDEN>
To: "Suhail Singh" <suhailsingh247@HIDDEN>
Subject: [bug#73462][PATCH] emacs-guix: shell commands broken
In-Reply-To: Christopher Howard's message of "Tue, 05 Nov 2024 09:49:06 -0900
 (20 hours, 32 minutes, 29 seconds ago)"
Date: Wed, 06 Nov 2024 06:50:00 -0900
Message-ID: <87h68ktl93.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Received-SPF: none client-ip=212.103.80.155;
 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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001,
 RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001,
 SPF_NONE=0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
Cc: Katherine Cox-Buday <cox.katherine.e+guix@HIDDEN>,
 Liliana Marie Prikler <liliana.prikler@HIDDEN>,
 Andrew Tropin <andrew@HIDDEN>, 73462 <at> debbugs.gnu.org,
 Guix Devel <guix-devel@HIDDEN>, guix-patches@HIDDEN
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 (---)

--=-=-=
Content-Type: text/x-patch; charset=utf-8
Content-Disposition: attachment;
 filename=0001-Provides-work-around-for-https-issues.guix.gnu.org-i.patch
Content-Transfer-Encoding: quoted-printable
Content-Description: 0001-Provides-work-around-for-https-issues.guix.gnu.org-i.patch

From 282aea01d0212e3a9a2acac52d76a6a7325cf7e7 Mon Sep 17 00:00:00 2001
From: Christopher Howard <christopher@HIDDEN>
Date: Wed, 6 Nov 2024 05:53:45 -0900
Subject: [PATCH] Provides work-around for
 https://issues.guix.gnu.org/issue/73462

---
 elisp/guix-repl.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/elisp/guix-repl.el b/elisp/guix-repl.el
index bf1dc82..3d75ac6 100644
--- a/elisp/guix-repl.el
+++ b/elisp/guix-repl.el
@@ -1,6 +1,7 @@
 ;;; guix-repl.el --- Making and using Guix REPL
=20
 ;; Copyright =C2=A9 2014=E2=80=932019 Alex Kost <alezost@HIDDEN>
+;; Copyright =C2=A9 2024 Christopher Howard <christopher@HIDDEN>
=20
 ;; This file is part of Emacs-Guix.
=20
@@ -290,6 +291,10 @@ display messages."
                    (guix-get-repl-buffer-name internal))))
         (guix-start-repl repl (and internal guix-repl-current-socket))
         (set repl-var repl)
+        ;; work-around for https://issues.guix.gnu.org/issue/73462
+        (if internal
+            (guix-geiser-eval-in-repl-synchronously
+             ",re (guix gexp)" repl t t))
         ;; Wait until switching to (emacs-guix) module finishes.
         (guix-geiser-eval-in-repl-synchronously
          ",m (emacs-guix)" repl t t)
--=20
2.46.0


--=-=-=
Content-Type: text/plain

I've attached a patch for the emacs-guix source which works around this issue. It modifies the REPL starting process for the Internal REPL, so that the (guix gexp) module is explicitly (re)loaded, which allows to reader syntax to work when the other modules load. I do not know why this should be necessary.

I wondered if there is some subtle difference here when dealing with a REPL that is accessed over a socket, as is the case with the Internal REPL. But I can't reproduce the problem on the command-line, outside of emacs-guix, using sockets.

With this patch, the "guix shell command" popup opens, though I see there is something wrong with the popup itself. It does not ask for a command to run, and the popup options only attempt to run an empty command. But I could investigate that in a separate bug.

Troubleshooting/testing was done with GNU Emacs 30.0.92 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0) of 2024-10-29.

-- 
Christopher Howard

--=-=-=--




Information forwarded to bug-guix@HIDDEN:
bug#73462; Package guix. Full text available.

Message received at 73462 <at> debbugs.gnu.org:


Received: (at 73462) by debbugs.gnu.org; 5 Nov 2024 18:49:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 05 13:49:21 2024
Received: from localhost ([127.0.0.1]:37869 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1t8OcC-0000eV-TS
	for submit <at> debbugs.gnu.org; Tue, 05 Nov 2024 13:49:21 -0500
Received: from mx.kolabnow.com ([212.103.80.154]:45902)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <christopher@HIDDEN>) id 1t8Oc9-0000e8-B8
 for 73462 <at> debbugs.gnu.org; Tue, 05 Nov 2024 13:49:19 -0500
Received: from localhost (unknown [127.0.0.1])
 by mx.kolabnow.com (Postfix) with ESMTP id AF0F230051C1;
 Tue,  5 Nov 2024 19:49:11 +0100 (CET)
Authentication-Results: ext-mx-out013.mykolab.com (amavis);
 dkim=pass (2048-bit key) reason="pass (just generated, assumed good)"
 header.d=kolabnow.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h=
 content-type:content-type:mime-version:message-id:date:date
 :in-reply-to:subject:subject:from:from:received:received
 :received; s=dkim20240523; t=1730832550; x=1732646951; bh=xZYCYt
 hp0D2EmCsOQPi9Jd6ZML8cbx4eWpOzJFMd9rM=; b=k1Gl5eE97rcoQYgYBCoXCO
 O0H/2NKkHHfBehOBZqHbtxVt9HoUkpoSlZU2L+2eW1/DKkUzWMvhxfqtiO4uPp1x
 PbKqC+zosHUCXtUziest0C48ByGaJRxMLyheEMfUBqw9BwHEe/XTZ41pAeiWDlh4
 aT4tpeALEViiWpxxKH/7fGAr5Y4rbYvseMOhZlpH/JxEWC7Lg6G2//wJ0EE601Mp
 tWO0RqzaH3LYRCwChKtUXaFo/m1kVxl0WuB9dlckF2KRfjA/oaT3p0PY42TDcnXW
 ukeBWfpit7mnTnFQve16PrXLSUBgXdF4rc5Bc3+c6Hw3PM8TNhMmYzfOHi7kpCww
 ==
X-Virus-Scanned: amavis at mykolab.com
X-Spam-Flag: NO
X-Spam-Score: -1
X-Spam-Level: 
X-Spam-Status: No, score=-1 tagged_above=-10 required=5 tests=[ALL_TRUSTED=-1]
 autolearn=ham autolearn_force=no
Received: from mx.kolabnow.com ([127.0.0.1])
 by localhost (ext-mx-out013.mykolab.com [127.0.0.1]) (amavis, port 10024)
 with ESMTP id tr3jhO4l6dzK; Tue,  5 Nov 2024 19:49:10 +0100 (CET)
Received: from int-mx011.mykolab.com (unknown [10.9.13.11])
 by mx.kolabnow.com (Postfix) with ESMTPS id BA47A30051C0;
 Tue,  5 Nov 2024 19:49:09 +0100 (CET)
Received: from ext-subm010.mykolab.com (unknown [10.9.6.10])
 by int-mx011.mykolab.com (Postfix) with ESMTPS id 52A2A30C575F;
 Tue,  5 Nov 2024 19:49:09 +0100 (CET)
From: Christopher Howard <christopher@HIDDEN>
To: "Suhail Singh" <suhailsingh247@HIDDEN>
Subject: Re: bug#73462: emacs-guix: shell commands broken
In-Reply-To: Christopher Howard's message of "Mon, 04 Nov 2024 10:35:52 -0900
 (22 hours, 44 minutes, 35 seconds ago)"
Date: Tue, 05 Nov 2024 09:49:06 -0900
Message-ID: <87ikt1plct.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 73462
Cc: Guix Devel <guix-devel@HIDDEN>, 73462 <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.0 (-)

Feels like I'm shouting into the void here, but continuing to upload my troubleshooting notes anyway...

So, there seems to be some difference here between the *Guix REPL* buffer and the *Guix Internal REPL* buffer. From a fresh *Guix REPL*, I can run the commands with no problem:

```
scheme@(emacs-guix)> (help-string)
$12 = "Usage: ...snipped for brevity..."
$13 = ""
scheme@(emacs-guix)> ,m (guix scripts deploy)
scheme@(guix scripts deploy)> #~()
$14 = #<gexp () 7ff5757f60f0>
```

However, if I try the same thing from *Guix Internal REPL*, I get errors:

```
scheme@(emacs-guix) [1]> ,m (guix scripts deploy)
scheme@(guix scripts deploy) [1]> #~()
While reading expression:
socket:49:3: Unknown # object: "#~"
scheme@(guix scripts deploy) [1]> ,re
While executing meta-command:
/home/christopher/.config/guix/current/share/guile/site/3.0/guix/scripts/deploy.scm:176:7: Unknown # object: "#~"
```

I can get it to work if I reload (guix gexp) manually:

```
scheme@(guix scripts deploy) [1]> ,re (guix gexp)
scheme@(guix scripts deploy) [1]> #~()
$15 = #<gexp () socket:74:0 7ff56da2cba0>
scheme@(guix scripts deploy) [1]> ,m (emacs-guix)
scheme@(emacs-guix) [1]> (help-string)
$16 = "Usage: ...snipped for brevity..."
$17 = ""
```

And then after that the guix pop up also works.

So, I still don't know why the reader syntax is not loading correctly in the internal buffer, but at least it appears to be limited to just that buffer.

-- 
Christopher Howard




Information forwarded to bug-guix@HIDDEN:
bug#73462; Package guix. Full text available.

Message received at 73462 <at> debbugs.gnu.org:


Received: (at 73462) by debbugs.gnu.org; 4 Nov 2024 19:59:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 04 14:59:01 2024
Received: from localhost ([127.0.0.1]:42000 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1t83E4-0007Ma-VX
	for submit <at> debbugs.gnu.org; Mon, 04 Nov 2024 14:59:01 -0500
Received: from mx.kolabnow.com ([212.103.80.154]:58466)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <christopher@HIDDEN>) id 1t83E3-0007MS-06
 for 73462 <at> debbugs.gnu.org; Mon, 04 Nov 2024 14:59:00 -0500
Received: from localhost (unknown [127.0.0.1])
 by mx.kolabnow.com (Postfix) with ESMTP id 70272345CDF0;
 Mon,  4 Nov 2024 20:58:53 +0100 (CET)
Authentication-Results: ext-mx-out013.mykolab.com (amavis);
 dkim=pass (2048-bit key) reason="pass (just generated, assumed good)"
 header.d=kolabnow.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h=
 content-type:content-type:mime-version:message-id:date:date
 :in-reply-to:subject:subject:from:from:received:received
 :received; s=dkim20240523; t=1730750332; x=1732564733; bh=WMmNGR
 cWx5Wh2f4AQNTjs4leei1Ev5NzVZy1hfVVjDw=; b=MFbkTtguP+Cn794CdJyJsp
 Me0Ju+Mrdoy0CxBsM1SDePLTOoYJdnr1+XzQ7mbFpwS5hmObdrft5etiQCoeRjhf
 t/FDO4zO2rJ5Rpkb2e4EqdYfwi51ucTUrYwTrb2oaVdYj0+glBUMgCsGbZlntu+M
 /JV9BzPmEIFaOjKU9pmrZRsfZ+HdNv5d5EOmjw5jYSOEn2okyXVkjH/Qv0n5j+Dp
 /PpVANO6BZYVvrz37VKURF2umXgd7tRgYvQkDGPGQB9/3nhtD1GF+QDomQEeONSI
 F0YiPvtcSLfUUMCtIKwPt6zw9H14aAuF69uDousYL8KQZqMoBJUEfK+Gzjq6PNPg
 ==
X-Virus-Scanned: amavis at mykolab.com
X-Spam-Flag: NO
X-Spam-Score: -1
X-Spam-Level: 
X-Spam-Status: No, score=-1 tagged_above=-10 required=5 tests=[ALL_TRUSTED=-1]
 autolearn=ham autolearn_force=no
Received: from mx.kolabnow.com ([127.0.0.1])
 by localhost (ext-mx-out013.mykolab.com [127.0.0.1]) (amavis, port 10024)
 with ESMTP id RboS65WU3avz; Mon,  4 Nov 2024 20:58:52 +0100 (CET)
Received: from int-mx011.mykolab.com (unknown [10.9.13.11])
 by mx.kolabnow.com (Postfix) with ESMTPS id 66B16345CDF5;
 Mon,  4 Nov 2024 20:58:32 +0100 (CET)
Received: from ext-subm010.mykolab.com (unknown [10.9.6.10])
 by int-mx011.mykolab.com (Postfix) with ESMTPS id E233A30C6AE9;
 Mon,  4 Nov 2024 20:35:56 +0100 (CET)
From: Christopher Howard <christopher@HIDDEN>
To: "Suhail Singh" <suhailsingh247@HIDDEN>
Subject: Re: bug#73462: emacs-guix: shell commands broken
In-Reply-To: Christopher Howard's message of "Mon, 04 Nov 2024 07:50:55 -0900
 (2 hours, 40 minutes, 25 seconds ago)"
Date: Mon, 04 Nov 2024 10:35:52 -0900
Message-ID: <87r07q23mv.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 73462
Cc: Guix Devel <guix-devel@HIDDEN>, 73462 <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.0 (-)

With some exploration, I figured out I can make the popup work again by doing the following from inside *Guix Internal REPL*:

```
scheme@(emacs-guix)> ,m (guix gexp)
scheme@(guix gexp)>   (read-hash-extend #\~ read-gexp)
  (read-hash-extend #\$ read-ungexp)
  (read-hash-extend #\+ (cut read-ungexp <> <> #t))
$12 = ((#\. . #<procedure 7f4a564aa3d0 at ice-9/boot-9.scm:2251:18 (c port)>))
$13 = ((#\~ . #<procedure read-gexp (chr port)>) (#\. . #<procedure 7f4a564aa3d0 at ice-9/boot-9.scm:2251:18 (c port)>))
$14 = ((#\$ . #<procedure read-ungexp (chr port #:optional native?)>) (#\~ . #<procedure read-gexp (chr port)>) (#\. . #<procedure 7f4a564aa3d0 at ice-9/boot-9.scm:2251:18 (c port)>))
scheme@(guix gexp)> ,m emacs-guix
```

I.e., if I drop into the (guix gexp) and run read-hash-extend myself. After that, I can successfully run M-x guix c. (The popup itself seems to have something else wrong with it, but we'll leave that for another bug report...)

It seems worth noting that I do have access to other variables and such inside the eval-when block, though I'm not sure what that tells us:

```
scheme@(emacs-guix)> ,m (guix gexp)
scheme@(guix gexp)> read-syntax-redefined?
$15 = #t
```

-- 
Christopher Howard




Information forwarded to bug-guix@HIDDEN:
bug#73462; Package guix. Full text available.

Message received at 73462 <at> debbugs.gnu.org:


Received: (at 73462) by debbugs.gnu.org; 4 Nov 2024 16:51:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 04 11:51:18 2024
Received: from localhost ([127.0.0.1]:41059 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1t80IQ-0001LB-Fd
	for submit <at> debbugs.gnu.org; Mon, 04 Nov 2024 11:51:18 -0500
Received: from mx.kolabnow.com ([212.103.80.154]:36876)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <christopher@HIDDEN>) id 1t80IN-0001L3-HZ
 for 73462 <at> debbugs.gnu.org; Mon, 04 Nov 2024 11:51:16 -0500
Received: from localhost (unknown [127.0.0.1])
 by mx.kolabnow.com (Postfix) with ESMTP id F27DA20DF2B3;
 Mon,  4 Nov 2024 17:51:09 +0100 (CET)
Authentication-Results: ext-mx-out011.mykolab.com (amavis);
 dkim=pass (2048-bit key) reason="pass (just generated, assumed good)"
 header.d=kolabnow.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h=
 content-type:content-type:mime-version:message-id:date:date
 :in-reply-to:subject:subject:from:from:received:received
 :received; s=dkim20240523; t=1730739062; x=1732553463; bh=lSUgzP
 S66kgPBZTKjG2PvcjG4z0SoutFiQRa7gN9pd4=; b=XTdyGCeOCpsu90Z4tjMSVB
 KgMcMSa3LHIdphIKP77L6SktLezaISLW+D5hH1ipB0afsi6qOm/cp9XzOggFTJR9
 TxoqeI0kmSaSMj3is4P/Nw10GV+z+KcnAOmpw6TUQq/PA3UXSYZ7aL/3zIsHHsrF
 q8ye9xMPM2Tb50grl4QZjQsqj+KLB86qEXnnnYm4z8KpgqapeYtZapmQGEY7Bo+t
 +YoZ3XAHKHlJ7I/DEPanRPLe2njrEoPuL9Lv9/ZWwBaorDKwtOglCFsTdRrK9tlV
 3PR3dr+a+WCKabb4v7kIURt4D3fgI4QNGgyzxxvkkWN5DmDaZDgupVoXEpIRB5MA
 ==
X-Virus-Scanned: amavis at mykolab.com
X-Spam-Flag: NO
X-Spam-Score: -1
X-Spam-Level: 
X-Spam-Status: No, score=-1 tagged_above=-10 required=5 tests=[ALL_TRUSTED=-1]
 autolearn=ham autolearn_force=no
Received: from mx.kolabnow.com ([127.0.0.1])
 by localhost (ext-mx-out011.mykolab.com [127.0.0.1]) (amavis, port 10024)
 with ESMTP id 5vJNbkBz3PAG; Mon,  4 Nov 2024 17:51:02 +0100 (CET)
Received: from int-mx009.mykolab.com (unknown [10.9.13.9])
 by mx.kolabnow.com (Postfix) with ESMTPS id C398E20DF2A2;
 Mon,  4 Nov 2024 17:51:00 +0100 (CET)
Received: from ext-subm010.mykolab.com (unknown [10.9.6.10])
 by int-mx009.mykolab.com (Postfix) with ESMTPS id CA44E20C034A;
 Mon,  4 Nov 2024 17:50:58 +0100 (CET)
From: Christopher Howard <christopher@HIDDEN>
To: "Suhail Singh" <suhailsingh247@HIDDEN>
Subject: Re: bug#73462: emacs-guix: shell commands broken
In-Reply-To: Suhail Singh's message of "Tue, 01 Oct 2024 15:55:17 -0400 (4
 weeks, 5 days, 20 hours ago)"
Date: Mon, 04 Nov 2024 07:50:55 -0900
Message-ID: <87wmhj3pu8.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 73462
Cc: Guix Devel <guix-devel@HIDDEN>, 73462 <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.0 (-)

I've been trying to look into this more, though my knowledge of guile and the guix scheme code is, frankly, quite limited. However, it seems like what is happening is that the guile/guix REPL chokes as soon as it come across its first gexp in guix/scripts/deploy.scm, line 176

>    #~(begin

Now, deploy.scm does load the gexp module:

>  #:use-module (guix gexp)

However, the code in guix/gexp.scm that extends the reader is defined in an "(eval-when (expand load eval)" block, beginning at line 2267, with the read-hash-extend calls starting at line 2341. So, is maybe there some subtle bug at work here with the reader syntax not actually being loaded up when the *Guix Internal REPL* tries to run the guix shell code? Could someone highly knoweable in that subject take a look at this block of gexp.scm code again? I see some special code in the block for 3.0.8, so maybe something broke on transition to 3.0.9...?

-- 
Christopher Howard




Information forwarded to bug-guix@HIDDEN:
bug#73462; Package guix. Full text available.

Message received at 73462 <at> debbugs.gnu.org:


Received: (at 73462) by debbugs.gnu.org; 1 Oct 2024 19:56:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 01 15:56:28 2024
Received: from localhost ([127.0.0.1]:53317 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sviyy-0007fI-LS
	for submit <at> debbugs.gnu.org; Tue, 01 Oct 2024 15:56:28 -0400
Received: from mail-qt1-f195.google.com ([209.85.160.195]:46210)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <suhailsingh247@HIDDEN>) id 1sviyv-0007fA-Rj
 for 73462 <at> debbugs.gnu.org; Tue, 01 Oct 2024 15:56:26 -0400
Received: by mail-qt1-f195.google.com with SMTP id
 d75a77b69052e-458362e898aso45762851cf.0
 for <73462 <at> debbugs.gnu.org>; Tue, 01 Oct 2024 12:56:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1727812519; x=1728417319; darn=debbugs.gnu.org;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=ppFmZQc42DcjAsoSHn+Qt7yHRqfU1TetN899jxxwVQ4=;
 b=aPqnD/WEdNaPQhGf2/Fem+TO2wltNmEhNQs8bufJlKadBVKn0IT+ShvzFlOejG1buH
 BF+nH/ejH5jGgUlVBeyiwxTfQpVYz1doQnRwf41899KYoAMlaM2SylFKiu/6XMVUEI24
 MVJDzt5Kq9bUZ2UTqXL+JuUSb1DcjT1dcYMZlIGVQbUvI5y5JAMt3fxLEujjMH0nkQiz
 lYCGAi1innVzCkIAr+lWhBmuSFizU/AWXs3pA8lu/mYwD/OkaqRhArmaobdUlGLrYTFV
 4eT/PbOOEiW1N182uUCB6/4xKi8Rlg+kSOYrROJe4bHZCRIwNF5byJH23ZGB2UXRrNfn
 4C9A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1727812519; x=1728417319;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=ppFmZQc42DcjAsoSHn+Qt7yHRqfU1TetN899jxxwVQ4=;
 b=j1mOQUH1BzHkD+iKmEwYqYR+xT+O77j3N9NwKU2AMYHU4S7cbH2LuwUxdppEX6u1XD
 G3018wGjGR+DTFtwKxnerR1awq5Lct1eBKXfODyyjTfBjqqRHMjtQFj3BPgD5SfvHkTR
 YLMFflCsbIYtNm8swDH61x3qAVE3DUuRLWKLbD2eSL/WQib+jkCGxoUTvGuBz+m2BMiw
 nEC3N+U+ArFl/aZRk40ZZVY5io9Dd7zMv5Iv8uNJm5kZS47Lgrv/OdN1h/UvS86fUDw6
 uGiTC8CJcTOeqaoPk3Qpip9TYC9UlmDSn6n6tj2DAVPt2QEOHFDaMYaTxnFSataBTPr0
 eieQ==
X-Gm-Message-State: AOJu0Yy819SVtqYLu9vca5I9rrEwCVwPMvZOPLC/HRxAfQgZsE9oilRw
 wlZOpgT3Yx2YchqEK+YzEsqdLiL9cyUyaklAhTJoNt3YB/TIzrP2PlrSqXAB
X-Google-Smtp-Source: AGHT+IGXRpEgu3T8eRCjPxvwnAOwmcEgN61Q0s99/KqxXa3CmS4aDLeEx8MOc0Ro0adi1s/pm7e7/g==
X-Received: by 2002:ac8:7d50:0:b0:458:27a7:ad66 with SMTP id
 d75a77b69052e-45d804e8963mr10235721cf.34.1727812519380; 
 Tue, 01 Oct 2024 12:55:19 -0700 (PDT)
Received: from gnus (bras-base-mtrlpq0776w-grc-23-65-94-70-53.dsl.bell.ca.
 [65.94.70.53]) by smtp.gmail.com with ESMTPSA id
 d75a77b69052e-45c9f2bce82sm48029271cf.32.2024.10.01.12.55.17
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 01 Oct 2024 12:55:19 -0700 (PDT)
From: "Suhail Singh" <suhailsingh247@HIDDEN>
To: Christopher Howard <christopher@HIDDEN>
Subject: Re: bug#73462: emacs-guix: shell commands broken
In-Reply-To: <877cb0ivrj.fsf@HIDDEN> (Christopher Howard's message of
 "Tue, 24 Sep 2024 13:31:28 -0800")
References: <877cb0ivrj.fsf@HIDDEN>
Date: Tue, 01 Oct 2024 15:55:17 -0400
Message-ID: <87ploj38ey.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 73462
Cc: 73462 <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: -0.7 (/)

Christopher Howard <christopher@HIDDEN> writes:

> Recipe:
> 1. M-x guix
> 2. c (for "guix shell commands)

In case relevant, on a foreign distribution with on Emacs 29.4 and
emacs-guix installed via MELPA (using the same commit emacs-guix uses
for upstream) I am unable to reproduce the issue.

However, the below allows me to observe the issue:

#+begin_src sh
  guix shell emacs emacs-guix guix -- emacs -q
#+end_src

-- 
Suhail




Information forwarded to bug-guix@HIDDEN:
bug#73462; Package guix. Full text available.

Message received at 73462 <at> debbugs.gnu.org:


Received: (at 73462) by debbugs.gnu.org; 27 Sep 2024 21:10:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 27 17:10:51 2024
Received: from localhost ([127.0.0.1]:56884 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1suIEk-0002Mj-RF
	for submit <at> debbugs.gnu.org; Fri, 27 Sep 2024 17:10:51 -0400
Received: from mx.kolabnow.com ([212.103.80.154]:55536)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <christopher@HIDDEN>) id 1suIEd-0002J9-GQ
 for 73462 <at> debbugs.gnu.org; Fri, 27 Sep 2024 17:10:44 -0400
Received: from localhost (unknown [127.0.0.1])
 by mx.kolabnow.com (Postfix) with ESMTP id 567A634A6963
 for <73462 <at> debbugs.gnu.org>; Fri, 27 Sep 2024 23:10:08 +0200 (CEST)
Authentication-Results: ext-mx-out011.mykolab.com (amavis);
 dkim=pass (2048-bit key) reason="pass (just generated, assumed good)"
 header.d=kolabnow.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h=
 content-type:content-type:mime-version:message-id:date:date
 :in-reply-to:subject:subject:from:from:received:received
 :received; s=dkim20240523; t=1727471406; x=1729285807; bh=zdymOi
 r3+oSzuz5cNySRsKdSexgFTY0n9k8NmkWkBtY=; b=tShSvb/gmZ6b0ZzXb7fgb1
 sBEXaadev+O8Qg/nMk+uLgGKunmzdM/fFDDXvvhvA21LDJ4jL1zIeLzRurEcAUYd
 aDLx1C5AGbropd3qtqjdPAucZTwaiZIaDyJLzp2ddvNB+wZ76cdXwELULHqdpvzv
 0oybXrN9w67cRNkio36hMeVnR9TieNDPhPEATycDk9LjfelEK6ToKI03HmlHTq19
 u7GKtwPlNj5v+aW3985/8SsmwHIk3x08XSrfLSPTgqQDqkTkD6FJO82O9thkT71v
 NZGYAYhOXVIMU0q3oQczqjQ2xFSNDlJHN4pepJ1cN0u+oxKjvbURzdfLeiu7gAug
 ==
X-Virus-Scanned: amavis at mykolab.com
X-Spam-Flag: NO
X-Spam-Score: -1
X-Spam-Level: 
X-Spam-Status: No, score=-1 tagged_above=-10 required=5 tests=[ALL_TRUSTED=-1]
 autolearn=ham autolearn_force=no
Received: from mx.kolabnow.com ([127.0.0.1])
 by localhost (ext-mx-out011.mykolab.com [127.0.0.1]) (amavis, port 10024)
 with ESMTP id MWLdojA3vn_c for <73462 <at> debbugs.gnu.org>;
 Fri, 27 Sep 2024 23:10:06 +0200 (CEST)
Received: from int-mx009.mykolab.com (unknown [10.9.13.9])
 by mx.kolabnow.com (Postfix) with ESMTPS id AD6C434A696B
 for <73462 <at> debbugs.gnu.org>; Fri, 27 Sep 2024 23:10:03 +0200 (CEST)
Received: from ext-subm010.mykolab.com (unknown [10.9.6.10])
 by int-mx009.mykolab.com (Postfix) with ESMTPS id E60EC2134209
 for <73462 <at> debbugs.gnu.org>; Fri, 27 Sep 2024 23:10:03 +0200 (CEST)
From: Christopher Howard <christopher@HIDDEN>
To: 73462 <at> debbugs.gnu.org
Subject: Re: bug#73462: emacs-guix: shell commands broken
In-Reply-To: Christopher Howard's message of "Tue, 24 Sep 2024 13:31:28 -0800
 (2 days, 23 hours, 33 minutes ago)"
Date: Fri, 27 Sep 2024 13:10:01 -0800
Message-ID: <87o748u7km.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 73462
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.0 (-)

In studying the bt and the code, it seems like the problem is here, in

/home/christopher/.config/guix/current/share/guile/site/3.0/guix/scripts/deploy.scm

around line 176

```
(define (invoke-command store machine command)
  "Invoke COMMAND, a list of strings, on MACHINE.  Display its output (if any)
and its error code if it's non-zero.  Return true if COMMAND succeeded, false
otherwise."
  (define invocation
    #~(begin
        (use-modules (ice-9 match)
                     (ice-9 rdelim)
                     (srfi srfi-11))
```

For some reason the "#~" g-expression syntax is not being recognized here, as far as I can tell without knowing much about g-expressions. I see that the (guix gexp) module is being used, so I suppose it must have something to do with the way the syntax is being used (misused?)

-- 
Christopher Howard




Information forwarded to bug-guix@HIDDEN:
bug#73462; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 24 Sep 2024 21:58:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 24 17:58:45 2024
Received: from localhost ([127.0.0.1]:43302 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1stDYT-0003Ox-5l
	for submit <at> debbugs.gnu.org; Tue, 24 Sep 2024 17:58:45 -0400
Received: from lists.gnu.org ([209.51.188.17]:33538)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <christopher@HIDDEN>) id 1stDYN-0003NL-RE
 for submit <at> debbugs.gnu.org; Tue, 24 Sep 2024 17:58:40 -0400
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 <christopher@HIDDEN>)
 id 1stD8K-0006bV-V2
 for bug-guix@HIDDEN; Tue, 24 Sep 2024 17:31:45 -0400
Received: from mx.kolabnow.com ([212.103.80.155])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <christopher@HIDDEN>)
 id 1stD8F-0004Cx-Hu
 for bug-guix@HIDDEN; Tue, 24 Sep 2024 17:31:44 -0400
Received: from localhost (unknown [127.0.0.1])
 by mx.kolabnow.com (Postfix) with ESMTP id 47CCE2E198A
 for <bug-guix@HIDDEN>; Tue, 24 Sep 2024 23:31:36 +0200 (CEST)
Authentication-Results: ext-mx-out013.mykolab.com (amavis);
 dkim=pass (2048-bit key) reason="pass (just generated, assumed good)"
 header.d=kolabnow.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h=
 content-transfer-encoding:content-type:content-type:mime-version
 :message-id:date:date:subject:subject:from:from:received
 :received:received; s=dkim20240523; t=1727213493; x=1729027894;
 bh=ay38RIGF46HSvKRBU4rGz+/75MQ15CCDY++PL6kImTM=; b=q1x1grHT6euU
 dqLFZztT/ZZHb3oN0EiGSala9KCoi1tgmMXexiEa5tM8IZz0ZNr4FoctS4q6CXA5
 ylN5EaDRucYewL0cmVjZ2T2H+SV1MhzpWtqteFerE51To3EOlJrzdGs1s/GKBf1j
 udMg/39UMBVo0sbgvhwBrgbkZ0q7rFUqlBLfhiOGPv8Wn8A3eGRdEWpnndN/H/tj
 8UOhwRGeVA7tfCNZVBnqhcYg1MIDl1hHVhwc4aZOtyfsTS4eseapI6MqlXh87UBP
 yGBWZaDD3+zAquIBl+TTwCGlgMXncPchSIQi4CcGWxPPWM+RLaPu68EkbfTKP0Cg
 ui6VNCU0XA==
X-Virus-Scanned: amavis at mykolab.com
X-Spam-Flag: NO
X-Spam-Score: -0.999
X-Spam-Level: 
X-Spam-Status: No, score=-0.999 tagged_above=-10 required=5
 tests=[ALL_TRUSTED=-1, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mx.kolabnow.com ([127.0.0.1])
 by localhost (ext-mx-out013.mykolab.com [127.0.0.1]) (amavis, port 10024)
 with ESMTP id xmbREczBf1uj for <bug-guix@HIDDEN>;
 Tue, 24 Sep 2024 23:31:33 +0200 (CEST)
Received: from int-mx011.mykolab.com (unknown [10.9.13.11])
 by mx.kolabnow.com (Postfix) with ESMTPS id 1C2262E1992
 for <bug-guix@HIDDEN>; Tue, 24 Sep 2024 23:31:32 +0200 (CEST)
Received: from ext-subm010.mykolab.com (unknown [10.9.6.10])
 by int-mx011.mykolab.com (Postfix) with ESMTPS id 4947930851D6
 for <bug-guix@HIDDEN>; Tue, 24 Sep 2024 23:31:32 +0200 (CEST)
From: Christopher Howard <christopher@HIDDEN>
To: bug-guix@HIDDEN
Subject: emacs-guix: shell commands broken
Date: Tue, 24 Sep 2024 13:31:28 -0800
Message-ID: <877cb0ivrj.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: none client-ip=212.103.80.155;
 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, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
 RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001,
 SPF_NONE=0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -2.3 (--)
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 (---)

Recipe:
1. M-x guix
2. c (for "guix shell commands)

bt:

```
Debugger entered--Lisp error: (error "Error in evaluating guile expression:=
 ice-9/boot-9.scm:1685:16: In procedure raise-exception:\n/home/christopher=
/.config/guix/current/share/guile/site/3.0/guix/scripts/deploy.scm:176:7: U=
nknown # object: \"#~\"\n\nEntering a new prompt.  Type `,bt' for a backtra=
ce or `,q' to continue.")
  signal(error ("Error in evaluating guile expression: ice-9/boot-9.scm:168=
5:16: In procedure raise-exception:\n/home/christopher/.config/guix/current=
/share/guile/site/3.0/guix/scripts/deploy.scm:176:7: Unknown # object: \"#~=
\"\n\nEntering a new prompt.  Type `,bt' for a backtrace or `,q' to continu=
e."))
  error("Error in evaluating guile expression: %s" "ice-9/boot-9.scm:1685:1=
6: In procedure raise-exception:\n/home/christopher/.config/guix/current/sh=
are/guile/site/3.0/guix/scripts/deploy.scm:176:7: Unknown # object: \"#~\"\=
n\nEntering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.")
  guix-geiser-eval("(help-string )" #<buffer *Guix Internal REPL*>)
  guix-geiser-eval-read("(help-string )" #<buffer *Guix Internal REPL*>)
  guix-eval-read("(help-string )")
  guix-help-string(nil)
  guix-command-parse-arguments(nil)
  guix-command--all-arguments(nil)
  guix-command-all-arguments(nil)
  guix-command-generate-popup(guix-command-popup nil)
  guix-command(nil)
  funcall-interactively(guix-command nil)
  call-interactively(guix-command)
  magit-invoke-popup-action(99)
  funcall-interactively(magit-invoke-popup-action 99)
  call-interactively(magit-invoke-popup-action nil nil)
  command-execute(magit-invoke-popup-action)
```

I noticed this issue using Emacs 30 pretest, and my normal init.el, but I a=
lso see the same error running the Emacs 29.4 binary with the -q option.

Here is my system information:

```
christopher@theoden=20
-------------------=20
OS: Guix System x86_64=20
Host: OptiPlex 9020 00=20
Kernel: 5.15.166-gnu=20
Uptime: 7 days, 23 hours, 42 mins=20
Packages: 167 (guix-system), 251 (guix-user)=20
Shell: bash 5.1.16=20
Resolution: 1920x1080=20
DE: GNOME=20
Theme: Adwaita [GTK2/3]=20
Icons: Adwaita [GTK2/3]=20
Terminal: guix=20
CPU: Intel i5-4570 (4) @ 3.600GHz=20
GPU: AMD ATI Radeon HD 8490 / R5 235X OEM=20
GPU: Intel HD Graphics=20
Memory: 4203MiB / 15914MiB=20
```

``` M-x version
GNU Emacs 30.0.91 (build 6, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, cair=
o version 1.18.0) of 2024-09-23
```

``` guix describe
Generation 145	Sep 13 2024 07:30:24	(current)
  guix 013bda5
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 013bda5e2c53bcf1d9093286c3658b95f5e32c09
```

--=20
=F0=9F=93=9B Christopher Howard
=F0=9F=9A=80 gemini://gem.librehacker.com
=F0=9F=8C=90 http://gem.librehacker.com

=D7=91=D7=A8=D7=90=D7=A9=D7=99=D7=AA =D7=91=D7=A8=D7=90 =D7=90=D7=9C=D7=94=
=D7=99=D7=9D =D7=90=D7=AA =D7=94=D7=A9=D7=9E=D7=99=D7=9D =D7=95=D7=90=D7=AA=
 =D7=94=D7=90=D7=A8=D7=A5




Acknowledgement sent to Christopher Howard <christopher@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#73462; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 12 Jan 2025 05:45:02 UTC

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