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.lisp.guile.bugs Subject: bug#48096: [3.0.6] =?UTF-8?Q?=E2=80=98syntax-error=E2=80=99?= exceptions include vectors instead of source location properties Date: Thu, 29 Apr 2021 11:41:46 +0200 Message-ID: <87fsz9mnqd.fsf@inria.fr> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11045"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) To: 48096@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Thu Apr 29 11:42:11 2021 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 1lc3BT-0002mI-9U for guile-bugs@m.gmane-mx.org; Thu, 29 Apr 2021 11:42:11 +0200 Original-Received: from localhost ([::1]:50594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lc3BS-0005wj-CK for guile-bugs@m.gmane-mx.org; Thu, 29 Apr 2021 05:42:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35646) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lc3BK-0005vr-SB for bug-guile@gnu.org; Thu, 29 Apr 2021 05:42:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43306) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lc3BK-0000s8-Jz for bug-guile@gnu.org; Thu, 29 Apr 2021 05:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lc3BK-0006vU-3t; Thu, 29 Apr 2021 05:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: wingo@pobox.com, bug-guile@gnu.org Resent-Date: Thu, 29 Apr 2021 09:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48096 X-GNU-PR-Package: guile X-Debbugs-Original-To: bug-guile@gnu.org X-Debbugs-Original-Xcc: Andy Wingo Original-Received: via spool by submit@debbugs.gnu.org id=B.161968931926611 (code B ref -1); Thu, 29 Apr 2021 09:42:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Apr 2021 09:41:59 +0000 Original-Received: from localhost ([127.0.0.1]:54851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lc3BG-0006v9-Pp for submit@debbugs.gnu.org; Thu, 29 Apr 2021 05:41:59 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:51920) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lc3BE-0006uz-9Q for submit@debbugs.gnu.org; Thu, 29 Apr 2021 05:41:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35616) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lc3BA-0005p8-BT for bug-guile@gnu.org; Thu, 29 Apr 2021 05:41:56 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39096) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lc3BA-0000mS-3t for bug-guile@gnu.org; Thu, 29 Apr 2021 05:41:52 -0400 Original-Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=32860 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lc3B6-0004Nx-Lb for bug-guile@gnu.org; Thu, 29 Apr 2021 05:41:50 -0400 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 10 =?UTF-8?Q?Flor=C3=A9al?= 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 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" Xref: news.gmane.io gmane.lisp.guile.bugs:10020 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi! In 3.0.6, a slight incompatibility crept in: =E2=80=98syntax-error=E2=80=99= exceptions include vectors like #("example.scm" 1 2) instead of good=E2=80=99ol source property alists. Here is a test case that reproduces the problem: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/test-suite/tests/syntax.test b/test-suite/tests/syntax.test index 10bc7b080..c60a453aa 100644 --- a/test-suite/tests/syntax.test +++ b/test-suite/tests/syntax.test @@ -1,7 +1,7 @@ ;;;; syntax.test --- test suite for Guile's syntactic forms -*- scheme -*- ;;;; ;;;; Copyright (C) 2001, 2003, 2004, 2005, 2006, 2009, 2010, -;;;; 2011, 2012, 2013, 2014 Free Software Foundation, Inc. +;;;; 2011, 2012, 2013, 2014, 2021 Free Software Foundation, Inc. ;;;; ;;;; This library is free software; you can redistribute it and/or ;;;; modify it under the terms of the GNU Lesser General Public @@ -112,6 +112,18 @@ (with-test-prefix "Bad argument list" + (pass-if-equal "syntax-error location" + '((line . 1) (column . 2) (filename . "example.scm")) + (catch 'syntax-error + (lambda () + (eval (call-with-input-string "\n (let foo bar)" + (lambda (port) + (set-port-filename! port "example.scm") + (read port))) + (interaction-environment))) + (lambda (key proc message properties form subform . rest) + properties))) + (pass-if-syntax-error "improper argument list of length 1" exception:generic-syncase-error (eval '(let ((foo (lambda (x y) #t))) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 DQpMdWRv4oCZLg0K --=-=-=--