Repository navigation
optimize handling of console output / errors - #12077
Merged
Merged
Conversation
kevinushey
marked this pull request as draft
September 30, 2022 22:28
Collaborator
Author
|
Unit tests aren't happy with these changes, so will need to investigate. |
kevinushey
force-pushed
the
feature/console-output-newline-count
branch
from
October 1, 2022 01:11
6cfe1d8 to
5b7c79b
Compare
Collaborator
Author
|
Unit tests are happier now. |
kevinushey
marked this pull request as ready for review
October 1, 2022 01:27
4 tasks done
Collaborator
Author
|
I realized while putting this PR together that we're already coalescing With this PR, the following is much more performant: However, the following can still lock up RStudio: but such patterns should hopefully be far less common. |
jeffvroom
approved these changes
Oct 4, 2022
jeffvroom
left a comment
Contributor
There was a problem hiding this comment.
LGTM! This is going to make a big difference!
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Intent
Part of #12059.
Approach
This PR bundles a number of changes that should improve the responsiveness of both the Console pane and the Build pane, in the cases where we're receiving a very large amount of text.
We now bundle output on
stderrin the same way we bundlestdout. This is necessary as R users may produce output onstderrvia themessage()function, so it can become overloaded in the same way thatstdoutmight.We also now truncate output shown in the Build pane. This is especially important for projects that compile C / C++ code, as the Build pane can become overwhelmed by warning output from the compiler.
Just to drive the second point home, this is what I see if I compile the
rstanpackage with-Weverything:Automated Tests
N/A
QA Notes
Test via notes in #12059.
Checklist
NEWS.md