Show hints in state machine

オープン
#156 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
TypeScript
スター
6
フォーク
1
平均マージ
14時間 6分
マージ済み PR(30日)
32

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

liquid-java/vscode-liquidjava のほかの issue

liquid-java/vscode-liquidjava の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。