Skip to content

mermaid temp files in subfolders not cleaned up #10108

Open

Description

@hewliyang

Bug description

2024-06-24.14-37-41.mp4

When a target .qmd to be rendered to PDF resides in a subfolder the temporary artifacts from the headless browser is not cleaned up.

Steps to reproduce

See https://github.com/hewliyang/quarto-mermaid-reprod

Expected behavior

The temporary artifacts should be cleaned up when no longer needed so as to not pollute the repository

Actual behavior

mermaid_files/figure_latex/...png persists even after succesful render

Your environment

OS:

❯ cat /etc/os-release 
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

Quarto check output

Quarto 1.5.45
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.2.0: OK
      Dart Sass version 1.70.0: OK
      Deno version 1.41.0: OK
      Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.5.45
      Path: /opt/quarto/bin

[✓] Checking tools....................OK
      TinyTeX: v2024.06
      Chromium: 869685

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

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

[✓] Checking Python 3 installation....OK
      Version: 3.10.13 (Conda)
      Path: /anaconda/envs/bedok_env/bin/python
      Jupyter: 5.3.1
      Kernels: python3, kedro_kedro_bedok_dc, kedro_spaceflights, python310-sdkv2, python38-azureml, python38-azureml-pt-tf, ir

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

[✓] Checking R installation...........OK
      Version: 4.3.2
      Path: /usr/lib/R
      LibPaths:
        - /usr/local/lib/R/site-library
        - /usr/lib/R/site-library
        - /usr/lib/R/library
      knitr: 1.43
      rmarkdown: 2.22

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

Activity

  1. added
    bug
    on Jun 24, 2024
  2. added
    needs-repro
    on Jun 24, 2024
  3. cscheid commented on Jun 24, 2024

    @cscheid
    Member

    Can you share the actual project you have, rather than only a screen capture? Thanks.

  4. hewliyang commented on Jun 24, 2024

    @hewliyang
    Author

    Can you share the actual project you have, rather than only a screen capture? Thanks.

    https://github.com/hewliyang/quarto-mermaid-reprod

  5. removed
    needs-repro
    on Jun 24, 2024
  6. self-assigned this
    on Jun 24, 2024
  7. added this to the Future milestone on Jun 24, 2024
  8. added
    files
    on Mar 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugdiagrams-mermaidfiles

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions