Files
sdk/pkg/dartdev/lib
Sam Rawlins 603ed39e49 Throw on crashed analysis_server instead of hanging
Fixes https://github.com/dart-lang/sdk/issues/48413

This fix required detecting an unexpected shut down,and then an
explicit `io.exit()`. Without the exit, the process continued to hang.

Also code in the same function according to Effective Dart.

* https://dart.dev/guides/language/effective-dart/design#dont-redundantly-type-annotate-initialized-local-variables
* https://dart.dev/guides/language/effective-dart/design#avoid-abbreviations

Change-Id: Ifb94394e0a788aa990f5a9c5cd3fb54279827775
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/234660
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2022-03-03 22:42:41 +00:00
..