build
build copied to clipboard
Changing build.yaml/pubspec.yaml sometimes causes bad hang w/ serve command
Running pbr serve --delete-conflicting-outputs on pkg "bar"
Using a path dependency to a builder "foo". Change the build.yaml on pkg:foo
get this
pbr serve --delete-conflicting-outputs
[INFO] Generating build script completed, took 286ms
[INFO] Setting up file watchers completed, took 10ms
[INFO] Waiting for all file watchers to be ready completed, took 201ms
[INFO] Reading cached asset graph completed, took 283ms
[INFO] Checking for updates since last build completed, took 719ms
[WARNING] Invalidating asset graph due to build script update!
[INFO] Cleaning up outputs from previous builds. completed, took 184ms
[INFO] Terminating. No further builds will be scheduled
The really annoying this. CTRL-C doesn't work. I have to run ps in another terminal and call kill -TERM pid to get it to exit!
Confirmed that sending kill -SIGINT PID does nothing.
Do you have a way to consistently repro this?
@nshahan has seen this in the past as well but we haven't ever been able to get a consistent repro
I haven't seen this in a while but I also haven't been editing build.yaml lately files either.
Try this – warning, it's weird
- sync https://github.com/dart-lang/sample-pop_pop_win – pub upgrade, pbr serve
- sync https://github.com/kevmoo/preload, update PPW pubspec
dependency_overrideswith a pointer to preload path just synced;pub upgradein PPW directory - Notice that PPW
pbr serveexits – as expected - Re-run
pbr servein PPW – result:
🍏:~/github/sample-pop_pop_win/ (master *)> pbr serve
[INFO] Generating build script completed, took 282ms
[INFO] Setting up file watchers completed, took 9ms
[INFO] Waiting for all file watchers to be ready completed, took 206ms
[INFO] Reading cached asset graph completed, took 277ms
[INFO] Checking for updates since last build completed, took 678ms
[WARNING] Invalidating asset graph due to build script update!
[INFO] Cleaning up outputs from previous builds. completed, took 472ms
[INFO] Terminating. No further builds will be scheduled
And I have to SIGTERM it!
After a SIGTERM, rerunning seems to work fine!