Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

false Citeproc warning about missing citation #12136

Open
ThierryO opened this issue Feb 21, 2025 · 9 comments
Open

false Citeproc warning about missing citation #12136

ThierryO opened this issue Feb 21, 2025 · 9 comments
Assignees
Labels
books bug Something isn't working

Comments

@ThierryO
Copy link
Contributor

Bug description

URLs containing an @ like https://mastodon.online/@inbo result in a false citeproc warning

[WARNING] Citeproc: citation inbo not found

Steps to reproduce

No response

Actual behavior

No response

Expected behavior

No response

Your environment

No response

Quarto check output

Quarto 99.9.9
[✓] Checking environment information...
Quarto cache location: /home/thierry/.cache/quarto
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.4.0: OK
Dart Sass version 1.70.0: OK
Deno version 1.46.3: OK
Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 99.9.9
commit: 3aec7d3
Path: /home/thierry/quarto-cli/package/dist/bin

[✓] Checking tools....................OK
TinyTeX: v2024.12
Chromium: (not installed)

[✓] Checking LaTeX....................OK
Using: TinyTex
Path: /home/thierry/.TinyTeX/bin/x86_64-linux
Version: 2024

[✓] Checking Chrome Headless....................OK
Using: Chrome found on system
Path: /usr/bin/google-chrome
Source: PATH

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
Version: 3.12.3
Path: /usr/bin/python3
Jupyter: 5.3.2
Kernels: python3

(|) Checking Jupyter engine render....Traceback (most recent call last):
File "/home/thierry/quarto-cli/src/resources/jupyter/jupyter.py", line 21, in
from notebook import notebook_execute, RestartKernel
File "/home/thierry/quarto-cli/src/resources/jupyter/notebook.py", line 20, in
from nbclient import NotebookClient
ModuleNotFoundError: No module named 'nbclient'
[✓] Checking Jupyter engine render....OK

@ThierryO ThierryO added the bug Something isn't working label Feb 21, 2025
@mcanouil
Copy link
Collaborator

mcanouil commented Feb 21, 2025

@ThierryO Thank you for reaching out. To best assist you, we kindly request that you complete the issue template with all necessary information. This will enable us to reproduce the issue and provide a timely and effective solution. Currently, the information provided is insufficient for us to begin troubleshooting. We appreciate your cooperation.


You can share a self-contained "working" (reproducible) Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four ````).
See https://quarto.org/bug-reports.html#small-is-beautiful-aim-for-a-single-document-with-10-lines.

If you have multiple files (and if it is absolutely required to have multiple files), please share as a Git repository.

RPython
````qmd
---
title: "Reproducible Quarto Document"
format: html
engine: knitr
---

This is a reproducible Quarto document.

{{< lipsum 1 >}}

```{r}
x <- c(1, 2, 3, 4, 5)
y <- c(1, 4, 9, 16, 25)

plot(x, y)
```

![An image]({{< placeholder 600 400 >}}){#fig-placeholder}

{{< lipsum 1 >}}

The end after @fig-placeholder.
````
````qmd
---
title: "Reproducible Quarto Document"
format: html
engine: jupyter
---

This is a reproducible Quarto document.

{{< lipsum 1 >}}

```{python}
import matplotlib.pyplot as plt

x = [1, 2, 3, 4, 5]
y = [1, 4, 9, 16, 25]

plt.plot(x, y)
plt.show()
```

![An image]({{< placeholder 600 400 >}}){#fig-placeholder}

{{< lipsum 1 >}}

The end after @fig-placeholder.
````

Additionally and if not already given, please share the output of quarto check within a code block (i.e., using three backticks ```txt), see https://quarto.org/bug-reports.html#check.


For reference:

@mcanouil mcanouil added the needs-repro Issues that are blocked until reporter provides an adequate reproduction label Feb 21, 2025
@cderv
Copy link
Collaborator

cderv commented Feb 24, 2025

Thanks @mcanouil !

To be clear @ThierryO we fixed a similar issue while ago (2d3a5f9) and we may have missed some use case, but we need to know where this URL was provided in Quarto configuration, otherwise we don't know where to look.

@ThierryO
Copy link
Contributor Author

We use it in the navbar of a html book. The link provides a link to the relevant line in _quarto.yml. The file is part of a working example of a quarto extension.

@cderv
Copy link
Collaborator

cderv commented Feb 25, 2025

It seems exactly same usage as initial problem

Would it mean this is a regression 🤔 ?

We need to come up with a simple example to reproduce and add as a test project

@mcanouil
Copy link
Collaborator

I can't reproduce on a website.

Note that the project is far from a default project.
A book cannot have a navbar but here it has one.
My guess is that the issue comes from the extension rather than Quarto itself.

@ThierryO
Copy link
Contributor Author

Note that the project is far from a default project.

Yes. This is an extension providing our corporate identity.

A book cannot have a navbar but here it has one.

The documentation says otherwise

@mcanouil
Copy link
Collaborator

mcanouil commented Feb 25, 2025

Indeed, sorry, I missed that, but now I confirm the issue is not Quarto (I mean it produces the right result, but with [WARNING] Citeproc: citation MickaelCanouil not found warning).

  1. quarto create project book
  2. _quarto.ml
project:
  type: book

book:
  title: "demo"
  author: "Norah Jones"
  date: "2/25/2025"
  navbar:
    pinned: true
    right:
      - text: Mastodon
        href: https://fosstodon.org/@MickaelCanouil
  chapters:
    - index.qmd
    - intro.qmd
    - summary.qmd
    - references.qmd

bibliography: references.bib

format:
  html:
    theme:
      - cosmo
      - brand
  pdf:
    documentclass: scrreprt
Image

@mcanouil
Copy link
Collaborator

The warning still not appear in website project, so it might be a Book project oversight from the last fix.

@ThierryO
Copy link
Contributor Author

I've created a minimal examples without extensions.

_quarto.yml

project:
  type: book

bibliography: references.bib

format:
  html: default

book:
  chapters:
    - index.md
  navbar:
    left:
      - text: Cover
        file: index.md
    right:
      - icon: mastodon
        href: https://mastodon.online/@inbo

index.md

# Abstract {-}

Excerpt on ecology taken from [Wikipedia](https://en.wikipedia.org/wiki/Ecology)

references.bib

@Misc{R-3.0.1,
  Title                    = {{R: A language and environment for statistical computing. Version 3.0.1}},

  Author                   = {{R Core Team}},
  Year                     = {2013},

  Address                  = {Vienna, Austria},
  Publisher                = {R Foundation for Statistical Computing},
  Url                      = {http://www.r-project.org/}
}

Console output of quarto render

pandoc 
  to: html
  output-file: index.html
  standalone: true
  toc: true
  number-sections: false
  section-divs: true
  html-math-method: mathjax
  wrap: none
  default-image-extension: png
  variables: {}
  
metadata
  crossref:
    chapters: true
  document-css: false
  link-citations: true
  date-format: long
  lang: en
  bibliography:
    - references.bib
  
[WARNING] Citeproc: citation inbo not found
Output created: _book/index.html

@cderv cderv removed the needs-repro Issues that are blocked until reporter provides an adequate reproduction label Feb 25, 2025
@cderv cderv self-assigned this Feb 25, 2025
@cderv cderv added the books label Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
books bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants