Repository navigation
Show more detailed Flutter build progress #4938
Description
Activity
- addedis enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.An enhancement or improvement that should be listed in release notes but is not a bug fix.
on Jan 14, 2024 Not currently on Mac, but it seems like we might have a bug here with some progress not showing up. If I run
flutter run --machine -d windowsIn the output I see some output like:
[{"event":"app.progress","params":{"appId":"a559c391-9f0b-4e8a-9bf4-fe6e70cd85ca","id":"0","progressId":null,"message":"Building Windows application...","finished":false}}] [{"event":"app.progress","params":{"appId":"a559c391-9f0b-4e8a-9bf4-fe6e70cd85ca","id":"0","progressId":null,"finished":true}}]I suspect the same might be true on Mac. However, this output does not seem to show up in either the notification toast or the Debug Console. First job is fixing that. If it's still not enough progress, we might need changes in Flutter to report more detailed progress.
- addedin flutterRelates to running Flutter appsRelates to running Flutter appsin debuggingRelates to the debug adapter or process of running debug sessionsRelates to the debug adapter or process of running debug sessions
on Jan 15, 2024 - changed the title
[-]Show Xcode Build Progress[/-][+]Show more detailed Flutter build progress[/+]on Jan 15, 2024 Where would this show up?
Would it be in the Debug Console (preferably), or only in the terminal?
When this issue is fixed, the output should be visible in the Debug Console (and possibly the toast notification during builds).
I was using the terminal with the
--machineflag to see what output thefluttertool is producing (since the IDE support is essentially usingflutter run --machine). It turns out Flutter is producing more output than we are showing in VS Code (in the Debug Console/toasts) so we should wire this up better so it's visible.Would this work if you used the
Run and Debugbutton in VSCode instead of the command-line?
I'm usingRun and Debug, and use the Debug Console instead of the Terminal.Yes, that's exactly the case that needs fixing :)
I was only using the terminal as a way for testing the output - the bug here (and the fix) is unrelated to the terminal. The debugger (when you click Run or Debug) internally runs
flutter run --machineso it's a good way to verify what output we should be getting. In this case, there are someapp.progressevents that are not being handled (they should be parsed by the debugger and then written to the Debug Console).Reacted by crkitYes, that's exactly the case that needs fixing :)
Got it, thanks for the clarification ;)
- added a commit that references this issue
on Jan 30, 2024 Turns out we weren't forwarding these events from the debug adapter to the client so the fix is actually in Flutter. I've opened flutter/flutter#142524 and once merged the fix will ship in a future Flutter SDK release.
Turns out we weren't forwarding these events from the debug adapter to the client so the fix is actually in Flutter. I've opened flutter/flutter#142524 and once merged the fix will ship in a future Flutter SDK release.
Okay, thanks
- added a commit that references this issue
on Feb 15, 2024 Yay 😃 !
- addedrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become availableSomething that requires changes in the Dart/Flutter SDK to ship before it will become available
on Feb 22, 2024
The Issue
Currently, you are only told when an application has finished building.
Describe the solution you'd like
It would be much more useful to see the current build progress (like in Xcode).
Additional context
Ideally, this should also show the build phase, and the current completion (e.g.
Building: 73% - 27 / 37)