-
Notifications
You must be signed in to change notification settings - Fork 211
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
Webdev build daemon crashes on windows due to removal of pub.dart.snapshot from the SDK #3177
Comments
/cc @natebosch @jakemac53 @sigmundch - I'd appreciate your advice on that, the issue prevents webdev from working on the latest dev SDK, as well as breaks webdev CI |
@annagrin did you have a chance to try just |
@jakemac53 - to clarify, is your suggestion to bypass /cc @bkonyi @sigurdm , in case you have any insights on the issue above. One random idea to try is to see whether disabling the default dartdev cli with
|
|
cc @grouma who I think did all the original investigation here and might remember the details of exactly why we had to use this process mode. |
I think you're right that it was the batch script causing issues with stdio. I also would expect that using |
More discussion in dart-lang/webdev#111 |
Thanks for help, removing Closing this. |
pub.dart.snapshot
was removed from the SDK starting from SDK version2.15.0-49.0.dev
SDK commit: dart-lang/sdk@ae81cd5
Webdev is using
dart pub.dart.snapshot build_runner build
command to make sure we can communicate to the build daemon - see:https://github.com/dart-lang/webdev/blob/a0b8e2b062fa8cfafc3c410259e934322cc4dde6/webdev/lib/src/daemon_client.dart#L19
In particular, the comment:
I tried using
dart pub
ordart dartdev.dart.snapshot pub
instead of the original command, but unfortunately the disjoint cmd still happens and prevents the daemon from communicating to webdev correctly, see test failures on windows in:dart-lang/webdev#1394
Changing the process start mode to
ProcessStartMode.normal
in the code below seems to solve the problem in my experiments (in tests at via VSCode) - is there anything preventing us from changing that?build/build_daemon/lib/client.dart
Line 171 in 2159c90
TL;DR the crash:
Building
The text was updated successfully, but these errors were encountered: