Skip to content
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

Implement _flutter.listViews #1316

Merged
merged 1 commit into from
May 4, 2021

Conversation

annagrin
Copy link
Contributor

@annagrin annagrin commented May 3, 2021

Flutter engine in native world registers _flutter.listViews
extension on the VM. Flutter app registers extensions on the
VM as well, and clients such as dart-code that are connected
to flutter daemon call those extensions. Flutter daemon calls
_flutter.listViews before proceeding to call methods registered
by the app.

The web engine does not have information about the VM and its
isolates so it cannot implement _flutter.listViews method that
requires this information.

As a short term solution, register _flutter.listViews directly
in dwds vm client.

Closes: flutter/flutter#81516
Related: #1315

Flutter engine in native world registers _flutter.listViews
extension on the VM. Flutter app registers extensions on the
VM as well, and clients such as dart-code that are connected
to flutter daemon call those extensions. Flutter daemon calls
_flutter.listViews before proceeding to call methods registered
by the app.

The web engine does not have information about the VM and its
isolates so it cannot implement _flutter.listViews method that
requires this information.

For a short term solution, register _flutter.listViews directly
in dwds vm client.
@google-cla google-cla bot added the cla: yes label May 3, 2021
@annagrin annagrin requested a review from grouma May 3, 2021 18:06
@annagrin
Copy link
Contributor Author

annagrin commented May 3, 2021

/cc @jonahwilliams - FYI

@annagrin annagrin merged commit 54627d0 into dart-lang:master May 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Errors in debug console window when using widget explorer
2 participants