Builder is not works any more
sm2017 opened this issue · 2 comments
sm2017 commented
Describe the issue
@numen31337 I used your awesome library for a long time. Today when I run flutter pub run build_runner build --delete-conflicting-outputs
the .g.dart
files deleted and not generated, there is no error is console
Console output
[INFO] Generating build script...
[INFO] Generating build script completed, took 403ms
[WARNING] Deleted previous snapshot due to missing asset graph.
[INFO] Creating build script snapshot......
[INFO] Creating build script snapshot... completed, took 11.6s
[INFO] Initializing inputs
[INFO] Building new asset graph...
[INFO] Building new asset graph completed, took 868ms
[INFO] Checking for unexpected pre-existing outputs....
[INFO] Deleting 17 declared outputs which already existed on disk.
[INFO] Checking for unexpected pre-existing outputs. completed, took 4ms
[INFO] Running build...
[INFO] Generating SDK summary...
[INFO] 3.9s elapsed, 0/16 actions completed.
[INFO] Generating SDK summary completed, took 3.9s
[INFO] 4.9s elapsed, 50/66 actions completed.
[INFO] 6.0s elapsed, 56/72 actions completed.
[INFO] 7.0s elapsed, 68/84 actions completed.
[INFO] 8.0s elapsed, 79/90 actions completed.
[INFO] 15.1s elapsed, 270/277 actions completed.
[INFO] 16.2s elapsed, 504/515 actions completed.
[INFO] Running build completed, took 16.4s
[INFO] Caching finalized dependency graph...
[INFO] Caching finalized dependency graph completed, took 113ms
[INFO] Succeeded after 16.5s with 22 outputs (565 actions)
Environment details
Paste the flutter environment detail.
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 1.22.5, on Microsoft Windows [Version 10.0.18363.1256], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[!] Android Studio (version 4.1.0)
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
[√] Connected device (1 available)
! Doctor found issues in 1 category.
flutter --version
Flutter 1.22.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 7891006299 (6 days ago) • 2020-12-10 11:54:40 -0800
Engine • revision ae90085a84
Tools • Dart 2.10.4
Paste the package version.
dependencies:
copy_with_extension: 1.4.0
dev_dependencies:
copy_with_extension_gen: 1.4.0
To Reproduce
Steps to reproduce the behaviour:
I really don't know how your can reproduce it
Expected behaviour
.g.dart
files must be generated like before
sm2017 commented
@numen31337 here is the verbose output
flutter pub run build_runner build --verbose
flutter pub run build_runner build --verbose
[ +117 ms] executing: [C:\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +71 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +1 ms] 78910062997c3a836feee883712c241a5fd22983
[ +1 ms] executing: [C:\flutter/] git tag --points-at HEAD
[ +64 ms] Exit code 0 from: git tag --points-at HEAD
[ ] 1.22.5
[ +8 ms] executing: [C:\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +48 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/stable
[ ] executing: [C:\flutter/] git ls-remote --get-url origin
[ +42 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +72 ms] executing: [C:\flutter/] git rev-parse --abbrev-ref HEAD
[ +33 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ +1 ms] stable
[ +48 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +19 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[ ] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[ ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +1 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[ +24 ms] Using C:\flutter\.pub-cache for the pub cache.
[ +1 ms] executing: C:\flutter\bin\cache\dart-sdk\bin\pub.bat run build_runner build --verbose
[INFO] Generating build script...
[INFO] Generating build script completed, took 400ms
[INFO] BuildDefinition:Initializing inputs
[INFO] BuildDefinition:Reading cached asset graph...
[INFO] BuildDefinition:Reading cached asset graph completed, took 92ms
[INFO] BuildDefinition:Checking for updates since last build...
[INFO] BuildDefinition:Checking for updates since last build completed, took 752ms
[INFO] Build:Running build...
[INFO] Build:Running build completed, took 50ms
[INFO] Build:Caching finalized dependency graph...
[INFO] Build:Caching finalized dependency graph completed, took 56ms
[INFO] Build:Succeeded after 115ms with 0 outputs (0 actions)
[+3905 ms] "flutter run" took 3,983ms.
[ +258 ms] ensureAnalyticsSent: 253ms
[ +7 ms] Running shutdown hooks
[ +3 ms] Shutdown hooks complete
[ +3 ms] exiting with code 0
sm2017 commented
It fixed by upgrading build_runner