From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andy Wingo 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 22:00:43 +0200 Message-ID: <877dkklv2s.fsf@pobox.com> References: <87fsz9mnqd.fsf@inria.fr> 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="18459"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: 48096-done@debbugs.gnu.org To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Thu Apr 29 22:02:17 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 1lcCrZ-0004ig-Pd for guile-bugs@m.gmane-mx.org; Thu, 29 Apr 2021 22:02:17 +0200 Original-Received: from localhost ([::1]:45284 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcCrY-0006bx-QM for guile-bugs@m.gmane-mx.org; Thu, 29 Apr 2021 16:02:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43518) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcCrM-0006am-3B for bug-guile@gnu.org; Thu, 29 Apr 2021 16:02:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45301) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lcCrJ-0002k0-Tb for bug-guile@gnu.org; Thu, 29 Apr 2021 16:02:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lcCrJ-0000Dt-Rf for bug-guile@gnu.org; Thu, 29 Apr 2021 16:02:01 -0400 Resent-From: Andy Wingo Original-Sender: "Debbugs-submit" Resent-To: bug-guile@gnu.org Resent-Date: Thu, 29 Apr 2021 20:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 48096 X-GNU-PR-Package: guile Mail-Followup-To: 48096@debbugs.gnu.org, wingo@pobox.com, ludo@gnu.org Original-Received: via spool by 48096-done@debbugs.gnu.org id=D48096.1619726464786 (code D ref 48096); Thu, 29 Apr 2021 20:02:01 +0000 Original-Received: (at 48096-done) by debbugs.gnu.org; 29 Apr 2021 20:01:04 +0000 Original-Received: from localhost ([127.0.0.1]:56845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcCqO-0000Cc-A9 for submit@debbugs.gnu.org; Thu, 29 Apr 2021 16:01:04 -0400 Original-Received: from fanzine.igalia.com ([178.60.130.6]:47659) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcCqK-0000Bz-Vq for 48096-done@debbugs.gnu.org; Thu, 29 Apr 2021 16:01:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From; bh=wySJlNTy+eNOtqyng+c2KlhS0ktFRNG/ZldFHu/1Kwg=; b=mqSt2Q+wW//0I+1UdLkLxo8okGmU6F7TWmXHEZumEMKLwEkw2GgnAuz2JNVcTzv7eKxO5Wd0YoLII2PHyVrYcsc43aS246osRDxYICBon/ljZxbRzmb7CCy8aLqRV1N1ZBqhKuCDeB9US9jgMzd79ZiBNk3ubJML6G56Hs15S1ScphmFbsBI0vbBkNK39SziG359m9Ic6ELgV9GXqYOTMXNOId/LAvaHl0igebYZLzWIp5aIiYT702gycliLqtawPyr6on/I5XvQ/nfOXuSMErX50UF4ud9MbBHZdpmOEnyS9UuDC9P9FvrlyACM1qJkobNlhpM6//HlZBnKJ3Barw==; Original-Received: from 82-65-63-215.subs.proxad.net ([82.65.63.215] helo=sparrow) by fanzine.igalia.com with esmtpsa (Cipher TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim) id 1lcCqE-0006CB-Hc; Thu, 29 Apr 2021 22:00:54 +0200 In-Reply-To: <87fsz9mnqd.fsf@inria.fr> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Thu, 29 Apr 2021 11:41:46 +0200") 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:10022 Archived-At: Done! On Thu 29 Apr 2021 11:41, Ludovic Court=C3=A8s writes: > 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 sour= ce > property alists. > > Here is a test case that reproduces the problem: > > 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 -*- schem= e -*- > ;;;; > ;;;; 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 @@ >=20=20 > (with-test-prefix "Bad argument list" >=20=20 > + (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))) > > > Ludo=E2=80=99.