citeproc: unknown citation key error has no Q-code and no source location
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Read quarto_citeproc::Error::ReferenceNotFound and the construction sites in eval.rs:449 and types.rs:524,544, then trace how pampa/src/citeproc_filter.rs:181 converts the error. Check how citation locations are retained through HTML and Typst rendering. Done means an unknown citation produces a coded diagnostic at the citation’s .qmd location in both formats.
由索引模型根据 Issue 内容生成。
描述
Citing a key that isn't in the bibliography fails the render, but the error has no Q-code and no line or column:
---
bibliography: refs.bib
---
See [@missing2020].
q2 render doc.qmd --to html (0.42.0):
Error: Citation processing error: Reference 'missing2020' not found
With --to typst, the error points at the intermediate .typ file instead of the .qmd.
quarto_citeproc::Error::ReferenceNotFound already has a location field and maps to Q-10-2, but every construction site sets location: None (eval.rs:449, types.rs:524, types.rs:544), and pampa/src/citeproc_filter.rs:181 converts the error to a string, dropping the code.
Expected: a coded diagnostic at the citation's location in the .qmd, for both HTML and Typst.
(Q-10-2 also collides with the template subsystem's Q-10-2, braid bd-be2f7.)
- 主要语言
- Rust
- 星标
- 293
- 派生
- 20
- 平均合并
- 5 小时 38 分钟
- 30 天内合并 PR
- 199
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
quarto-dev/q2 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
quarto-dev/q2#1103 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
quarto-dev/q2#1095 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
quarto-dev/q2#1031 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
quarto-dev/q2#957 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 48/100
quarto-dev/q2#1115 · 1 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
area:frontend kind:bug priority:p2 ready
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
bug priority: medium
难度 2/5 1-3 小时 新手友好度 68/100
storytold/vectorcraft#6143 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
rubys/roundhouse#1917 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
good first issue
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复