JLD.jl
JLD.jl copied to clipboard
Broken incremental compilation when loading a JLD file with tuples as values
Consider the following minimal module:
__precompile__()
module Foo
using JLD
file = joinpath(@__DIR__, "foo.jld")
JLD.save(file, "a", (1,))
JLD.load(file) # This line triggers the warning
end
Precompiling it results into this warning:
WARNING: eval from module Main to Foo:
Expr(:curly, Expr(:., :Core, :Tuple)::Any, Expr(:., :Core, :Int64)::Any)::Any
** incremental compilation may be broken for this module **
This was reported in https://github.com/jeff-regier/Celeste.jl/issues/697
Are you seeing this on Julia 0.6, 0.7, or both?
Both.
Does it work as expected with JLD2?
Actually the same happens with JLD2 (with the due changes in the code). Tested on Julia 0.6, I couldn't build the package on Julia master.
Should this error be reported on Julia repository?