JunoLab / Weave.jl

Scientific reports/literate programming for Julia
http://weavejl.mpastell.com
MIT License
821 stars 94 forks source link

[BUG] Duplicate chunk #472

Open mloubout opened 1 year ago

mloubout commented 1 year ago

description

I run into an issue using Wevae where it duplicates a chunk id and because I have figures in both the chunks it overwrite the saved figure with the one from the next chunk. The log below show that chunk 10 exists twice

┌ Info: Weaving chunk 10 from line 143
└   progress = 0.8181818181818182
┌ Warning: No grid spacing specified, plotting with a 1m grid spacing
└ @ SlimPlotting ~/.julia/dev/SlimPlotting/src/SlimPlotting.jl:236
┌ Info: Weaving chunk 10 from line 156
└   progress = 0.9090909090909091
┌ Info: Weaved all chunks
└   progress = 1

versions

using InteractiveUtils; versioninfo():


Julia Version 1.9.0
Commit 8e630552924 (2023-05-07 11:25 UTC)
Platform Info:
OS: macOS (arm64-apple-darwin22.4.0)
CPU: 8 × Apple M1 Pro
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-14.0.6 (ORCJIT, apple-m1)
Threads: 6 on 6 virtual cores
Environment:
JULIA_NUM_THREADS = auto
JULIA_PKG_USE_CLI_GIT = true

> `using Pkg; Pkg.status()`:
<!-- please paste the the output of `using Pkg; Pkg.status()` in the backticks below -->
```julia
(docs) pkg> st
Status `~/.julia/dev/SlimPlotting/docs/Project.toml`
⌅ [e30172f5] Documenter v0.25.5
  [033835bb] JLD2 v0.4.31
  [157a0f19] SegyIO v0.8.3
  [44d3d7a6] Weave v0.10.12

minimum reproducible steps

The example can be found there

https://github.com/slimgroup/SlimPlotting.jl/blob/master/examples/plot_example.jl