If I call weave some script analysis.jl which at some point calls a function that uses Memento.jl to log something, if Memento is loaded inside the call to weave (e.g. from a using line inside analysis.jl), then i get an IOError.
If I load Memento first before loading calling weave then all is well.
versions
julia> using InteractiveUtils; versioninfo()
Julia Version 1.6.3-pre.1
Commit 7c45ff0e94 (2021-07-16 20:20 UTC)
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-11.0.1 (ORCJIT, tigerlake)
julia> using Pkg; Pkg.status()
Status `~/temp/Project.toml`
[f28f55f0] Memento v1.2.0
[44d3d7a6] Weave v0.10.10
[91a5bcdd] Plots v1.22.3
minimum reproducible steps
I don't have a minimum reproducer, yet.
I am working on it.
Here is the stacktrace
It is hard to report what because of #431 but I hacked up Weave.jl and I have a stacktrace:
description
If I call weave some script
analysis.jl
which at some point calls a function that uses Memento.jl to log something, ifMemento
is loaded inside the call toweave
(e.g. from ausing
line insideanalysis.jl
), then i get an IOError.If I load
Memento
first before loading callingweave
then all is well.versions
minimum reproducible steps
I don't have a minimum reproducer, yet. I am working on it.
Here is the stacktrace It is hard to report what because of #431 but I hacked up Weave.jl and I have a stacktrace:
In contrast if I load memento outside the
weave
beforehand: