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
Flutter Hot Reload and Hot Restart disappeared in VSCode on Flutter master branch #1859
Comments
Do you see any output in the Debug Console like "Reloaded x of y libraries"? Can you capture a log by running the Dart: Capture Logs command from the command palette, then run your app and try a few edits/saves, then click Stop Logging on the log notification (which may have collapsed into the bell icon in the status) bar and attach the log?
This could happen if we didn't detect any Flutter projects in your folder. Is the Flutter project within the top 3 levels of folders in your workspace? It could also be caused if the extension fails to activate (though probably you'd notice a lot more broken if that's the case) - you can check that by opening the developer tools (Help -> Toggle Developer Tools) and checking the console. Could you also confirm your version of the Dart extension and the Flutter extension? Thanks! |
|
Thanks! It looks like the Hot Reload service ( @bkonyi I would expect to be fixed by flutter/flutter#35765, but I can repro this on current |
@pczn0327 as an immediate workaround, if you're able to switch to the Flutter |
Thanks for the help @DanTup! I look forward for v3.3.0! |
Ok, I figured out what this is. The name of the stream changed in the VM but I haven't published an updated VS Code extension to handle it, so the current live version fails to subscribe, and therefore never sees the service registered. It's fixed in latest code, so if you're desperate to use |
I've published a patch as v3.2.1 that contains this fix. |
My issue was that I had a release apk installed on the device, and was installing debug apk. So Hot Reload option was not being shown and vs code was stuck on assemble debug. |
Few issues found here:
Flutter doctor:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.8.2-pre.33, on Mac OS X 10.14.5 18F132, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 10.2.1)
[✓] iOS tools - develop for iOS devices
[✓] Chrome - develop for the web
[✓] Android Studio (version 3.4)
[✓] VS Code (version 1.36.1)
[✓] Connected device (3 available)
The text was updated successfully, but these errors were encountered: