Improve error message when config files aren't valid
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
首先,使用无效配置复现 uv run blueapi -c pyproject.toml controller plans,并跟踪 CLI 的配置加载路径。当无效配置产生包含文件名、行号和列号的简洁且有用的用户错误,而不是堆栈跟踪时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
If a config file passed to the CLI is not valid, the user gets a stacktrace instead of an error message
$ uv run blueapi -c pyproject.toml controller plans
Traceback (most recent call last):
<...>
File "/dls/athena/blueapi/.venv/lib/python3.11/site-packages/yaml/parser.py", line 171, in parse_document_start
raise ParserError(None, None,
yaml.parser.ParserError: expected '<document start>', but found '<scalar>'
in "pyproject.toml", line 2, column 1
Most of this is noise with only the filename, line and column being vaguely relevant.
Acceptance Criteria
- User error is useful when config file isn't
- 主要语言
- Python
- 星标
- 13
- 派生
- 14
- 平均合并
- 6 天 15 小时
- 30 天内合并 PR
- 14
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
DiamondLightSource/blueapi 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
DiamondLightSource/blueapi#1626 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
DiamondLightSource/blueapi#1623 · 2 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
DiamondLightSource/blueapi#1605 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 64/100
DiamondLightSource/blueapi#1494 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 45/100
DiamondLightSource/blueapi#1716 ·
维护者通常 1 天内回复
查看 DiamondLightSource/blueapi 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 77/100
khuisman/mcp-gee-sweet#1166 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 70/100
lugassawan/swe-workbench#823 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
gramaziokohler/compas_timber#870 ·
-
security-scan-failure
难度 2/5 1-3 小时 新手友好度 78/100
semantica-agi/semantica#2089 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
autowarefoundation/autoware_carla_scenario#500 ·
维护者通常 1 天内回复