Skip to content
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

[flutter_tools] Lazily inject logger into web devices #55961

Merged
merged 3 commits into from Apr 29, 2020

Conversation

jonahwilliams
Copy link
Member

Description

Constructing the WebDevices with the global logger too early will lead to them grabbing the StdoutLogger when running in daemon mode. This prevents IDEs from seeing the correct debug message.

Dart-Code/Dart-Code#2407 (comment)

@fluttergithubbot fluttergithubbot added the tool Affects the "flutter" command-line tool. See also t: labels. label Apr 29, 2020
Copy link
Contributor

@DanTup DanTup left a comment

Choose a reason for hiding this comment

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

LGTM, events coming through with this. Thanks!

[4:56:09 PM] [FlutterRun] [Info] [Flutter App] <== [{"event":"app.progress","params":{"appId":"97e3792b-1fe1-458b-b562-4892b32ef662","id":"0","progressId":null,"finished":true}}]
[4:56:09 PM] [FlutterRun] [Info] [Flutter App] <== Waiting for connection from Dart debug extension at http://localhost:49408
[4:56:09 PM] [FlutterRun] [Info] [Flutter App] <== [{"event":"app.webLaunchUrl","params":{"url":"http://localhost:49408","launched":false}}]

@DanTup
Copy link
Contributor

DanTup commented Apr 29, 2020

Cirrus is less happy though 🙃

@jonahwilliams jonahwilliams merged commit 72397fd into flutter:master Apr 29, 2020
@jonahwilliams jonahwilliams deleted the make_lazy branch April 29, 2020 18:35
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants