JLD.jl icon indicating copy to clipboard operation
JLD.jl copied to clipboard

Broken incremental compilation when loading a JLD file with tuples as values

Open giordano opened this issue 6 years ago • 5 comments

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

giordano avatar Sep 18 '17 07:09 giordano

Are you seeing this on Julia 0.6, 0.7, or both?

ararslan avatar Sep 18 '17 18:09 ararslan

Both.

giordano avatar Sep 18 '17 18:09 giordano

Does it work as expected with JLD2?

ararslan avatar Sep 18 '17 19:09 ararslan

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.

giordano avatar Sep 18 '17 19:09 giordano

Should this error be reported on Julia repository?

giordano avatar Oct 01 '17 18:10 giordano