flutter / flutter/devtools

Code view likely references old script objects after hot reload

Abierto
#6,151 0 comentarios 0 reacciones 0 asignados Ver en GitHub
P2 screen: debugger
Lenguaje dominante
Dart
Estrellas
1.7k
Forks
404
Merge medio
6 d 17 h
PR fusionados (30 d)
18

Descripción

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)

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
dart, flutter
Área
developer-experience, tooling
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
30/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.