X-Loop: help-debbugs@HIDDEN Subject: bug#74484: reader syntax trouble across socket Resent-From: Christopher Howard <christopher@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guile@HIDDEN Resent-Date: Fri, 22 Nov 2024 20:52:01 +0000 Resent-Message-ID: <handler.74484.B.17323086951581 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 74484 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: 74484 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-guile@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.17323086951581 (code B ref -1); Fri, 22 Nov 2024 20:52:01 +0000 Received: (at submit) by debbugs.gnu.org; 22 Nov 2024 20:51:35 +0000 Received: from localhost ([127.0.0.1]:55747 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tEacp-0000PP-2O for submit <at> debbugs.gnu.org; Fri, 22 Nov 2024 15:51:35 -0500 Received: from lists.gnu.org ([209.51.188.17]:57178) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <christopher@HIDDEN>) id 1tEacm-0000PF-E6 for submit <at> debbugs.gnu.org; Fri, 22 Nov 2024 15:51:33 -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 1tEacm-0001Ob-7k for bug-guile@HIDDEN; Fri, 22 Nov 2024 15:51:32 -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 1tEack-0006kR-67 for bug-guile@HIDDEN; Fri, 22 Nov 2024 15:51:32 -0500 Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id 2D63220B365D for <bug-guile@HIDDEN>; Fri, 22 Nov 2024 21:51:28 +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-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:subject:subject:from:from:received :received:received; s=dkim20240523; t=1732308686; x=1734123087; bh=hQyPIrJh4dTrpn/hcd796n5PvrrjsHZGSAYNJ0sjDPo=; b=NF8H9J3BeEhR MyIHBac9Q4D4yUV453gMbySeG8SgmqOQq+3/PDziagdzqo7gFuUCbe2hnk5TxkOf 3/cmPqKMgZK/VkrgAn73ws+JhaMiWzIuirau41butvzM38+BJO2Oi4jX8xcW2pZ9 RfU7D063Pmw0he13xp7QRmPTIzE3YWYUuYapa1FvJT+DbETjIdcp+GNwAHycu+VU ezM8sIl5IIg0rlBzlwRiKJ/PpoDI8GuvX3rAZKsMqh3khmKDml2ZaE56uo6uuRFb J7F+a6vjZG8KpCJaZhDT3M9/vMAhgemUSPJWBfIq4gmuk0gTWBO2nLCK+o+ukozU sC54MzstjA== 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 9xSJqAH7algl for <bug-guile@HIDDEN>; Fri, 22 Nov 2024 21:51:26 +0100 (CET) Received: from int-mx009.mykolab.com (unknown [10.9.13.9]) by mx.kolabnow.com (Postfix) with ESMTPS id CF9DE20B2761 for <bug-guile@HIDDEN>; Fri, 22 Nov 2024 21:51:25 +0100 (CET) Received: from ext-subm010.mykolab.com (unknown [10.9.6.10]) by int-mx009.mykolab.com (Postfix) with ESMTPS id B1A22216F2C7 for <bug-guile@HIDDEN>; Fri, 22 Nov 2024 21:51:25 +0100 (CET) From: Christopher Howard <christopher@HIDDEN> Date: Fri, 22 Nov 2024 11:51:25 -0900 Message-ID: <87a5druh4i.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-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 (---) Hi, I'm trying to troubleshoot some bugs in the venerable emacs-guix packag= e, which you've probably heard of. In its default configuration, emacs-guix= uses geiser to set up one Guile REPL (*Guix REPL*) to handle various guix = operations, and tells it to --listen on a domain socket; and then it uses s= ome comint functions to connect to the domain socket, to provide another Gu= ile REPL (*Guix Internal REPL*) which it uses for various other guix operat= ions while the main REPL is busy. In guix bug#73462, I figured out that the bug was caused by, for some unkno= wn reason, (guix gexp) reader syntax was working in the main REPL (*Guix RE= PL*) but not in the REPL that was over the socket (*Guix Internal REPL*). A= work around is available, which is to run an extra ",re (guix gexp)" in th= e internal REPL buffer, and then after that it works fine, but I don't unde= rstand why that should be necessary. Can somebody help me figure if this is= some kind of bug in Guile, or a different issue...? This can be reproduced this one my system command line with the following c= ommands. Of course, you would need to adjust for your own paths. On one ter= minal: ``` shell christopher@theoden ~$ /gnu/store/g1fhmjs2mh8a0djfnyaha49ihb5cmkas-profile/= bin/guile --no-auto-compile -L /home/christopher/Repos/emacs-guix/scheme -C= /home/christopher/Repos/emacs-guix/scheme -L /home/christopher/.config/gui= x/current/share/guile/site/3.0 -C /home/christopher/.config/guix/current/li= b/guile/3.0/site-ccache --listen=3D/tmp/test-socket ``` Then on another terminal: ```shell christopher@theoden /gnu/store/pg7s74p1p3bf2k848xy4j0x8dcqv248l-netcat-open= bsd-1.219-1/bin$ ./nc -U /tmp/test-socket GNU Guile 3.0.9 Copyright (C) 1995-2023 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> ,m (emacs-guix) scheme@(emacs-guix)> (guix-command "pull") Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.or= g/git/guix.git'... Building from this channel: guix https://git.savannah.gnu.org/git/guix.git 8a7bd21 ice-9/boot-9.scm:1685:16: In procedure raise-exception: /gnu/store/hhnw8gr26smc267yy2hzk57p4b0g6iyb-guix-8a7bd21/build-aux/build-se= lf.scm:84:18: Unknown # object: "#~" ``` But the same command, which is (guix-command "pull") works fine in the firs= t terminal. Some system information: ``` guix describe Generation 153 Nov 20 2024 09:29:24 (current) guix 804f8b2 repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 804f8b2094f3214c5b129047c1b18a7779720496 ``` ``` guile --version guile (GNU Guile) 3.0.9 ``` Regarding the sockets issue, there is another bug I have found related to t= he use of the socket based REPL, described in bug#74250, but that one is mo= re difficult to point to a specific cause or try to blame on Guile. --=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
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Christopher Howard <christopher@HIDDEN> Subject: bug#74484: Acknowledgement (reader syntax trouble across socket) Message-ID: <handler.74484.B.17323086951581.ack <at> debbugs.gnu.org> References: <87a5druh4i.fsf@HIDDEN> X-Gnu-PR-Message: ack 74484 X-Gnu-PR-Package: guile Reply-To: 74484 <at> debbugs.gnu.org Date: Fri, 22 Nov 2024 20:52:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-guile@HIDDEN If you wish to submit further information on this problem, please send it to 74484 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 74484: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D74484 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#74484: reader syntax trouble across socket Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guile@HIDDEN Resent-Date: Mon, 09 Dec 2024 17:09:02 +0000 Resent-Message-ID: <handler.74484.B74484.1733764127614 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 74484 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: Christopher Howard <christopher@HIDDEN> Cc: 74484 <at> debbugs.gnu.org Received: via spool by 74484-submit <at> debbugs.gnu.org id=B74484.1733764127614 (code B ref 74484); Mon, 09 Dec 2024 17:09:02 +0000 Received: (at 74484) by debbugs.gnu.org; 9 Dec 2024 17:08:47 +0000 Received: from localhost ([127.0.0.1]:55412 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tKhFX-00009q-7J for submit <at> debbugs.gnu.org; Mon, 09 Dec 2024 12:08:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33150) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1tKhFR-00009L-QJ for 74484 <at> debbugs.gnu.org; Mon, 09 Dec 2024 12:08:45 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1tKhFB-0002Lv-1A; Mon, 09 Dec 2024 12:08:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=ZYdfQJC7pcQiX78Qo+F5HaR7d+v1sTt4soHBAjF0lIw=; b=q3eITyqYn3ohIi1h+aeG 2bYOOcGkEG6nABuMVEIuSm6/kze3CCVJQecnY/TOgU9USl9Dw4VcCMI5kTVCc2aS6m/B9tVis3zdK koM7rguBvy2PEoxcw2L6IzVS0/3/VOvFV/wJ9SPzPfq60yPDpwjRivEH9Q5kEuRa095oI0A82rcER Fsy8FGJ7dnR1K/NeWqTfl+OspEcqgiCHsAYxXQFJCPGgaZdnrewS7YU3aTdgOmpUsknvScyMP0H5o t6UTYb1ST8swyOFXiUnRPgAdWAm65QvZlVDlCIqkTMxasoQVIaxYJTyOgP17Q3VwtudKb23gd87ap p1R/9Nm3g5d2dw==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN> In-Reply-To: <87a5druh4i.fsf@HIDDEN> (Christopher Howard's message of "Fri, 22 Nov 2024 11:51:25 -0900") References: <87a5druh4i.fsf@HIDDEN> Date: Mon, 09 Dec 2024 18:08:18 +0100 Message-ID: <8734iwn5rx.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) 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 (---) Hi Christopher, Christopher Howard <christopher@HIDDEN> scribans: > scheme@(guile-user)> ,m (emacs-guix) > scheme@(emacs-guix)> (guix-command "pull") > Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.= org/git/guix.git'... > Building from this channel: > guix https://git.savannah.gnu.org/git/guix.git 8a7bd21 > ice-9/boot-9.scm:1685:16: In procedure raise-exception: > /gnu/store/hhnw8gr26smc267yy2hzk57p4b0g6iyb-guix-8a7bd21/build-aux/build-= self.scm:84:18: Unknown # object: "#~" The read syntax for #~ (gexp) is installed by loading the (guix gexp) module or simply the (guix) module, which loads (guix gexp). It seems that somehow Emacs-Guix does not load (guix gexp) upfront. It=E2=80=99s fishy though because (guix scripts pull) definitely loads (guix gexp), directly and indirectly. Ludo=E2=80=99.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.