-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[native assets] Should surface stdout/stderr from build.dart #53732
Comments
@mit-mit I believe I hid the logs on your request in the Dart SDK. 😄 |
My feedback was focused on the consumption use-case where it sounds like @craiglabenz agrees we should not show it. Could we support seeing the output during development with a CLI flag or something like that? |
Even for end users who are not debugging their own build hooks, we should definitely show some kind of progress update IMO. If a user imports a package with a build or link hook invoking expensive operations, such as compiling a large native library from scratch, running Some possible options off the top of my head: 1: Show no progress (current situation)
2: Show
|
I fear 3 and 4 might be too spammy. Maybe we can do 2 in a similar style to If we want to make it less spammy we can show it only after 5 seconds. And I believe we should do it in conjunction with dart-lang/native#97:
|
I suggest 2) in the standard mode, and 3) when |
If we want to align with Flutter |
When using the new native assets feature (#50565 and flutter/flutter#129757), the code that invokes
build.dart
seems to be burying its stdout and stderr.I think it makes sense that end developers will not want to be bothered by log statements from these build steps, but seeing output / logging statements is important when writing or debugging build.dart.
I'm not sure how to differentiate between these two scenarios, but an escape hatch for
build.dart
authors would be a significant DX improvement.cc @dcharkes @mit-mit
The text was updated successfully, but these errors were encountered: