Summary
repl should consume remaining input on error
Metadata
- Id: a71386f38b61fce46e4a6211108f9d2f32430d59
- Trac id:
- Type: defect
- Reporter: felix
- Owner:
- Cc:
- Status: new
- Component: core libraries
- Estimated difficulty: medium
- Resolution:
- Priority: minor
- Milestone:
- Version: 6.0.0
- Changetime: 2026-07-10 23:00:48 UTC
- Created: 2026-07-10 23:00:48 UTC
- Keywords:
Description
In the REPL, remaing input after a read error is still read and parsed which can result in annoying "hangs", when for example another double quote follows - in that case a new string is read but no closing quotes yet encountered.
On an error, all remaining input should be consumed and discarded, if the input is from a terminal.