Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail fast in REPL when parse is irrecoverable #305

Merged
merged 3 commits into from
Feb 18, 2024

Conversation

jeff5
Copy link
Member

@jeff5 jeff5 commented Feb 13, 2024

This change allows a ParseException to be identified as not recoverable, avoiding further input in the REPL. Previously certain syntax errors would cause the REPL to prompt "... " endlessly. Fixes #302.

This change allows a ParseException to be identified as not recoverable,
avoiding further input in the REPL. Previously certain syntax errors
would cause the REPL to prompt "... " endlessly. Fixes jython#302.
@jeff5 jeff5 marked this pull request as draft February 13, 2024 18:11
@jeff5 jeff5 marked this pull request as ready for review February 16, 2024 23:03
@jeff5 jeff5 added this to the Jython 2.7.4 milestone Feb 18, 2024
@jeff5 jeff5 merged commit 9e30624 into jython:master Feb 18, 2024
8 checks passed
@jeff5 jeff5 deleted the fix302-lost-syntax-error branch February 18, 2024 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Interactive interpreter awaits input instead of raising syntax error
1 participant