-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add `lines()` util to preserve trailing lines * Draft `handle_input()` * WIP handling for pending line in `read_console()` * Fix output of intermediate expressions * Make detection of prompt types more robust * Rework `lines()` to return an iterator * Flesh out safety bullet * Clean up `buffer_overflow_call()` * Remove comment * Update comment about incomplete input handling * Throw an R error if we see incomplete user inputs Should only happen in Jupyter Notebooks. Positron should always check for complete inputs before sending them through. * Add a note about input replies and incomplete results * Add more comments about input handling * Return error from `check_console_input()` * Document the ReadConsole state machine * Panic when an incomplete prompt is detected in `ReadConsole` * Document current issue with large input errors * Tweak tests * Set `R_CLI_HIDE_CURSOR` after all * Return an `amalthea::Result<()>` from `on_console_input()` Allowing us to manually throw an R error from the POD site * We are happy with this being an error * Update some documentation * Clean up long single line test * Add basic stdin test, and stdin buffer overflow test * Turn off stack limit on Windows too And add tests that its actually off during harp/ark `r_task()` tests and frontend integration tests * Collect IOPub Stream messages in batches * Correct ordering in `report_error!` * Group structs and impls together * Also test for prefix stream * Mention fix in changelog * Add tests for incompete inputs and browser prompts * Improve readline prompt detection in browser sessions posit-dev/positron#4742 * Add test for errors in browser * Update comments * Add test for readline in browser sessions * Move `r_task()` initialization after R was set up --------- Co-authored-by: Lionel Henry <lionel.hry@proton.me> Co-authored-by: Davis Vaughan <davis@posit.co>
- Loading branch information
1 parent
0a06ddf
commit 3663460
Showing
15 changed files
with
858 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.