-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
dart analytics hangs when there's no internet in wsl2 #45235
Comments
@sigurdm is it possible to add a timeout or network check when executing analytics code? What about pub? |
Hmm - it should time out: https://github.com/dart-lang/sdk/blob/master/pkg/dartdev/lib/dartdev.dart#L254 . I wonder what goes wrong. @jonasfj any ideas? |
hmm, if we're not cancelling the TCP connections, and we're not doing a force If this is indeed the case, then maybe HttpClient.close(force: true) will fix the issue. |
New commits: ``` > git log --format="%C(auto) %h %s" 6c64d9e7b6b3758d06d030efcb5afe20bfc04dde..HEAD 5b7317b Force close the http-client on IOAnalytics.close() (#155) 21e6d3c publishing a null safe stable release (#153) ``` Bug: #45235 Change-Id: I47d6119cdeb8210db2207a9247a5f38e0c1841dd Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/192686 Reviewed-by: Jonas Jensen <jonasfj@google.com> Reviewed-by: Devon Carew <devoncarew@google.com> Commit-Queue: Sigurd Meldgaard <sigurdm@google.com>
This should be fixed in the sdk master as of: https://dart-review.googlesource.com/c/sdk/+/192686 |
What I did
ipconfig /release
.dart
,dart pub outdated
,dart pub upgrade
.Expected behavior
Normal behavior (help output) or at least error message.
Actual behavior
No output, command does not finish.
Additional context
After I executed
dart --disable-analytics
,dart
command exited normally.The text was updated successfully, but these errors were encountered: