Shell grammar: improve docs/warnings for bash case/heredoc parse degradation

オープン 初心者向け
#148 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
75/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
bash, typescript
領域
documentation

調査の方向性

src/engine/languages.ts の Shell エントリと CONTRIBUTING.md の決定性ルールから始め、その後、該当する README または docs/ のページを探してください。bash 文法の制限がいつ発生するか、また影響を受けるファイルではビルドがクラッシュするのではなく、警告とともに空の解析結果になることを文書化してください。ユーザーがソースコメントを読まずにドキュメントでこの動作を確認できれば完了です。警告やフィクスチャに任意の変更を加える場合は、決定性の契約の範囲内に収めてください。

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

説明

documentation good first issue help wanted

Context

In src/engine/languages.ts, Shell (.sh / .bash) notes a known limitation: the bundled bash grammar’s external scanner can throw under web-tree-sitter on case / heredoc constructs. Those files degrade gracefully (per-file empty parse + warning), but newcomers hitting the warning deserve clearer docs.

What to do (docs-first; optional small UX polish)

  1. Document the limitation and the graceful behaviour in README or docs/ (when it happens, what users should expect, that builds do not crash).
  2. Optionally improve the user-facing warning text so it points at that doc.
  3. Optional: add a tiny fixture that exercises the degrade path and asserts we warn rather than crash (if not already covered).

Acceptance

  • Limitation is discoverable from docs without reading source comments
  • Warning (if touched) is actionable
  • No change to the determinism contract

References

  • Comment in src/engine/languages.ts on the sh language entry
  • CONTRIBUTING.md determinism rules
主要言語
TypeScript
スター
4
フォーク
3
平均マージ
1日 22時間
マージ済み PR(30日)
76

環境構築

はじめの一歩

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

vibgrate/cli のほかの issue

vibgrate/cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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