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
Would be nice if flutter run
only downloaded the necessary artifacts
#6491
Comments
We've had a couple complaints about downloads being slow or not resuming well from users in china who have network issues. Unclear if this specific bug would help them though. |
Faced same issue when decided to do some coding in airport while waiting for the flight. Had to restart downloading couple of times, downloads were failing. As an idea (except limitation of needed resources) - may be download in parallel? Sometimes on bad connections that helps. |
I just had this with |
The flutter-intellij plugin has considered even working around this issue themselves: flutter/flutter-intellij#730 |
Hard to work on flutter tools too on slow networks. Each dev cycle involves changing some code of the tools, clear the tool's snapshot but building the new flutter tools is a network dependent operation which can take a while. |
I'm confused. Rebuilding the flutter_tools snapshot shouldn't involve the network. Only downloading the engine artifacts should? |
This would also solve the issue where "flutter upgrade" fails because you're on a version that is unable to download all the artifacts for whatever reason (e.g. we failed to upload them). |
This is somewhat blocked by the tree status, but is also related to how Gradle and XCode use artifacts. Currently they require everything up front, which we need to change eventually to make this work. |
We've made good progress on this. All new artifacts (macOS, Linux, Windows, Web, and Fuchsia) are lazy by default. There are still a few places in the tools where we end up downloading all of Android and iOS. |
For additional context from #64446 (which I am de-duping into this bug). There are some remaining cases where we eagerly download artifacts for devices that are connected but that we do not intend to use - this has mostly come up with the non-ephemeral devices. A reasonable fix would be to defer additional artifact downloading until after we have selected a device. |
+1 I still run into this on scenarios like downloading ios-release tools when I |
That one is slightly separate, we download all of the bundles (debug/profile/release) all at once because splitting them up ended up breaking too many integration tests (at the time). it might be easier now that the build systems have been cleaned up |
A possible related issue #64822 (Cache the SDK on switching channel). |
I was on a train with bad wifi. It was painful.
I was trying to run the gallery on an iOS Simulator.
FYI @danrubel
The text was updated successfully, but these errors were encountered: