After an update, I tried to use the module Gadfly and got the following error message.
WARNING: Module Compat with uuid 11748883728107 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.
It took me a few minutes of searching to find issue #12508 and learn that I could work around the error by turning the REPL off and on again.
I would have appreciated being told up front, in the error message, that this was an minor annoyance I could work around easily, rather than a major bug that would make Gadfly unusable until the next release. (I seem to recall from the issue tracker that such catastrophic bugs have been seen before.)
versioninfo():
Julia Version 0.5.0Commit 3c9d753 (2016-09-19 18:14 UTC)Platform Info:System: Linux (x86_64-linux-gnu)CPU: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHzWORD_SIZE: 64BLAS: libopenblas (NO_LAPACKE DYNAMIC_ARCH NO_AFFINITY Haswell)LAPACK: liblapack.so.3LIBM: libopenlibmLLVM: libLLVM-3.7.1 (ORCJIT, broadwell)What version of julia are you using? versioninfo() ?
I believe this has been fixed on 0.5.
Thanks for the reminder, @tkelman! I'm using 0.5.0. I've added versioninfo() to the issue report.
Can you give full reproduction steps? What else is in Pkg.status() ?
@tkelman: Unfortunately, I can't reproduce, because the error hasn't come back since I restarted the REPL, and I'm not going to push my luck by trying to break my installation again.
For what it's worth, here's my current Pkg.status() output. The struck-through packages, and perhaps others as well, were not yet installed at the time I had the problem.
6 required packages:
Compose 0.4.4Elliptic 0.2.0Gadfly 0.5.2Interpolations 0.3.6ODE 0.2.1+ masterValidatedNumerics 0.5.044 additional packages:
AxisAlgorithms 0.1.5BinDeps 0.4.5CRlibm 0.2.3 67574177 (dirty)Calculus 0.1.15ColorTypes 0.2.12Colors 0.6.9Compat 0.9.3Contour 0.2.0DataArrays 0.3.9DataFrames 0.8.4DataStructures 0.4.6Distances 0.3.2Distributions 0.11.0FileIO 0.2.0FixedPointNumbers 0.2.1FixedSizeArrays 0.2.4ForwardDiff 0.2.5GZip 0.2.20Hexagons 0.0.4Hiccup 0.0.3Iterators 0.2.0JSON 0.8.0Juno 0.2.3KernelDensity 0.3.0Lazy 0.11.4Loess 0.1.0MacroTools 0.3.2Measures 0.0.3Media 0.2.3NaNMath 0.2.1Optim 0.6.1PDMats 0.5.0Polynomials 0.1.0PositiveFactorizations 0.0.2Ratios 0.0.4Reexport 0.0.3Rmath 0.1.4SHA 0.2.1Showoff 0.0.7SortingAlgorithms 0.1.0StatsBase 0.11.1StatsFuns 0.3.1URIParser 0.1.6WoodburyMatrices 0.2.0I suspect what may have happened is you might have already had Compat loaded, done a Pkg.update that upgraded it to a new version, then tried to load a package that depended on it. I think that breaks right now, and should at least be made to warn, if possible.
That seems consistent with what I experienced.
For what it's worth, Julia just automatically recompiled my Compat and Gadfly cache files, in a freshly started REPL, with no problems. Version info is the same, and I don't think my packages have changed since my last comment.
Ran into the same thing with Gadfly and module Measures. This issue here helped, thank you.
Can this be closed? https://github.com/JuliaLang/julia/issues/19017#issuecomment-256463711 seems to be the solution.
This warns now.
Most helpful comment
I suspect what may have happened is you might have already had Compat loaded, done a
Pkg.updatethat upgraded it to a new version, then tried to load a package that depended on it. I think that breaks right now, and should at least be made to warn, if possible.