You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deep-links into DevTools on Overflow errors no longer appear #6134
It doesn't produce a URI, because of this condition:
if (activeDevToolsServerAddress !=null&& connectedVmServiceUri !=null) {
If I log those variables, both of them are null. It looks like these are supposed to be set via service extensions (FoundationServiceExtensions.activeDevToolsServerAddress and FoundationServiceExtensions.connectedVmServiceUri).
@kenzieschmoll do you know who is supposed to call these services to set these values? I'm struggling to find any code that seems to reference them.
However, I'm still not getting the data in the Flutter.Error events because of the issue noted above (the DevTools server address and VM service URL are both null inside the Flutter framework when the error occurs). For testing, I just hard-coded these, but I need to track down why they're not set. I don't yet know if that's something wrong on the Dart-Code or Flutter DAP side, or even in DevTools Server or Flutter framework/inspector service.
I tracked down the first issue related to not getting the link in the Flutter.Error event. It appears to be a race during startup (or that the address is not correctly set at startup). It happens fine after a hot reload. I have filed flutter/flutter#190526 related to that.
Activity
DanTup commentedon Aug 3, 2026
I think there might be multiple issues here:
1. The SDK DAPs might not be forwarding these messages
The legacy DAP forwarded them as
dart.flutter.widgetErrorInspectDataevents to the extension, but I don't see any equivalent in the new DAPs.2. It doesn't appear like Flutter is sending them either
If I add some logging around this code here that tries to build the deep-link URI:
https://github.com/flutter/flutter/blob/7bb14cd567b80610b6637a51bea617d1ea13c582/packages/flutter/lib/src/widgets/widget_inspector.dart#L4270
It doesn't produce a URI, because of this condition:
If I log those variables, both of them are
null. It looks like these are supposed to be set via service extensions (FoundationServiceExtensions.activeDevToolsServerAddressandFoundationServiceExtensions.connectedVmServiceUri).@kenzieschmoll do you know who is supposed to call these services to set these values? I'm struggling to find any code that seems to reference them.
DanTup commentedon Aug 3, 2026
I have some PRs open:
However, I'm still not getting the data in the Flutter.Error events because of the issue noted above (the DevTools server address and VM service URL are both
nullinside the Flutter framework when the error occurs). For testing, I just hard-coded these, but I need to track down why they're not set. I don't yet know if that's something wrong on the Dart-Code or Flutter DAP side, or even in DevTools Server or Flutter framework/inspector service.DanTup commentedon Aug 4, 2026
I tracked down the first issue related to not getting the link in the
Flutter.Errorevent. It appears to be a race during startup (or that the address is not correctly set at startup). It happens fine after a hot reload. I have filed flutter/flutter#190526 related to that.[flutter_tools] [DAP] Extract and forward DevTools Deep Link URLs to …
Handle deep link notifications from new Flutter DAP
DanTup commentedon Aug 6, 2026
The new DAP is updated now, and Dart-Code handles the event.
There's still an outstanding Flutter issue (flutter/flutter#190526) but that may have been around forever.