-
Notifications
You must be signed in to change notification settings - Fork 76
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
Getting DWDS error when deubg on web #2297
Comments
I also have this issue while debugging web in vs code.
|
I fixed the cast error in #2303 but have continued investigating because I want to understand why this is happening when debugging from VS Code but not from DevTools. This happens when inspecting a Flutter widget, a widget's state or the build context. I haven't been able to reproduce for any other objects. I added some logging in DWDS to the calls to DevTools:VS Code:One of those classes is
However, that causes VS Code to show only the error: @DanTup A couple questions - any idea why Dart-Code is requesting the classes (including |
In VS Code we show getters, but since they're not included in the objects (like fields), we have to walk up all of the superclasses and fetch them to get their getters: My guess is DevTools doesn't do this?
Yes, I think this is a bug. Probably here: We should have error handling so that failing to fetch a single object doesn't fail the whole thing (if you're not already making changes in there and want me to fix, please open an SDK and assign to me and I'll take a look) - although it's not clear to me why that particular class isn't valid to call 🤔 |
SG! I opened https://dart-review.googlesource.com/c/sdk/+/342704 for a quick fix |
Hmm it seems like DWDS is looking for it in the wrong library (so it probably is valid to call). I've opened: #2314 |
…gging from VS Code (#140711) Update DWDS version on Flutter stable to a hotfix release to resolve dart-lang/webdev#2297 See dart-lang/webdev#2319
Bug: dart-lang/webdev#2297 Change-Id: Id7234e7dd758e16ea05fb4b4ccab1593f3ca5ea8 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/342704 Reviewed-by: Ben Konyi <bkonyi@google.com> Commit-Queue: Elliott Brooks <elliottbrooks@google.com>
This hotfix went out today, so this should now be fixed on Flutter stable. See https://groups.google.com/g/flutter-announce/c/fhCMZHGW36A/m/MeaT3_KiAAAJ Please run Thank you for your patience! |
Getting DWDS error when deubg on web on every object which i what to see properties
The text was updated successfully, but these errors were encountered: