You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When developing a new Builder, if the chosen build_extensions fall outside of defaultRootPackageSources, the builder does not run. Even when stepping through the build process in the debugger, it is not easy to see why. In this situation, it would be helpful to the new Builder developer to emit some kind of warning so it is not a silent failure, perhaps in --verbose mode. Adding some discussion of defaultRootPackageSources to the documentation and examples would help as well.
dart --version Dart SDK version: 2.19.0-edge.a547cfc0969ea9baca14529670dd553ad810131c (be) (Mon Aug 15 16:13:46 2022 +0000) on "macos_x64"
build 2.3.0, build_runner 2.2.0
I encountered this while writing a simple builder that input a configuration file in the project root and emitted dart code for those configuration values into lib/
The text was updated successfully, but these errors were encountered:
Sorry for the extremely late reply here, this issue was missed at the time it was filed it seems.
I am not sure exactly what action to take beyond documentation here, we don't look at all at files outside the listed ones (these could be huge trees of hidden files etc, its just not worth doing).
I could see adding some documentation, do you have a suggestion for where or what that should look like?
It's been a while, but I think my issue was something like making a stupid simple configuration with somethign like build_extensions: {".txt": [".txt.copy"]} and then putting a '.txt' file in the project root, and having nothing happen but also no errors.
When developing a new Builder, if the chosen
build_extensions
fall outside ofdefaultRootPackageSources
, the builder does not run. Even when stepping through the build process in the debugger, it is not easy to see why. In this situation, it would be helpful to the new Builder developer to emit some kind of warning so it is not a silent failure, perhaps in--verbose
mode. Adding some discussion ofdefaultRootPackageSources
to the documentation and examples would help as well.dart --version Dart SDK version: 2.19.0-edge.a547cfc0969ea9baca14529670dd553ad810131c (be) (Mon Aug 15 16:13:46 2022 +0000) on "macos_x64"
The text was updated successfully, but these errors were encountered: