-
Notifications
You must be signed in to change notification settings - Fork 51
Don't let analytics block dart
commands
#216
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
Comments
@Levi-Lesches does the process hang indefinitely or does it eventually finish? @parlough was this fixed with your recent change in Gerrit or is this unrelated? |
Sorry, I read this notification and then forgot to respond... but I did have to set up another device without internet the other day, and this still happens on Dart stable 3.2.6. The process hangs indefinitely, and disabling analytics does stop it from happening again. |
What command are you running that is causing it to hang when you aren't connected to the internet? I am try to setup a repro on my end. Can you also provide the output from
|
@bkonyi, did you ever see the process hang indefinitely or just for a few seconds when you made your fix in https://dart-review.googlesource.com/c/sdk/+/339500 |
It wasn't my fix :-) However, we did have similar issues with the legacy analytics that was resolved by https://dart-review.googlesource.com/c/sdk/+/294940. Maybe we need to do something similar? |
whoops my mistake @bkonyi, @parlough does this look familiar to you?
And we did implement something similar to this, except we hard coded the default timeout to be 250ms when we invoke the |
That change did fix a few of the (non-indefinite hanging) issues I was seeing, but I'm not sure about the situation where the connection itself is unstable or hanging. Neither that change nor the one from #184 are in the 3.2 stable branch though, so I think it'd be worth seeing if this reproduces on 3.3? @Levi-Lesches would you be able to try with a 3.3 beta build or revisit this once a stable release is made? |
When I set up my next Raspberry Pi I will give 3.3 a quick shot to check 👍 |
When on an unreliable internet connection, or a W/LAN network without actual Internet access (such that internet access hangs but doesn't outright fail), Dart's analytics can block any command, like
dart run
,dart compile
, ordart analyze
from running. Runningdart --disable-analytics
fixes the problem, but without knowing the cause ahead of time, it's difficult to know what the issue is or how to fix it.The text was updated successfully, but these errors were encountered: