flutter / flutter/devtools

ANSI colors on DevTools log

Aperta
#9,521 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
bug P3 screen: logging
Lingua principale
Dart
Stelle
1.7k
Fork
404
Merge medio
6g 17h
PR unite (30g)
18

Descrizione

This is my current log:

Image

This is how the log is displayed on DevTools:

Image

1) Notice that ANSI colors are (almost) correct rendered on the left panel, but:

a) It always assume black as the foreground color (so black background is invisible)
b) It has a larger font that the normal

2) The details panel doesn't support ANSI colors at all.

It would be nice if

a) All panels supports ANSI colors

or

b) All panels remove all kind of escape codes related to ANSI (so the log would show only plain text, filtering all `\x1B[.......m`)
___
**DevTools version**: 2.51.1
**IDE**: VSCode
**Connected Device**:
CPU / OS: x64 (64 bit) ios
Connected app type: Flutter native (debug build)
Dart Version: 3.10.0
Flutter Version: 3.38.1 / stable
Framework / Engine: b45fa18946 / b5990e5ccc

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by reproducing the ANSI-colored output in the DevTools log and compare the main log panel with its details panel. Trace the log rendering entry point and verify that ANSI sequences are either rendered consistently in all panels or removed everywhere, including foreground and font handling.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
dart, flutter
Ambito
devtools
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.