Skip to content
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] returns "Running build completed" without actually completing the build (just throwing a warning) #3546

Closed
iapicca opened this issue Jul 23, 2023 · 1 comment

Comments

@iapicca
Copy link

iapicca commented Jul 23, 2023

running locally flutter pub run build_runner build I'm not encountering any issues,
but running it in github actions I come across this warning (imho should be more than a warning)

maps:
[INFO] Generating build script...
[INFO] Generating build script completed, took 531ms

[INFO] Precompiling build script......
[INFO] Precompiling build script... completed, took 12.5s

[INFO] Initializing inputs
[INFO] Building new asset graph...
[INFO] Building new asset graph completed, took 1.1s

[INFO] Checking for unexpected pre-existing outputs....
[INFO] Checking for unexpected pre-existing outputs. completed, took 1ms

[INFO] Running build...
[INFO] Generating SDK summary...
[INFO] 3.3s elapsed, 0/13 actions completed.
[INFO] 5.8s elapsed, 0/13 actions completed.
[INFO] 7.0s elapsed, 0/13 actions completed.
[INFO] Generating SDK summary completed, took 7.0s

[INFO] 8.2s elapsed, 12/13 actions completed.
[INFO] 9.3s elapsed, 12/13 actions completed.
[INFO] 10.3s elapsed, 12/13 actions completed.
[INFO] 22.5s elapsed, 12/13 actions completed.
Warning:  No actions completed for 15.4s, waiting on:
  - riverpod_generator on lib/src/logic/map_controller.dart

[INFO] Running build completed, took 22.9s

[INFO] Caching finalized dependency graph...
[INFO] Caching finalized dependency graph completed, took 46ms

[INFO] Succeeded after 23.0s with 2 outputs (27 actions)

maps: SUCCESS

that translates in analyze error

Analyzing maps...                                               

  error • Target of URI hasn't been generated: 'package:maps/src/logic/map_controller.g.dart' • lib/src/logic/map_controller.dart:4:6 • uri_has_not_been_generated
  error • Undefined class 'MapControllerRef' • lib/src/logic/map_controller.dart:10:37 • undefined_class

2 issues found. (ran in 8.1s)

I can only assume that build_runner wrongly claimed to have completed the build

info

  • Dart SDK Version: 3.0.6
  • What package(s) from this repo you are using, and the version build_runner: ^2.4.6
  • What builder(s) you are using: riverpod_generator
  • Whether you are using ubuntu:latest in github actions (no issues on local macos)

I'll attach the pubspec, melos (see setup:codegen script) , and workflow files for completeness
bunch of yaml files.zip

riverpod_generator issue:

@iapicca
Copy link
Author

iapicca commented Jul 23, 2023

after some trouble shooting seems that the file is indeed generated and may be the analyzer yelling for no reason, closing the issue for now

@iapicca iapicca closed this as completed Jul 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant