GNU bug report logs - #30600
repl metacommands do not discard remaining input after syntax error in an expression

Previous Next

Package: guile;

Reported by: dikbekulo <at> airmail.cc

Date: Sun, 25 Feb 2018 00:51:01 UTC

Severity: normal

Tags: patch

Done: lloda <lloda <at> sarc.name>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 30600 in the body.
You can then email your comments to 30600 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#30600; Package guile. (Sun, 25 Feb 2018 00:51:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to dikbekulo <at> airmail.cc:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Sun, 25 Feb 2018 00:51:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: dikbekulo <at> airmail.cc
To: bug-guile <at> gnu.org
Subject: repl metacommands do not discard remaining input after syntax error
 in an expression
Date: Sun, 25 Feb 2018 00:31:19 +0100
Hello!

When using meta-commands in the repl (without readline support), if 
reading an expression parameter fails, the rest of the input gets read 
in anyway. An example interaction:

--8<---------------cut here---------------start------------->8---
GNU Guile 2.2.3
Copyright (C) 1995-2017 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guile-user)> ,trace "\m"
Throw to key `read-error' while reading argument `form' of command 
`trace':
In procedure scm_lreadr: #<unknown port>:1:11: illegal character in 
escape sequence: #\m
"
$1 = "\n"
scheme@(guile-user)> ,trace "\m123
Throw to key `read-error' while reading argument `form' of command 
`trace':
In procedure scm_lreadr: #<unknown port>:2:11: illegal character in 
escape sequence: #\m
$2 = 123
--8<---------------cut here---------------end--------------->8---

Since Geiser uses meta-commands with multi-line expressions to 
communicate with Guile it can get very confusing if you have syntax 
errors in your code.




Information forwarded to bug-guile <at> gnu.org:
bug#30600; Package guile. (Tue, 18 May 2021 16:20:02 GMT) Full text and rfc822 format available.

Message #8 received at 30600 <at> debbugs.gnu.org (full text, mbox):

From: Taylan Kammer <taylan.kammer <at> gmail.com>
To: 30600 <at> debbugs.gnu.org
Subject: repl metacommands do not discard remaining input after syntax error
 in an expression
Date: Tue, 18 May 2021 18:19:30 +0200
[Message part 1 (text/plain, inline)]
Attached is a small patch to fix this.

-- 
Taylan
[0001-Better-REPL-behavior-on-syntax-errors-in-meta-comman.patch (text/plain, attachment)]

Added tag(s) patch. Request was from Taylan Kammer <taylan.kammer <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 18 May 2021 16:20:02 GMT) Full text and rfc822 format available.

Reply sent to lloda <lloda <at> sarc.name>:
You have taken responsibility. (Fri, 25 Oct 2024 18:21:02 GMT) Full text and rfc822 format available.

Notification sent to dikbekulo <at> airmail.cc:
bug acknowledged by developer. (Fri, 25 Oct 2024 18:21:02 GMT) Full text and rfc822 format available.

Message #15 received at 30600-done <at> debbugs.gnu.org (full text, mbox):

From: lloda <lloda <at> sarc.name>
To: 30600-done <at> debbugs.gnu.org
Subject: re:  repl metacommands do not discard remaining input after syntax
 error in an expression
Date: Fri, 25 Oct 2024 20:19:59 +0200
Applied in 242e8698c2fdfada96a136abde5156bac3dbc6c9. 

Thanks

  lloda




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 23 Nov 2024 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 166 days ago.

Previous Next


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