flutter / flutter/devtools

Provide a clearer message if a user connects to a DartVM that isn't connected to Flutter Tools.

Abierto
#4,091 3 comentarios 0 reacciones 0 asignados Ver en GitHub
fix it friday P3
Lenguaje dominante
Dart
Estrellas
1.7k
Forks
404
Merge medio
6 d 17 h
PR fusionados (30 d)
18

Descripción

From a user on discord:

> Today, i tried something new...
> i ran an android app with a view in flutter (add-to-app) and observed that when the FlutterEngine is initialised, i get a log saying flutter: Observatory listening on http://127.0.0.1:38177//. I tried to open this in Flutter Devtools (by installing Termux, exposing this port to the internet using ngrok and opening this in Devtools) but got a message saying "This application does not have any tabs".
> What is different when the app is run using flutter run and when the debug apk is run? if there is no way to open the observatory, why the log?

The problem is the Dart VM likely cannot evaluate expressions as Flutter tools isn't attached to it. We see this combined with a VM that appears to be debug mode and get confused and show zero tabs instead of showing a message like "VM Service not fully initialized, run `flutter attach` so that you can debug.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza rastreando el manejo del mensaje "This application does not have any tabs" cuando una Dart VM no está completamente conectada a Flutter Tools. Confirma el estado de inicialización del VM-service y actualiza el resultado visible para el usuario para explicar que se requiere `flutter attach`; se considera terminado cuando este caso ya no aparece como un conjunto de pestañas vacío.

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

Evaluación

Stack tecnológico
dart
Área
developer-experience, devtools
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
55/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.