(Flutter) Allow cold boot launch using vs code command #3366
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Describe alternatives you've considered
The text was updated successfully, but these errors were encountered:
I'm not sure I'd like to add an additional prompt (it would be an unnecessary step for the majority of the time), but perhaps we can list the emulator in the device selector twice, once with a "(cold boot)" suffix that would then pass this flag?
We should only show it if the Flutter SDK version supports the flag, and ofc only for android-based emulators.
That would be great!
The code the manages getting emulators etc. is in
@DanTup, I saw that the extension uses the flutter daemon to launch emulators, but I assume that it does not support the cold boot. The flag was added to the command line interface only. Do you think it would cause problems, if we use the command line interface instead of the daemon in case of cold boot selection?
Ah, good spot. It looks like that will first need updating in Flutter to support passing an argument then (and the docs here updating). I don't think switching to the command line is the best idea, we try to stick to structured APIs so that it's easier to return additional information/errors etc. which are much harder to handle from the editor if they're just text designed for users.
@DanTup, I tried to run some tests but for some reason later tests are failing with an error message from vs code: "Build errors exist in your project". It seems like the dart/flutter test projects are broken
Here is the terminal output from the failing tests:
@Hamdor it looks like you might be trying to run the Dart Debug tests, but probably you want to run just the Flutter tests. The best way to do this is selecting the Flutter Tests item in drop-down from the VS Code side bar and then running with F5/the green play button.
You can run individual tests by changing
The specific error stopping the Dart Debug tests from running is that you haven't run "pub get" in the