From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Howard Newsgroups: gmane.lisp.guile.bugs Subject: bug#74484: reader syntax trouble across socket Date: Fri, 22 Nov 2024 11:51:25 -0900 Message-ID: <87a5druh4i.fsf@librehacker.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12077"; mail-complaints-to="usenet@ciao.gmane.io" To: 74484@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Fri Nov 22 21:52:18 2024 Return-path: Envelope-to: guile-bugs@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 1tEadW-0002yS-GO for guile-bugs@m.gmane-mx.org; Fri, 22 Nov 2024 21:52:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tEadH-0001Pd-5m; Fri, 22 Nov 2024 15:52:03 -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 1tEadG-0001PV-GR for bug-guile@gnu.org; Fri, 22 Nov 2024 15:52:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tEadG-0006lH-7e for bug-guile@gnu.org; Fri, 22 Nov 2024 15:52:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=hQyPIrJh4dTrpn/hcd796n5PvrrjsHZGSAYNJ0sjDPo=; b=pzRN2vtoeDVoOsqDN3KXAh/7I4Iq7LWbt/Aqn4wlGBw+6BEgKpgupubEPgE4R890j+eNrfK0xUHjW/I1sWfsYTC8xAKuhm2CA/KpAn0ks9rtAnu4HrsLPbsL0D+awe+35IsBKZ8pKDvgjC/Bj7IKDp6zle5a7HXWFM7/U9D9UZr1CR7E+WL+waZICgebmp8h1iOmdCR0MUGqHCUvTryZlW6/aRXvpe2UsLC2z7lubOgqjU6k4HjVBw9h8kHXbKSUn909J51s3OuTASl/K9dj5e3YzSG4+7+YdRUjeMdMrmTr7xhos8JM657FLgdMU7XRclmOhuPKvOrMUgyqGZ0n6A==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tEadG-0000Qr-1r for bug-guile@gnu.org; Fri, 22 Nov 2024 15:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Christopher Howard Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 22 Nov 2024 20:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74484 X-GNU-PR-Package: guile X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17323086951581 (code B ref -1); Fri, 22 Nov 2024 20:52:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Nov 2024 20:51:35 +0000 Original-Received: from localhost ([127.0.0.1]:55747 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEacp-0000PP-2O for submit@debbugs.gnu.org; Fri, 22 Nov 2024 15:51:35 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:57178) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEacm-0000PF-E6 for submit@debbugs.gnu.org; Fri, 22 Nov 2024 15:51:33 -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 1tEacm-0001Ob-7k for bug-guile@gnu.org; Fri, 22 Nov 2024 15:51:32 -0500 Original-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 ) id 1tEack-0006kR-67 for bug-guile@gnu.org; Fri, 22 Nov 2024 15:51:32 -0500 Original-Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id 2D63220B365D for ; 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 Original-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 ; Fri, 22 Nov 2024 21:51:26 +0100 (CET) Original-Received: from int-mx009.mykolab.com (unknown [10.9.13.9]) by mx.kolabnow.com (Postfix) with ESMTPS id CF9DE20B2761 for ; Fri, 22 Nov 2024 21:51:25 +0100 (CET) Original-Received: from ext-subm010.mykolab.com (unknown [10.9.6.10]) by int-mx009.mykolab.com (Postfix) with ESMTPS id B1A22216F2C7 for ; Fri, 22 Nov 2024 21:51:25 +0100 (CET) Received-SPF: none client-ip=212.103.80.155; envelope-from=christopher@librehacker.com; 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.bugs:11105 Archived-At: 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