Open bencottier opened 2 years ago
I can confirm I have the same issue when weaving .jmd files. My platform is:
julia> using InteractiveUtils; versioninfo()
Julia Version 1.7.0
Commit 3bf9d17731 (2021-11-30 12:12 UTC)
Platform Info:
OS: macOS (arm64-apple-darwin21.1.0)
CPU: Apple M1
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.1 (ORCJIT, cyclone)
Environment:
JULIA_EDITOR = code
JULIA_NUM_THREADS =
and package version:
julia> using Pkg; Pkg.status()
Status `~/.julia/environments/v1.7/Project.toml`
[44d3d7a6] Weave v0.10.10
When using a file called test.jmd with:
# hello
this is a test!
```julia
5 + 5
after calling `weave("test.jl")` in the directory with output there is a temp folder that was not cleaned up "jl_X8p1Qs"
description
Using
weave
withdoctype=md2html
and leavingfig_path
unspecified results in a temp dir (the kind made bymktempdir
) left in theout_path
. My guess is this code is responsible.This behaviour is inconsistent with the doc, which says it will default to
DEFAULT_FIG_PATH
:If a tempdir is used, I would expect it to be deleted after calling the function that creates it.
versions
minimum reproducible steps
I have only tested with
doctype="md2html"
but I think it would be true of any doctype that ends with"2pdf"
or"2html"
.Example document called
weave_test.jl
:weave call which creates a tempdir that is not deleted:
weave call which creates a "figures" dir as expected, and no tempdir:
The output HTML is as expected: