-
Notifications
You must be signed in to change notification settings - Fork 80
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
Breakpoints fail to work in Flutter web when macro experiment is enabled #2396
Comments
It looks like we generally build up a cache of library URIs, around here. My guess is we fail to properly build the list of libraries somewhere in this process (in the LibraryHelper), as a result of seeing some macro augmentation URIs. |
I tried looking into this a fair bit today but didn't really make any real progress, I am still very confused why the extra I did come up with a basic idea for how to handle these URIs:
Also today |
@elliette any idea when that would be published and then rolled into flutter? |
I'm hoping to get the latest version of DWDS published and rolled into flutter by end of month. There are still some outstanding issues here that need to be resolved before it can be published: flutter/devtools#7231 |
I don't know if this is a DWDS issue or something else, but since DWDS is throwing the exception I thought it makes sense to start here :)
I'm testing out the macros experiment in Flutter. As of the latest master I can get the code to run on Web (but not desktop).
My files look like this: https://gist.github.com/DanTup/83a5e972943a4d9548eeef7144b47504
If I do not use any macros and I add a breakpoint to a line in my
main.dart
, it works as expected - I hit the breakpoint when I run the app. The VM Service traffic for setting the breakpoint looks like this:However, if I use a macro in the file, then the same breakpoint (in the main file - not in a macro file) fails to be hit and I see this traffic:
The error appears to originate at
webdev/dwds/lib/src/utilities/dart_uri.dart
Line 51 in 8875ae1
file:///
prefix (you can see in the original request, and in thedata.request
field that the script is a full file URI).I don't know if it's related, but the debugger also pauses a little while after and if I resume it I see the following in the debug console:
I've made sure my Dart SDK (where I'm using those packages from) matches the version that is in Flutter (I included details in the gist above).
I'm not certain this issue isn't a consequence of how this currently requires a load of
dependency_overrides
from the Dart SDK. If that seems likely, I can wait until https://dart-review.googlesource.com/c/sdk/+/359040 lands and rolls into Flutter and test again - I aws just trying to get a bit of a head-start.I'm unable to test this in non-web Flutter right now, however these breakpoints do work correctly in non-Flutter Dart VM.
The text was updated successfully, but these errors were encountered: