citeproc: unknown citation key error has no Q-code and no source location

未关闭
#1,111 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
1-2 天
新手友好度
52/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
rust
领域
backend

调研方向

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 模板
  • 阅读贡献指南

从这里开始

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

quarto-dev/q2 的其他 Issue

查看 quarto-dev/q2 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

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