-
Notifications
You must be signed in to change notification settings - Fork 330
Recognize \r as newlines from flutter #4633
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
Conversation
| @Test | ||
| public void jsonWithLineBreaks() { | ||
| final StdoutJsonParser parser = new StdoutJsonParser(); | ||
| parser.appendOutput("[{'foo':'bar'}]\ntest\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
somewhat minor: do we have to worry about \r or \n in the middle of a json block? I don't know off the top of my head how the dart json encoder deals with them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems this is dealt with fine, I tried putting \r, \n and \r\n in the middle of flutter tools output and it's recognized correctly.
jacob314
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
@helin24 thanks for the ping! Dart-Code did have a similar bug (if the Flutter startup lock was held by another process, it'd fail to read the |

Verify that opening workbench, opening project(s), quitting, then re-opening workbench consistently results in re-opened projects having device options.
Fixes #3892