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

Abierto
#1,111 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
1-2 días
Aptitud para principiantes
52/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
rust
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Rust
Estrellas
293
Forks
20
Merge medio
5 h 38 min
PR fusionados (30 d)
199

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de quarto-dev/q2

Todos los issues de quarto-dev/q2

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.