Declaring __precompile__(false) is not allowed in files that are being precompiled


I got this recently:

julia> using FreeTypeAbstraction
INFO: Precompiling module FreeTypeAbstraction.
WARNING: Module Compat with uuid 723476325108 is missing from the cache.
This may mean module Compat does not support precompilation but is imported by a module that does.
ERROR: LoadError: Declaring __precompile__(false) is not allowed in files that are being precompiled.
 [1] _require(::Symbol) at ./loading.jl:448
 [2] require(::Symbol) at ./loading.jl:398
 [3] _include_from_serialized(::String) at ./loading.jl:157
 [4] _require_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at ./loading.jl:200
 [5] _require_search_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at ./loading.jl:236
 [6] _require(::Symbol) at ./loading.jl:434
 [7] require(::Symbol) at ./loading.jl:398
 [8] include_from_node1(::String) at ./loading.jl:569
 [9] include(::String) at ./sysimg.jl:14
 [10] anonymous at ./<missing>:2
while loading /home/lobi/.julia/v0.6/FreeTypeAbstraction/src/FreeTypeAbstraction.jl, in expression starting on line 5
ERROR: Failed to precompile FreeTypeAbstraction to /home/lobi/.julia/lib/v0.6/FreeTypeAbstraction.ji.
 [1] compilecache(::String) at ./loading.jl:703
 [2] _require(::Symbol) at ./loading.jl:490
 [3] require(::Symbol) at ./loading.jl:398

A general problem, or something created in my local setup?


unclear, but could solved by recompiling everything in .julia/lib/v0.6


Users of ScikitLearn.jl seem to get this a lot, too. Restarting Julia usually solves the issue (and if it doesn’t, restart again). Hopefully it’ll be fixed in 0.6.1


Related: Please do open an issue if you actually want something to be done about it.