Console: Can't exit a block without writing a statement

Bug #492433 reported by Nick Chadwick
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
IVLE
Triaged
Low
Unassigned

Bug Description

You need to write a statement inside a block before the console lets you
exit the '...' mode.

Syntactically this is correct, but it might have usability concerns.

eg.

if True:
...
...
...
... Let me out!!

Tags: console js ui
Revision history for this message
Nick Chadwick (chadnickbok) wrote :

I have confirmed that this bug still occurs. It makes me sad and I don't know what
I'm doing wrong.

Perhaps we can add some nicer error codes to let newbies know what they've messed up
in a nicer fashion?

Revision history for this message
Nick Chadwick (chadnickbok) wrote :

2008-02-01 15:25
drtomc Says:
Yes - this is one way that the command compiler appears to differ to the
real interpreter loop.

I've had a bit of a look, and I can't see an obvious way to fix this.

2008-02-01 15:34
nobody Says:

Probably not too important, but I think we at least need a 'let me out'
button (post-Alpha). Is there a way to tell the interpreter to just forget
what it has buffered? Or alternatively, just write 'pass' until it stops
asking for more (but we'd have to figure out the indentation level. Grar).

William Grant (wgrant)
tags: added: console javascript ui
William Grant (wgrant)
tags: added: js
removed: javascript
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.