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

Aperta
#1,111 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.)

Lingua principale
Rust
Stelle
293
Fork
20
Merge medio
5h 38m
PR unite (30g)
199

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di quarto-dev/q2

Tutte le issue di quarto-dev/q2

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.