-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type does not exist in workspace; reconstructing ...
when loading interpolant from scratchspace new on 1.11 vs. 1.10
#610
Comments
Hi @70Gage70, thanks for the report. I ran your examples and can reproduce. Here's a further reduced problem: (remove Interpolations, make
So it seems that the module |
@JonasIsensee thanks for your comments. I did a quick search on open Julia issues related to |
I have a similar problem. I load some data inside |
Can confirm that this works on Julia v1.11.0-rc1, but not on later versions - so seems very likely to be due to the above-linked Julia issue, cf. this comment JuliaLang/julia#56077 (comment). |
I'm not sure if this is happening because of Scratch.jl, Interpolations.jl or JLD2.jl, but the error is raised by JLD2.jl so I'm posting my MWE here. See the following little package
src
Project.toml
This (roughly) reproduces the workflow of a much larger package, where interpolants are created and saved to a scratchspace using JLD2.jl so that they can be loaded later without having to recompute everything. If the interpolants exist, they are loaded automatically by
__init__()
.On 1.10.5, if you
using ItpScratchJLD
, then runcreate_itp()
, then close everything, thenusing ItpScratchJLD
again, you find thatBAR
is set correctly.Now doing the same thing on 1.11.1, the warning is raised and
BAR
is not loaded, although it can be loaded afterwards with no issue.WARNING MESSAGE TEXT
Very tricky.
The text was updated successfully, but these errors were encountered: