Show hints in state machine

Ouverte
#156 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

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

Piste de recherche

Start by reading the state machine view implementation and the existing hints for possible path fixes; the issue does not name files or tests. Work out how a user can select a hint and how the suggested path should be highlighted as a possible path. Done means selecting a hint displays that path distinctly on the state machine.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

enhancement

Once we have hints for the possible fixes of the path, we can try to show them on the state machine view, where a user can select one of the hints and we show it on the state machine highlighted (maybe in yellow, with dashes and with an animation of the dashes moving so we see it's like a possibility but not a fixed path).

Where this stands

  • The State Machine view lists the verifier's hints of the shown error in a Ways to fix section (#172, for #170).
  • Paths read from the diagram alone were tried in #171 and dropped: they ignore the transitions' conditions and the code. So a path drawn here should come from the verifier's hints.

What is left for this issue

Selecting a verifier hint and drawing that path, animated, on the diagram. Before this is possible:

  • Structured hints: HintDTO is only (kind, message). The verifier would need to send the calls of a call-sequence hint and the states it goes through, not just text, so the view never has to parse messages.
  • Mapping states: the hints are computed on the verifier's StateMachineBuilder, whose states are combinations of every @StateSet. The diagrams show one machine per state set (#163), so each combination must be projected onto the right diagram.
  • Incompleteness: when the machine is incomplete, the hints end with "(and possibly others)". The drawn path must read as one possibility, which is what the animated dashes are for.
  • The study: hints can give the answer away. Like the hints in the Verification tab, this stays opt-in, behind a click.
Langage dominant
TypeScript
Étoiles
6
Forks
1
Merge moyen
14 h 6 min
PR mergées (30 j)
32

Préparer son environnement

Ouvrir dans Codespaces

Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de liquid-java/vscode-liquidjava

Toutes les issues de liquid-java/vscode-liquidjava

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.