JuliaIO / JLD.jl

Saving and loading julia variables while preserving native types
MIT License
278 stars 55 forks source link

Warning: JLD incorrectly extends FileIO functions #295

Closed GregPlowman closed 3 years ago

GregPlowman commented 3 years ago

Now getting this warning from FileIO, probably since latest release (FileIO v1.6.0).

┌ Warning: JLD incorrectly extends FileIO functions (see FileIO documentation)
└ @ FileIO C:\Users\plowman\.julia\packages\FileIO\ajK7j\src\loadsave.jl:210
using JLD
filename = raw"c:\temp\test.jld"
data = Dict("x" => 42)
save(filename, data)
timholy commented 3 years ago

Yes! It works!

timholy commented 3 years ago

https://github.com/JuliaRegistries/General/pull/31319

UniqueTokens commented 3 years ago

Sorry for hijacking this closed thread. FileIO nags with numerous same warnings in Julia 1.6.1 during unit tests. How can I turn off the warnings? Thanks!

(@v1.6) pkg> add JLD
   Resolving package versions...
    Updating `~/.julia/environments/v1.6/Project.toml`
  [4138dd39] + JLD v0.10.0
    Updating `~/.julia/environments/v1.6/Manifest.toml`
  [a74b3585] + Blosc v0.7.0
  [f67ccb44] + HDF5 v0.13.7
  [4138dd39] + JLD v0.10.0
  [0b7ba130] + Blosc_jll v1.21.0+0
  [0234f1f7] + HDF5_jll v1.10.5+7
  [5ced341a] + Lz4_jll v1.9.3+0

julia> using JLD
julia> save("test.jld", Dict("x" => 42))
┌ Warning: JLD incorrectly extends FileIO functions (see FileIO documentation)
└ @ FileIO ~/.julia/packages/FileIO/JA3Vl/src/loadsave.jl:215

julia> versioninfo()
Julia Version 1.6.1
Commit 6aaedecc44 (2021-04-23 05:59 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, broadwell)

Edit: Solved by switching to JLD2.