X-Loop: help-debbugs@HIDDEN Subject: bug#36547: expect an earlier/clearer error when trying to splice(?) a function into a gexp Resent-From: Robert Vollmert <rob@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Mon, 08 Jul 2019 12:34:01 +0000 Resent-Message-ID: <handler.36547.B.156258923517761 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 36547 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 36547 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-guix@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.156258923517761 (code B ref -1); Mon, 08 Jul 2019 12:34:01 +0000 Received: (at submit) by debbugs.gnu.org; 8 Jul 2019 12:33:55 +0000 Received: from localhost ([127.0.0.1]:58012 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1hkSqB-0004cP-AB for submit <at> debbugs.gnu.org; Mon, 08 Jul 2019 08:33:55 -0400 Received: from lists.gnu.org ([209.51.188.17]:44458) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rob@HIDDEN>) id 1hkSq8-0004cG-QG for submit <at> debbugs.gnu.org; Mon, 08 Jul 2019 08:33:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36721) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from <rob@HIDDEN>) id 1hkSq7-0002VB-H9 for bug-guix@HIDDEN; Mon, 08 Jul 2019 08:33:52 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <rob@HIDDEN>) id 1hkSpz-0006i2-3c for bug-guix@HIDDEN; Mon, 08 Jul 2019 08:33:45 -0400 Received: from mx1.mailbox.org ([2001:67c:2050:104:0:1:25:1]:59476) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <rob@HIDDEN>) id 1hkSpy-0006gN-28 for bug-guix@HIDDEN; Mon, 08 Jul 2019 08:33:43 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id C0D4050356 for <bug-guix@HIDDEN>; Mon, 8 Jul 2019 14:33:38 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter05.heinlein-hosting.de (spamfilter05.heinlein-hosting.de [80.241.56.123]) (amavisd-new, port 10030) with ESMTP id o-S9_CF9EBdC for <bug-guix@HIDDEN>; Mon, 8 Jul 2019 14:33:37 +0200 (CEST) From: Robert Vollmert <rob@HIDDEN> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Message-Id: <BA8E755C-27FE-4762-8738-FEA631EFD0ED@HIDDEN> Date: Mon, 8 Jul 2019 14:33:36 +0200 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:67c:2050:104:0:1:25:1 X-Spam-Score: -1.6 (-) 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: -2.6 (--) I tried to use a function in a gexp along the lines of (define* (f x) =E2=80=A6) #~(begin (#$f x) =E2=80=A6) This resulted in the following error: ERROR: In procedure primitive-load: In procedure scm_lreadr: = /gnu/store/wcw0fii855axkiqfz05283rwl7nlrb3i-puzzledb-blogs-job-builder:1:2= 54: Unknown # object: #\< where the referenced builder file contains =E2=80=A6 (let ((backend (#<procedure read-secret (file)> = "tools.token"))) =E2=80=A6 It seems to me that whatever code writes the builder file should already = complain at the point where it substitutes #<procedure read-secret (file)> =E2=80=94 is that = possible?
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: Robert Vollmert <rob@HIDDEN> Subject: bug#36547: Acknowledgement (expect an earlier/clearer error when trying to splice(?) a function into a gexp) Message-ID: <handler.36547.B.156258923517761.ack <at> debbugs.gnu.org> References: <BA8E755C-27FE-4762-8738-FEA631EFD0ED@HIDDEN> X-Gnu-PR-Message: ack 36547 X-Gnu-PR-Package: guix Reply-To: 36547 <at> debbugs.gnu.org Date: Mon, 08 Jul 2019 12:34: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-guix@HIDDEN If you wish to submit further information on this problem, please send it to 36547 <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 36547: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D36547 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#36547: expect an earlier/clearer error when trying to splice(?) a function into a gexp 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-guix@HIDDEN Resent-Date: Thu, 11 Jul 2019 16:07:01 +0000 Resent-Message-ID: <handler.36547.B36547.15628612203327 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 36547 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Robert Vollmert <rob@HIDDEN> Cc: 36547 <at> debbugs.gnu.org Received: via spool by 36547-submit <at> debbugs.gnu.org id=B36547.15628612203327 (code B ref 36547); Thu, 11 Jul 2019 16:07:01 +0000 Received: (at 36547) by debbugs.gnu.org; 11 Jul 2019 16:07:00 +0000 Received: from localhost ([127.0.0.1]:38474 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1hlbb2-0000ra-9G for submit <at> debbugs.gnu.org; Thu, 11 Jul 2019 12:07:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52531) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1hlbb0-0000rK-P4 for 36547 <at> debbugs.gnu.org; Thu, 11 Jul 2019 12:06:59 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38873) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>) id 1hlbav-0001uA-N4; Thu, 11 Jul 2019 12:06:53 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=43218 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from <ludo@HIDDEN>) id 1hlbav-0003n4-7k; Thu, 11 Jul 2019 12:06:53 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN> References: <BA8E755C-27FE-4762-8738-FEA631EFD0ED@HIDDEN> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 23 Messidor an 227 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 11 Jul 2019 18:06:52 +0200 In-Reply-To: <BA8E755C-27FE-4762-8738-FEA631EFD0ED@HIDDEN> (Robert Vollmert's message of "Mon, 8 Jul 2019 14:33:36 +0200") Message-ID: <87ims8sggz.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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 (---) Robert Vollmert <rob@HIDDEN> skribis: > I tried to use a function in a gexp along the lines of > > (define* (f x) =E2=80=A6) > > #~(begin > (#$f x) > =E2=80=A6) > > This resulted in the following error: > > ERROR: In procedure primitive-load: > In procedure scm_lreadr: /gnu/store/wcw0fii855axkiqfz05283rwl7nlrb3i-puzz= ledb-blogs-job-builder:1:254: Unknown # object: #\< > > where the referenced builder file contains > > =E2=80=A6 (let ((backend (#<procedure read-secret (file)> "tools.token"))= ) =E2=80=A6 > > It seems to me that whatever code writes the builder file should already = complain at the point > where it substitutes #<procedure read-secret (file)> =E2=80=94 is that po= ssible? I think =E2=80=98gexp->sexp=E2=80=99 should simply error out whenever an ob= ject that lacks a read syntax (like a procedure) is inserted in a gexp. Ludo=E2=80=99.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.