Skip to content

Error resolving header-includes with juliaengine #12204

@MHellmund

Description

@MHellmund

Bug description

Quarto version: pull from today
_quarto.yml:

project:
    type: book

book:
    chapters:
        - index.qmd

index.qmd:

---
engine: julia
---

```{julia}
?for
```

quarto render --to html ends with

FATAL (/home/hellmund/quarto-cli/src/resources/filters/./quarto-init/includes.lua:54) An error occurred:
Error resolving header-includes- unable to open file <script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js" integrity="sha512-c3Nl8+7g4LMSTdrm621y7kf9v3SDPnhxLNhcjFJbKECVnmZHTdo+IRO05sNLTH/D3vA6u1X32ehoLC7WFVdheg==" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js" integrity="sha512-bLT0Qm9VnAYZDflyKcBaQ2gg0hSYNQrJ8RilYldYQ1FxQYoCLtUjuuRuZo+fjqhx/qtq/1itJ0C2ejDxltZVFg==" crossorigin="anonymous" data-relocate-top="true"></script>
<script type="application/javascript">define('jquery', [],function() {return window.jQuery;})</script>

further observations:

  • This bug does not occur in quarto 1.7.13.
  • This bug does not occur without project file _quarto.yml.
  • The julia code produces, among others, an output cell of type text/html. This triggers jsWidgets=true in widgets.ts, which is not necessary here but not a problem.
  • My guess is that includes.lua is somehow called twice and the second run produces the error.

Steps to reproduce

No response

Actual behavior

No response

Expected behavior

No response

Your environment

OS: archlinux

Quarto check output

Quarto 99.9.9
[✓] Checking environment information...
      Quarto cache location: /home/hellmund/.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: 7bacf5f2abd9fa2792c5e9d89a3c200be8916390
      Path: /home/hellmund/quarto-cli/package/dist/bin

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

[✓] Checking LaTeX....................OK
      Using: Installation From Path
      Path: /opt/texlive/2024/bin/x86_64-linux
      Version: 2024

[✓] Checking Chrome Headless....................OK
      Chrome:  (not detected)

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

[✓] Checking Python 3 installation....OK
      Version: 3.13.1
      Path: /usr/bin/python3
      Jupyter: 5.7.2
      Kernels: julia-1.11-t, julia-1.11, haskell, python3

[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........OK
      Version: 4.4.2
      Path: /usr/lib64/R
      LibPaths:
        - /home/hellmund/R/x86_64-pc-linux-gnu-library/4.4
        - /usr/lib/R/library
      knitr: (None)
      rmarkdown: (None)

      The knitr package is not available in this R installation.
      Install with install.packages("knitr")
      The rmarkdown package is not available in this R installation.
      Install with install.packages("rmarkdown")

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions