-
-
Notifications
You must be signed in to change notification settings - Fork 170
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Is there an existing issue for this?
- I have searched the existing issues
Version
No response
Command type
build_runner (Default)
What happened?
As discussed on the build_runner
discussions forum here
dart-lang/build#3834 (reply in thread)
if you use flutter_gen_runner
then it causes duplicate output to appear in build_runner
's log output. In the example linked, the two lines immediately after the [FlutterGen]
lines are duplicated.
This is because stdout.write bypasses build_runner
and writes directly to the console, which breaks build_runner
's use of ANSI control codes to rewrite previous lines.
Would it be possible to change it to using print
or log
?
Thanks!
Relevant a pubspec.yaml.
Relevant log output
Compiling the build script.
[FlutterGen] v5.9.0 Loading ...
[FlutterGen] Reading options from pubspec.yaml
61s freezed on 3993 inputs: 4 output, 776 same, 3213 no-op; spent 28s resolving, 23s analyzing, 6s building, 3s sdk
222s json_serializable on 7986 inputs: 3213 skipped, 473 output, 4300 no-op; spent 182s resolving, 31s analyzing, 8s building
61s freezed on 3993 inputs: 4 output, 776 same, 3213 no-op; spent 28s resolving, 23s analyzing, 6s building, 3s sdk
222s json_serializable on 7986 inputs: 3213 skipped, 473 output, 4300 no-op; spent 182s resolving, 31s analyzing, 8s building
0s build_runner_dart_flags on 2 inputs: 2 output
Code of Conduct
- I agree to follow this project's Code of Conduct
pedromassango
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working