Collapse what does not help when focusing the state machine on an error, and show the ways to fix it
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript, vscode
- Área
- design, developer-experience
Línea de trabajo
Start by reading the State Machine view implementation and its existing focus mode, then trace how the Verification tab receives verifier hints. Use the UDP chat client’s DatagramSocket example to check the focused layout. Done means the focused view collapses dimmed methods, merges constructors, fits the diagram while keeping every state visible, and lists the verifier’s hints; Show all remains unchanged.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
When the State Machine view opens on a state error, focus mode dims what does not help with the error (#158) but keeps every label's text, so the layout does not move. On a large machine the dimmed label stacks still take up the space. In the UDP chat client (DatagramSocket), 11 and 13 dimmed methods sit next to unbound and bound. The state the error is about, closed, ends up below the fold, so the user has to scroll the panel to find it.
#117 first asked for a reduced initial view. #158 chose dimming so that toggling would not re-lay out the diagram.
The view also shows where a call is rejected but not how to get to a state that accepts it. The verifier's hints only appear in the Verification tab.
Proposal
Keep the full diagram and never remove a state. In focus mode, collapse what is dimmed instead of only fading it:
- Collapse the dimmed methods of each label into a count, with their names in a tooltip:
receive · +9 more,2 methods. Overloads count once. Hovering the count lists those methods next to it, and a click keeps the list open. - Merge the constructors of each state into one arrow.
- Lay the diagram out again, and shrink a tall diagram to fit the panel, but not below a readable scale (60%).
- Show all stays exactly as it is today.
Include the possible ways to fix the error, from the verifier: the state hints of the error (liquid-java/liquidjava#411 and the PRs after it), listed in the State Machine view as in the Verification tab. They may say "(and possibly others)".
Ways read from the diagram alone were tried and dropped. A shortest path along the transitions ignores their conditions and the code. For a state that no call leaves, such as closed, it could only suggest creating a new object. In the UDP case the real fix is in the control flow, which the verifier's hint already says.
Not in scope
- Using the error categories to choose what to show (liquid-java/liquidjava#418). This was discussed. The categories are right for 34 of 52 exercises, and most wrong labels are "argument picks the state" bugs reported as Out of order. A diagram reduced by category would hide the evidence in exactly those cases. Categories can add emphasis later, but never remove parts.
- Drawing a selected hint on the diagram (#156). The hints are text, and their states are combinations of state sets, while the diagrams have one machine per state set.
Acceptance
- On
DatagramSocketin the UDP chat client, the focused view showsclosedandboundwithout scrolling. - Focus mode keeps the failed method bright. Every state is still drawn, and every collapsed label can be expanded.
- Show all is unchanged.
- The view lists the verifier's hints.
- Lenguaje dominante
- TypeScript
- Estrellas
- 6
- Forks
- 1
- Merge medio
- 14 h 6 min
- PR fusionados (30 d)
- 32
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de liquid-java/vscode-liquidjava
-
Side panel: show the facts inferred from a loop as a Found step, and explain loop-start namesAbiertoenhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 28/100
liquid-java/vscode-liquidjava#209 ·
Los mantenedores suelen responder en 1 día
-
Idea: Play object protocolAbiertoenhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
liquid-java/vscode-liquidjava#157 ·
Los mantenedores suelen responder en 1 día
-
Show hints in state machineAbiertoenhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
liquid-java/vscode-liquidjava#156 ·
Los mantenedores suelen responder en 1 día
-
Opt-in study logging of extension interactionsQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertoenhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
liquid-java/vscode-liquidjava#121 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
liquid-java/vscode-liquidjava#116 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de liquid-java/vscode-liquidjava
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Bug Nethernet Tests
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
JSPrismarine/JSPrismarine#3949 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
Los mantenedores suelen responder en 4 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
withkarann/aifoxx#504 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 2 días