flutter / flutter/devtools

Web version of devtools cannot display 64-bit numbers from typed data instances

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

説明

For typed data instances, the VM service will return the byte contents encoded as a base64 String. In order to display a meaningful value in the debugger, this must be decoded and then converted to the appropriate typed data instance. For example, -1 will need to display as `0xFF` if the typed data instance was unsigned.

This poses a problem for `Unit64List` and `int64List`, since these types cannot be instantiated on the web.

One potential solution would be to pull in [fixnum](https://github.com/dart-lang/fixnum) and manually unmarshal Int64 numbers into a string representation - though that would not help the unsigned case. Another approach would be to write a utility based off of fixnum to handle both.

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

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

調査の方向性

Start by tracing how the web debugger decodes VM-service base64 bytes for typed data instances and where it renders their values. Compare the required signed and unsigned 64-bit behavior, including Int64List and Uint64List, and consider the utility approaches mentioned; done means both types display meaningful values on the web.

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

評価

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

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

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