[Tooling] build_runner watch
shouldn't break when the builder code changes to an invalid code
#3839
mateusfccp
started this conversation in
General
Replies: 1 comment
-
That totally makes sense, filed an issue #3840 and made it a sub-issue of #3824. Thanks :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If you run
build_runner watch
in a project that is consuming a stable build package, likejson_serializable
orfreezed
, if you change your code to something invalid, the process won't break. Instead, it will print the errors it found and will wait for the next code version to try to generate it again.(Sometimes it breaks, but I consider it a bug and it should be addressed elsewhere. The normal expected behavior is for it to not break)
This is not true if you are changing the builder itself. Whenever you are building [sic] a builder, if you change your builder to invalid code (like code with static errors), the tool will print in the stdout that the code has errors and crash.
This hinders the development process, as one has to keep rerunning
build_runner
(eitherbuild
orwatch
) whenever they make any change.Making
build_runner
fault tolerant to changes in the builder itself would streamline the development process.Beta Was this translation helpful? Give feedback.
All reactions