Skip to content

Conversation

@helin24
Copy link
Member

@helin24 helin24 commented Jun 17, 2020

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

Fixes #3892

@helin24 helin24 requested a review from jacob314 June 17, 2020 20:47
@Test
public void jsonWithLineBreaks() {
final StdoutJsonParser parser = new StdoutJsonParser();
parser.appendOutput("[{'foo':'bar'}]\ntest\n");
Copy link
Contributor

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.

Copy link
Member Author

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.

Copy link
Contributor

@jacob314 jacob314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@DanTup
Copy link
Contributor

DanTup commented Jun 24, 2020

@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 daemon.connected event, and therefore never enable device polling).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Android Studio device list shows "loading" and no devices connected

4 participants