JuliaMath / JuliaMath/Interpolations.jl
New ReconstructedTypes issue
- Dominant language
- Julia
- Stars
- 575
- Forks
- 117
- PR merge metrics
- No merged PRs in 30d
Description
My package loads a data type from file using JLD2
@load joinpath(@__DIR__,"exactcore.jld2") ψi
where the type is
`Interpolations.GriddedInterpolation{Float64, 1, Float64, Interpolations.Gridded{Interpolations.Linear}, Tuple{Vector{Float64}}}`
I don't export the Interpolation, but I do export a function that uses it. Previously this worked fine.
Recently I get a new error:
```
┌ Warning: saved type Interpolations.GriddedInterpolation{Float64, 1, Float64, Interpolations.Gridded{Interpolations.Linear}, Tuple{Vector{Float64}}} is missing field it in workspace type; reconstructing
└ @ JLD2 ~/.julia/packages/JLD2/JlkeJ/src/data/reconstructing_datatypes.jl:152
ERROR: LoadError: Evaluation into the closed module `ReconstructedTypes` breaks incremental compilation because the side effects will not be permanent. This is likely due to some other module mutating `ReconstructedTypes` with `eval` during precompilation - don't do this.
```
If I wind back to `Interpolations v0.13.2` then it works fine.
Is there a breaking change I need to know about?
Is there a better way to do this? or a generic fix?
Thanks
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.