-
Notifications
You must be signed in to change notification settings - Fork 323
Hot reload missing when using new SDK DAPs #4554
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
This appears to only be happening with the SDK DAPs. Setting The log shows that we get the I can't reproduce this, but I can try to make a branch of Flutter stable that just adds some extra debugging to the DAP that might help us track this down. I'll provide instructions on how to switch to it temporarily to capture more information and then switch back once I've done it. In the meantime, I would suggest using |
Sorry for the delay, I didn't get back to this as quickly as I expected. However, it turns out I can reproduce this - I noticed in your log |
@waleedf112 this was in todays release (v3.66.0). Please try removing |
it works now when I removed thank you so much 😀 |
Great - thanks for confirming! |
@DanTup |
@waleedf112 Ah, I missed that. It's possible this is expected when using "Run" (instead of "Debug"), as a lot of the formatting of these errors is done via debugger events that we won't have when there's no debugger. But if you file a new issue with a log (as you did previously) when using the latest version, I'll take a look to confirm. In the legacy DAPs, we would always connect the debugger, whether you used Run or Debug mode... but this wasn't consistent with Dart, and could slow things down a little. Generally I'd recommend using Debug (not Run) to get all of the debugging functionality (and if there are reasons why you don't want to, I'd be interested in understanding those reasons). Thanks! |
@DanTup I've tried to run the app with the debugger attached, it (mostly) fixed the color highlighting but not the clickable links, also the links aren't in their usual white color:
I've set it to run without the debugger for many years, I don't know if this is still the case but running without the debugger is faster (i think). I haven't checked if those issues got solved since then. |
@waleedf112 thanks - could you file a new issue with those screenshots and log?
Yes, it's definitely faster. But it wasn't as fast as it should be using the legacy DAPs (because they were still connecting the debugger). The change in the new one was to not connect the debugger at all (making it even faster :) ) but it means some functionality won't be available. There's a bit of a tradeoff here and I feel that not connecting the debugger for Run makes most sense (it's what we've always done for Dart), but I'm definitely interested in feedback.
If you can reproduce any of this today, please do open additional issues. It's possible they are easy fixes, but I'll need some additional info to look into them (a separate issue for each problem is best, that way some of them can't be overlooked when others are fixed). Thanks! |
no problem.
i will look into it, should i try to reproduce them in legacy DAPs or not? |
Probably not worth it for these - we need to get everyone on the new DAPs as soon as possible, so if they're broken there we should fix them. If they're broken in the legacy DAP, it's less likely they'll be fixed. Thanks! |
hot reload doesn't work in vs code, the keyboard shortcut is there in the settings but it doesn't work, the icon isn't there anymore, and only hot restart works.
I've tried to run a new app from the terminal and Android Studio and do a hot reload from there with no problems.
Dart: Capture debugging logs
https://pastebin.pl/view/dec2abec
Flutter doctor -v:
The text was updated successfully, but these errors were encountered: