GNU bug report logs - #28295
better error messages: missing closing parenthesis

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guile; Reported by: Ricardo Wurmus <rekado@HIDDEN>; dated Wed, 30 Aug 2017 14:12:01 UTC; Maintainer for guile is bug-guile@HIDDEN.

Message received at 28295 <at> debbugs.gnu.org:


Received: (at 28295) by debbugs.gnu.org; 10 Oct 2017 21:18:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 10 17:18:46 2017
Received: from localhost ([127.0.0.1]:32776 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1e21vJ-0000Xs-RR
	for submit <at> debbugs.gnu.org; Tue, 10 Oct 2017 17:18:46 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43354)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1e21vH-0000Xc-Vp
 for 28295 <at> debbugs.gnu.org; Tue, 10 Oct 2017 17:18:44 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1e21vB-0001rh-Td
 for 28295 <at> debbugs.gnu.org; Tue, 10 Oct 2017 17:18:38 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35410)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1e21vB-0001rc-Qb; Tue, 10 Oct 2017 17:18:37 -0400
Received: from [2a01:e0a:1d:7270:6a6c:dc17:fc02:cfda] (port=56432 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1e21vB-0007aR-BO; Tue, 10 Oct 2017 17:18:37 -0400
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: Ricardo Wurmus <rekado@HIDDEN>
Subject: Re: bug#28295: better error messages: missing closing parenthesis
References: <87o9qxf8o4.fsf@HIDDEN>
Date: Tue, 10 Oct 2017 23:18:34 +0200
In-Reply-To: <87o9qxf8o4.fsf@HIDDEN> (Ricardo Wurmus's message of "Wed,
 30 Aug 2017 16:10:35 +0200")
Message-ID: <87efqaem6t.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (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-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 28295
Cc: 28295 <at> debbugs.gnu.org
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: -5.0 (-----)

Ricardo Wurmus <rekado@HIDDEN> skribis:

> A person who does not use paredit can easily create a source file that
> does not have matching parentheses.  Loading a broken file currently
> produces an error like this:
>
> $ guile -e '(hello'
> ERROR: In procedure read:
> ERROR: In procedure scm_i_lreadparen: #<unknown port>:1:7: end of file
>
> For new users it is not obvious that this error message means that a
> closing parenthesis is missing.
>
> Can the message be improved?

In Guix I worked around this with:

  https://git.savannah.gnu.org/cgit/guix.git/commit/?id=3Da6e22d84450450cac=
c6fc36445f6ae378a5b7ad0

A bit of a hack, but it looks better:

  configuration.scm:135:1: missing closing parenthesis

In Guile proper, we could replace =E2=80=9Cend of file=E2=80=9D with =E2=80=
=9Cmissing closing
parenthesis=E2=80=9D, which would already be an improvement, though we=E2=
=80=99d still
see that =E2=80=9Cscm_i_lreadparen=E2=80=9D and maybe =E2=80=9Cice-9=E2=80=
=9D here and there.

Ludo=E2=80=99.




Information forwarded to bug-guile@HIDDEN:
bug#28295; Package guile. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 30 Aug 2017 14:11:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 30 10:11:10 2017
Received: from localhost ([127.0.0.1]:34567 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dn3i1-0007ph-TK
	for submit <at> debbugs.gnu.org; Wed, 30 Aug 2017 10:11:10 -0400
Received: from eggs.gnu.org ([208.118.235.92]:49709)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rekado@HIDDEN>) id 1dn3hz-0007pU-O3
 for submit <at> debbugs.gnu.org; Wed, 30 Aug 2017 10:11:08 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rekado@HIDDEN>) id 1dn3hp-0002t8-1e
 for submit <at> debbugs.gnu.org; Wed, 30 Aug 2017 10:11:02 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:45264)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <rekado@HIDDEN>) id 1dn3ho-0002st-Ub
 for submit <at> debbugs.gnu.org; Wed, 30 Aug 2017 10:10:56 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:40577)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <rekado@HIDDEN>) id 1dn3hk-0007Mu-Oi
 for bug-guile@HIDDEN; Wed, 30 Aug 2017 10:10:56 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rekado@HIDDEN>) id 1dn3hb-0002mN-37
 for bug-guile@HIDDEN; Wed, 30 Aug 2017 10:10:52 -0400
Received: from sender-of-o51.zoho.com ([135.84.80.216]:21007)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <rekado@HIDDEN>) id 1dn3ha-0002mF-RW
 for bug-guile@HIDDEN; Wed, 30 Aug 2017 10:10:42 -0400
Received: from localhost (141.80.246.32 [141.80.246.32]) by mx.zohomail.com
 with SMTPS id 1504102238338452.8189719504967;
 Wed, 30 Aug 2017 07:10:38 -0700 (PDT)
User-agent: mu4e 0.9.18; emacs 25.2.1
From: Ricardo Wurmus <rekado@HIDDEN>
To: bug-guile@HIDDEN
Subject: better error messages: missing closing parenthesis
X-URL: https://elephly.net
X-PGP-Key: https://elephly.net/rekado.pubkey
X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
Date: Wed, 30 Aug 2017 16:10:35 +0200
Message-ID: <87o9qxf8o4.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-ZohoMailClient: External
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
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: -4.0 (----)

A person who does not use paredit can easily create a source file that
does not have matching parentheses.  Loading a broken file currently
produces an error like this:

--8<---------------cut here---------------start------------->8---
$ guile -e '(hello'
ERROR: In procedure read:
ERROR: In procedure scm_i_lreadparen: #<unknown port>:1:7: end of file
--8<---------------cut here---------------end--------------->8---

For new users it is not obvious that this error message means that a
closing parenthesis is missing.

Can the message be improved?

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net





Acknowledgement sent to Ricardo Wurmus <rekado@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guile@HIDDEN. Full text available.
Report forwarded to bug-guile@HIDDEN:
bug#28295; Package guile. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.