Collapse what does not help when focusing the state machine on an error, and show the ways to fix it
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 35/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- typescript, vscode
- Domaine
- design, developer-experience
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- TypeScript
- Étoiles
- 6
- Forks
- 1
- Merge moyen
- 14 h 6 min
- PR mergées (30 j)
- 32
Préparer son environnement
Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de liquid-java/vscode-liquidjava
-
Side panel: show the facts inferred from a loop as a Found step, and explain loop-start namesOuverteenhancement
Difficulté 4/5 3-5 jours Accessibilité débutants 28/100
liquid-java/vscode-liquidjava#209 ·
Les mainteneurs répondent en général sous 1 jour
-
Idea: Play object protocolOuverteenhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
liquid-java/vscode-liquidjava#157 ·
Les mainteneurs répondent en général sous 1 jour
-
Show hints in state machineOuverteenhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
liquid-java/vscode-liquidjava#156 ·
Les mainteneurs répondent en général sous 1 jour
-
Opt-in study logging of extension interactionsPeut-être à nouveau libre Une pull request pour cette issue a été fermée sans être fusionnée. Ouverteenhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
liquid-java/vscode-liquidjava#121 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 3/5 1-2 jours Accessibilité débutants 68/100
liquid-java/vscode-liquidjava#116 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de liquid-java/vscode-liquidjava
Issues similaires
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
yavorsky/unbuilt.app#65 ·
-
CVE security
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
mckinsey/agents-at-scale-ark#4091 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
factory:subtask
Difficulté 1/5 Moins d'une heure Accessibilité débutants 94/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
NUS-Project-SaBai/project-sabai#386 ·
Les mainteneurs répondent en général sous 3 jours
-
android needs clarification
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
super-productivity/super-productivity#12105 · 3 commentaires ·
Les mainteneurs répondent en général sous 1 jour