-
Notifications
You must be signed in to change notification settings - Fork 316
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
SDK DAPs fail to connect to web apps on latest code because subscribing to the ToolEvent stream fails #4414
Comments
Copied from #4413: In DAP, we use the DDS version being >= 1.4 to decide if custom streams are supported: However in this web case, this check passes but DWDS does not support this: @bkonyi @annagrin what's the best thing for me to do here? It seems like using the version number isn't reliable. Is there a better way to know when this is supported, or should I just handle the error? (related: is there a plan to extend this custom stream support to DWDS?) |
@CoderDake tracked this down. DDS tries to listen to the stream and catches the error to know when something is not a built-in stream: It only catches This could be fixed at either end. I've tested both with DDS also handling |
Thanks! Dan has opened a fix on DWDS' side. @DanTup - will we need to do a hotfix for DWDS, or are you okay with waiting to re-enable the SDK DAPs? (https://github.com/Dart-Code/Dart-Code) |
@elliette no hotfixes needed. The code causing problems here (the ToolEvent stream) wasn't merged until after the current stable, and because of the missing ToolEvent stream (and some other issues), I don't plan to enable SDK DAPs by default for current stable. However, I would like to re-enable the SDK DAPs on Flutter |
This is all resolved. DWDS was released and rolled into Flutter. Enabling the new SDK DAPs and running on web, I can use the embedded inspector and it navigates my editor as expected. The DAP logs show the new toolEvent events:
|
See #4413 (comment).
The text was updated successfully, but these errors were encountered: