From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id WIWUFWDeL2C0SAAA0tVLHw (envelope-from ) for ; Fri, 19 Feb 2021 15:50:56 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id mKFuEWDeL2C6KQAA1q6Kng (envelope-from ) for ; Fri, 19 Feb 2021 15:50:56 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B2462C797 for ; Fri, 19 Feb 2021 16:50:55 +0100 (CET) Received: from localhost ([::1]:55444 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lD83S-0004wJ-OV for larch@yhetil.org; Fri, 19 Feb 2021 10:50:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41190) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lD7Uk-0006oi-Iv for bug-guix@gnu.org; Fri, 19 Feb 2021 10:15:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:38581) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lD7Uk-0006bP-8P for bug-guix@gnu.org; Fri, 19 Feb 2021 10:15:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lD7Uk-0004FQ-3I for bug-guix@gnu.org; Fri, 19 Feb 2021 10:15:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#46241: Guile Macros did not print the error-line-number ? Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 19 Feb 2021 15:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46241 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 46241@debbugs.gnu.org X-Debbugs-Original-To: jbranso--- via Bug reports for GNU Guix X-Debbugs-Original-Cc: bug-guile@gnu.org, Joshua Branson , 46241@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161374765216217 (code B ref -1); Fri, 19 Feb 2021 15:15:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Feb 2021 15:14:12 +0000 Received: from localhost ([127.0.0.1]:50124 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lD7Tv-0004DV-PS for submit@debbugs.gnu.org; Fri, 19 Feb 2021 10:14:12 -0500 Received: from lists.gnu.org ([209.51.188.17]:56296) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lD7Tu-0004DO-Dq for submit@debbugs.gnu.org; Fri, 19 Feb 2021 10:14:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40978) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lD7Tu-0004m6-4F; Fri, 19 Feb 2021 10:14:10 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50467) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lD7Ts-0006Gb-VJ; Fri, 19 Feb 2021 10:14:08 -0500 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=49776 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lD7Ts-0000q2-ET; Fri, 19 Feb 2021 10:14:08 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87r1lzodwl.fsf@dismail.de> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 1 =?UTF-8?Q?Vent=C3=B4se?= an 229 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: Fri, 19 Feb 2021 16:14:07 +0100 In-Reply-To: <87r1lzodwl.fsf@dismail.de> (jbranso's message of "Mon, 01 Feb 2021 13:12:42 -0500") Message-ID: <877dn4m6o0.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bug-guile@gnu.org, jbranso@dismail.de Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.87 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: B2462C797 X-Spam-Score: -1.87 X-Migadu-Scanner: scn0.migadu.com X-TUID: B51TSED5A+Bb Hi Joshua, jbranso--- via Bug reports for GNU Guix skribis: > Recently on irc, I posted an example of an incorrectly used > define-record-type* NOT displaying an error line number. > > mdevos mentioned that this could potentially be fixed in (guix > records), but it may also be a guile compile bug as well. > > First here is a (guix records) example: > > #+BEGIN_SRC scheme > (use-modules (guix records)) > > (define-record-type* > sway-bindsym make-sway-bindsym > sway-bindsym? > (key-combo sway-bindsym-key-combo > (default ""))) > > (display sway-bindsym) ;; compile error at unknown location > ;; (display (sway-bindsym)) this is one "correct" way to call this code > #+END_SRC Source location info is missing because currently (as of 3.0.5), Guile keeps location info in the form of =E2=80=9Csource properties=E2=80=9D only= for lists. The =E2=80=98sway-bindsym=E2=80=99 symbol above has no associated location = info. This may change in the near future as Andy has been rewriting =E2=80=98read= =E2=80=99 (the Scheme =E2=80=9Cparser=E2=80=9D) in Scheme, among other things. Ludo=E2=80=99.