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

未关闭 适合新手
#148 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
75/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
bash, typescript
领域
documentation

调研方向

从 src/engine/languages.ts 中的 Shell 条目和 CONTRIBUTING.md 中的确定性规则开始,然后找到相关的 README 或 docs/ 页面。记录 bash 语法限制何时发生,以及受影响的文件会得到空的解析结果并附带警告,而不是导致构建崩溃。完成标准是用户无需阅读源代码注释,就能在文档中了解这一行为;任何可选的警告或 fixture 更改都必须符合确定性约定。

由索引模型根据 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 小时
30 天内合并 PR
76

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

vibgrate/cli 的其他 Issue

查看 vibgrate/cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。