Strange Pkg warning in 1.7

I installed Julia 1.7, and now I am getting a warning when loading some packages (I opened an issue here in the package repo). In particular, using PreallocationTools after loading ForwardDiff in Julia 1.7 results in this warning:

julia> using ForwardDiff

julia> using PreallocationTools
ā”Œ Warning: Replacing module `ForwardDiff`
ā”” @ Base loading.jl:1036

Furthermore, if I try to use Optim after the previous 2 commands I get:

julia> using Optim
[ Info: Precompiling Optim [429524aa-4258-5aef-a3af-852621145aeb]
ā”Œ Warning: Module ForwardDiff with build ID 2902110846083 is missing from the cache.
ā”‚ This may mean ForwardDiff [f6369f11-7733-5829-9624-2563aa707210] does not support precompilation but is imported by a module that does.
ā”” @ Base loading.jl:1107
ā”Œ Warning: Module ForwardDiff with build ID 2902110846083 is missing from the cache.
ā”‚ This may mean ForwardDiff [f6369f11-7733-5829-9624-2563aa707210] does not support precompilation but is imported by a module that does.
ā”” @ Base loading.jl:1107
[ Info: Skipping precompilation since __precompile__(false). Importing Optim [429524aa-4258-5aef-a3af-852621145aeb].
[ Info: Precompiling NLSolversBase [d41bc354-129a-5804-8e4c-c37616107c6c]
ā”Œ Warning: Module ForwardDiff with build ID 2902110846083 is missing from the cache.
ā”‚ This may mean ForwardDiff [f6369f11-7733-5829-9624-2563aa707210] does not support precompilation but is imported by a module that does.
ā”” @ Base loading.jl:1107
[ Info: Skipping precompilation since __precompile__(false). Importing NLSolversBase [d41bc354-129a-5804-8e4c-c37616107c6c].
[ Info: Precompiling LineSearches [d3d80556-e9d4-5f37-9878-2ab0fcc64255]
ā”Œ Warning: Module NLSolversBase with build ID 3475646636699 is missing from the cache.
ā”‚ This may mean NLSolversBase [d41bc354-129a-5804-8e4c-c37616107c6c] does not support precompilation but is imported by a module that does.
ā”” @ Base loading.jl:1107
[ Info: Skipping precompilation since __precompile__(false). Importing LineSearches [d3d80556-e9d4-5f37-9878-2ab0fcc64255].

How can I fix this?

2 Likes