devtools can only access the first created engine when you have multiple engines in add to app

オープン
#9,668 コメント 2 件 リアクション 2 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
android, dart
領域
devtools

調査の方向性

まず、リンクされている最小限の add-to-app 例で、Android のインストール手順と Dart VM service 接続を使って問題を再現します。複数の Flutter engines がアクティブな場合の DevTools デバッガーとウィジェットインスペクターの動作を調査します。常に最初のものを使うのではなく、該当する engine または isolate を選択できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

add-to-app cross-screen new feature P2

Overview

When you have a add-to-app with multiple flutter engines active at the same time, the devtools takes the first valid isolate and sets it as main, making it impossible to use widget inspector and other tools

Minimal Example App - https://github.com/AshishSingh2001/minimal-add-to-app

Steps to reproduce

  • run the android app
cd android_app
./gradlew installDebug
  • Attach flutter debugger to the dart VM service (you can get this from logcat)

Issue

In the debugger you will always see homeTab and don't have a way to switch to another tab

The widget inspector is build with keeping normal flutter apps in mind, where only one isolate can be the main isolate, but in add-to-app there can be multiple isolates which can render flutter separately

Image
主要言語
Dart
スター
1.7k
フォーク
420
平均マージ
3日 11時間
マージ済み PR(30日)
29

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

flutter/devtools のほかの issue

flutter/devtools の issue をすべて見る

似ている issue

Dart の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。