Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
Issue report: When parsing sketch theorems using REPL, one could get stuck if the input is too long. Investigation revealed this is related to the TTY buffer limitation (e.g. 1024 characters on MacOS), as discussed here.
The current implementation handle longer inputs by concatenating multiple lines, there's a bug where the newline characters (
\n
) at line endings cause JSON syntax errors.Current Implementation:
Proposed Fix:
This change allows users to break long inputs into multiple lines using line continuation.
Moveover, the File mode has no input length limitation, but ignores the
env
field and runs code in a fresh environment. I've updated theenv
field handling as well.All these proposed changes are backward compatible. Thanks in advance for considering these improvements.