From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Newsgroups: gmane.comp.gnu.guix.bugs,gmane.lisp.guile.bugs Subject: bug#46241: Guile Macros did not print the error-line-number ? Date: Fri, 19 Feb 2021 16:14:07 +0100 Message-ID: <877dn4m6o0.fsf@gnu.org> References: <87r1lzodwl.fsf@dismail.de> 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="27161"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: bug-guile@gnu.org, jbranso@dismail.de To: 46241@debbugs.gnu.org Original-X-From: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Fri Feb 19 16:50:34 2021 Return-path: Envelope-to: gcggb-bug-guix@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 1lD837-0006yb-UL for gcggb-bug-guix@m.gmane-mx.org; Fri, 19 Feb 2021 16:50:33 +0100 Original-Received: from localhost ([::1]:55444 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lD836-0004wJ-Uc for gcggb-bug-guix@m.gmane-mx.org; Fri, 19 Feb 2021 10:50:32 -0500 Original-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 Original-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 Original-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 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-Debbugs-Original-To: jbranso--- via Bug reports for GNU Guix X-Debbugs-Original-Cc: bug-guile@gnu.org, Joshua Branson , 46241@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.161374765216217 (code B ref -1); Fri, 19 Feb 2021 15:15:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Feb 2021 15:14:12 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 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 In-Reply-To: <87r1lzodwl.fsf@dismail.de> (jbranso's message of "Mon, 01 Feb 2021 13:12:42 -0500") 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: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Original-Sender: "bug-Guix" Xref: news.gmane.io gmane.comp.gnu.guix.bugs:23516 gmane.lisp.guile.bugs:9986 Archived-At: 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.