flutter / flutter/devtools

Code view likely references old script objects after hot reload

オープン
#6,151 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
P2 screen: debugger
主要言語
Dart
スター
1.7k
フォーク
404
平均マージ
6日 17時間
マージ済み PR(30日)
18

説明

If a script is changed as the result of a hot reload, the `Script` object needs to be re-retrieved to get its updated VM service object ID as the internal `Script` object has been replaced by the VM.

Some issues that are likely related to this are:
- Code coverage and profiler hits disappear after a hot reload
- Rendered sources are out of date after a hot reload
- Breakpoint state isn't cleared in scripts that were hot reloaded (e.g., breakpoints are displayed even though they aren't automatically reset for the new script)

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start by tracing the Code view's Script lookup during hot reload and how it obtains the VM service object ID. Use the reported coverage and profiler hits, rendered sources, and breakpoint state as verification points; done means these remain correct after a script is hot reloaded.

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

評価

技術スタック
dart, flutter
領域
developer-experience, tooling
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
30/100

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

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