-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
build_runner only works the first time for each output_file_name #90
Comments
I just tried it without |
Hi, Actually, My recommendation is: |
@Tienisto this behavior should be mentioned in the docs or in FAQ at least, because the newcomers might wonder why build_runner does not output anything or why build_runner fails to generate files |
I am observing the same issue. The expected behavior, particular when using |
Describe the bug
When I run
flutter pub run build_runner build --delete-conflicting-outputs
with the followingbuild.yaml
the first time it generates the correcttranslations.g.dart
file. But when I run the command a second time it generates nothing (if you delete the file you won't get a new one). If I change theoutput_file
to something else it works again for one time and breaks again afterwards.For the same reason
flutter pub run build_runner watch --delete-conflicting-outputs
also doesn't work for me.Expected behavior
The file should be regenerated each time the command is run.
Additional context
Additional question
Why is the
--delete-conflicting-outputs
needed in the first place? Libs likeauto_route
andjson_serializable
don't seem to need the flag to work.The text was updated successfully, but these errors were encountered: