{"action":"opened","issue":{"url":"https://api.github.com/repos/flutter/flutter/issues/18165","repository_url":"https://api.github.com/repos/flutter/flutter","labels_url":"https://api.github.com/repos/flutter/flutter/issues/18165/labels{/name}","comments_url":"https://api.github.com/repos/flutter/flutter/issues/18165/comments","events_url":"https://api.github.com/repos/flutter/flutter/issues/18165/events","html_url":"https://github.com/flutter/flutter/issues/18165","id":329113561,"node_id":"MDU6SXNzdWUzMjkxMTM1NjE=","number":18165,"title":"Allow running `flutter daemon` without \"pretty\" download output","user":{"login":"DanTup","id":1078012,"node_id":"MDQ6VXNlcjEwNzgwMTI=","avatar_url":"https://avatars2.githubusercontent.com/u/1078012?v=4","gravatar_id":"","url":"https://api.github.com/users/DanTup","html_url":"https://github.com/DanTup","followers_url":"https://api.github.com/users/DanTup/followers","following_url":"https://api.github.com/users/DanTup/following{/other_user}","gists_url":"https://api.github.com/users/DanTup/gists{/gist_id}","starred_url":"https://api.github.com/users/DanTup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanTup/subscriptions","organizations_url":"https://api.github.com/users/DanTup/orgs","repos_url":"https://api.github.com/users/DanTup/repos","events_url":"https://api.github.com/users/DanTup/events{/privacy}","received_events_url":"https://api.github.com/users/DanTup/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-04T15:48:15Z","updated_at":"2018-06-04T15:48:15Z","closed_at":null,"author_association":"MEMBER","body":"`flutter daemon` is designed as an API, but it's output can look like this if the user has just switched branch:\r\n\r\n```\r\n[16:43:31]: Spawning /Users/dantup/Dev/Google/flutter/bin/flutter with args [\"daemon\"]\r\n[16:43:31]: ..  in /Users/dantup/Dev/Google/flutter\r\n[16:43:31]: ==> [{\"id\":\"1\",\"method\":\"device.enable\"}]\r\n[16:43:31]: <== Downloading Dart SDK from Flutter engine 6cef519598c09039fc951eca6998b437a7137dec...\r\n[16:43:31]: <== % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n[16:43:31]: <== Dload  Upload   Total   Spent    Left  Speed\r\n[16:43:42]: <== 0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\r\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\r\n  3 62.8M    3 2302k    0     0  2179k      0  0:00:29  0:00:01  0:00:28 2178k\r\n 13 62.8M   13 8766k    0     0  4270k      0  0:00:15  0:00:02  0:00:13 4270k\r\n 23 62.8M   23 14.7M    0     0  4941k      0  0:00:13  0:00:03  0:00:10 4939k\r\n 34 62.8M   34 21.3M    0     0  5395k      0  0:00:11  0:00:04  0:00:07 5394k\r\n 44 62.8M   44 28.1M    0     0  5703k      0  0:00:11  0:00:05  0:00:06 5769k\r\n 54 62.8M   54 34.5M    0     0  5838k      0  0:00:11  0:00:06  0:00:05 6610k\r\n 64 62.8M   64 40.6M    0     0  5906k      0  0:00:10  0:00:07  0:00:03 6579k\r\n 75 62.8M   75 47.7M    0     0  6062k      0  0:00:10  0:00:08  0:00:02 6747k\r\n 87 62.8M   87 55.0M    0     0  6227k      0  0:00:10  0:00:09  0:00:01 6901k\r\n 98 62.8M   98 62.0M    0     0  6318k      0  0:00:10  0:00:10 --:--:-- 6940k\r\n100 62.8M  100 62.8M    0     0  6188k      0  0:00:10  0:00:10 --:--:-- 6678k\r\n[16:43:44]: <== Building flutter tool...\r\n[16:43:55]: <== Downloading Material fonts...\r\n[16:44:47]: <== Starting device daemon...\r\n[16:44:47]: <== [{\"event\":\"daemon.connected\",\"params\":{\"version\":\"0.3.0\",\"pid\":2865}}]\r\n[16:44:48]: <== [{\"id\":\"1\"}]\r\n```\r\n\r\nPreviously I was just ignoring all the output that wasn't wrapped in brackets; however it's confusing to a user if they open the editor and things are just subtly broken because flutter is downloading an SDK in the background. My plan was to show any string that came before the first `[{ real message }]` in a progress notification; however it gets messed up by the download progress.\r\n\r\nWhen running `flutter daemon` or `flutter run --machine` I think this progress should be suppressed (as far as I can tell, there's no switch to do this).\r\n"}}
{"actor":{"display_login":"DanTup"}}