Shell grammar: improve docs/warnings for bash case/heredoc parse degradation
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 75/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- bash, typescript
调研方向
从 src/engine/languages.ts 中的 Shell 条目和 CONTRIBUTING.md 中的确定性规则开始,然后找到相关的 README 或 docs/ 页面。记录 bash 语法限制何时发生,以及受影响的文件会得到空的解析结果并附带警告,而不是导致构建崩溃。完成标准是用户无需阅读源代码注释,就能在文档中了解这一行为;任何可选的警告或 fixture 更改都必须符合确定性约定。
由索引模型根据 Issue 内容生成。
描述
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)
- Document the limitation and the graceful behaviour in README or
docs/(when it happens, what users should expect, that builds do not crash). - Optionally improve the user-facing warning text so it points at that doc.
- 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.tson theshlanguage entry - CONTRIBUTING.md determinism rules
- 主要语言
- TypeScript
- 星标
- 4
- 派生
- 3
- 平均合并
- 1 天 22 小时
- 30 天内合并 PR
- 76
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
vibgrate/cli 的其他 Issue
-
documentation good first issue
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
相似的 Issue
-
area: documentation status: in progress type: documentation
难度 1/5 1 小时以内 新手友好度 76/100
Oddmash/oddmash-ui#222 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 79/100
appium/appium-wincore-driver#169 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
india-ultimate/hub#715 ·
维护者通常 1 天内回复
-
documentation Entwickler
难度 1/5 1 小时以内 新手友好度 89/100
维护者通常 1 天内回复