FluxML / MacroTools.jl

MacroTools provides a library of tools for working with Julia code and expressions.
https://fluxml.ai/MacroTools.jl/stable/
Other
309 stars 79 forks source link

Newest version fails to precompile #10

Closed mkborregaard closed 8 years ago

mkborregaard commented 8 years ago
> using MacroTools
ERROR: LoadError: LoadError: UndefVarError: readstring not defined
 in include at /usr/local/lib/julia/sys.dylib
 in include_from_node1 at /usr/local/lib/julia/sys.dylib
 in include at /usr/local/lib/julia/sys.dylib
 in include_from_node1 at /usr/local/lib/julia/sys.dylib
 in require at /usr/local/lib/julia/sys.dylib
while loading /Users/michael/.julia/v0.4/MacroTools/src/utils.jl, in expression starting on line 77
while loading /Users/michael/.julia/v0.4/MacroTools/src/MacroTools.jl, in expression starting on line 9

> Pkg.status()
46 required packages:
 - Atom                          0.4.2+             master
 - Bio                           0.1.0+             phyloplot
 - Blink                         0.3.4+             master
 - Bootstrap                     0.3.3
 - Cairo                         0.2.31
 - CodeTools                     0.3.0+             master
 - Color                         0.2.11
 - ColorBrewer                   0.3.0
 - Colors                        0.6.3
 - Compose                       0.4.2
 - DataFrames                    0.7.0
 - DataFramesMeta                0.1.1
 - DataStructures                0.4.4
 - Dates                         0.4.4
 - Distributions                 0.8.10
 - EcologicalNetwork             1.0.1
 - FactCheck                     0.4.2
 - FunctionalData                0.1.0
 - GLM                           0.5.1
 - GLPlot                        0.0.5
 - Gadfly                        0.4.2
 - GeoInterface                  0.0.1
 - Geodesy                       0.0.1
 - GreatCircle                   0.0.1
 - IJulia                        1.1.9
 - ImageView                     0.1.19
 - Images                        0.5.4
 - JLD                           0.5.9
 - Lint                          0.2.3
 - MAT                           0.2.14
 - MixedModels                   0.4.5
 - NamedArrays                   0.4.7
 - OpenStreetMap                 0.8.2
 - Pandas                        0.2.0
 - Phylogenetics                 0.0.2
 - PlotlyJS                      0.1.4
 - Plots                         0.5.4+             master
 - QuartzImageIO                 0.1.2
 - RCall                         0.4.0
 - RDatasets                     0.1.3
 - Roots                         0.1.26             master
 - SFML                          0.1.0
 - Shapefile                     0.0.3
 - Stats                         0.1.0
 - TestImages                    0.1.1
 - Yeppp                         0.0.10
90 additional packages:
 - ArrayViews                    0.6.4
 - BinDeps                       0.3.21
 - Blosc                         0.1.4
 - BufferedStreams               0.0.3
 - Calculus                      0.1.14
 - Codecs                        0.1.5
 - ColorTypes                    0.2.2
 - ColorVectorSpace              0.1.3
 - Combinatorics                 0.2.1
 - Compat                        0.7.14
 - Conda                         0.1.9
 - Contour                       0.1.0
 - DataArrays                    0.2.20
 - Distances                     0.3.0
 - Docile                        0.5.23
 - DualNumbers                   0.2.2
 - FileIO                        0.0.5
 - FixedPointNumbers             0.1.3
 - FixedSizeArrays               0.1.0
 - ForwardDiff                   0.1.6
 - GLAbstraction                 0.0.12
 - GLFW                          1.1.2
 - GLText                        0.0.4
 - GLWindow                      0.1.2
 - GMT                           0.0.0-             master (unregistered)
 - GZip                          0.2.18
 - GeometryTypes                 0.1.4
 - Graphics                      0.1.3
 - Graphs                        0.6.0
 - Grid                          0.4.0
 - HDF5                          0.5.8
 - Hexagons                      0.0.4
 - Hiccup                        0.0.2
 - Homebrew                      0.2.0
 - HttpCommon                    0.2.4
 - HttpParser                    0.1.1
 - HttpServer                    0.1.5
 - ImmutableArrays               0.0.11
 - IniFile                       0.2.5
 - IntervalTrees                 0.0.5
 - Iterators                     0.1.9
 - JSON                          0.5.0
 - JuliaParser                   0.6.4
 - KernelDensity                 0.1.2
 - LNR                           0.0.2
 - LaTeXStrings                  0.1.6
 - Lazy                          0.10.1
 - Lexicon                       0.1.18
 - LibExpat                      0.1.2
 - Libz                          0.0.2
 - LightXML                      0.2.1
 - Loess                         0.0.6
 - Logging                       0.2.0
 - MacroTools                    0.3.0+             master
 - MathProgBase                  0.4.3
 - MbedTLS                       0.2.2
 - Measures                      0.0.2
 - Media                         0.1.2
 - ModernGL                      0.0.7
 - Mustache                      0.0.14
 - Mux                           0.2.0
 - NLopt                         0.3.1
 - NaNMath                       0.2.1
 - Nettle                        0.2.3
 - Optim                         0.4.4
 - PDMats                        0.4.1
 - Polynomials                   0.0.5
 - PyCall                        1.4.0
 - PyPlot                        2.1.1
 - Quaternions                   0.1.0
 - RasterIO                      0.0.0-             master (unregistered)
 - Reactive                      0.3.2
 - Reexport                      0.0.3
 - Requires                      0.2.2
 - SHA                           0.1.2
 - SIUnits                       0.0.6
 - Showoff                       0.0.6
 - SortingAlgorithms             0.0.6
 - StatsBase                     0.8.0
 - StatsFuns                     0.2.0
 - Switch                        0.0.1
 - TexExtensions                 0.0.3
 - Tk                            0.3.7
 - URIParser                     0.1.3
 - WebSockets                    0.1.2
 - Winston                       0.11.13
 - WoodburyMatrices              0.1.5
 - ZMQ                           0.3.1
 - ZipFile                       0.2.6
 - Zlib                          0.1.12
mkborregaard commented 8 years ago

Solved with

Pkg.free("MacroTools")
Pkg.update()
mkborregaard commented 8 years ago

But that gives another error in Atom.jl:

> using Atom
....
INFO: Recompiling stale cache file /Users/michael/.julia/lib/v0.4/Requires.ji for module Requires.
WARNING: Module MacroTools uuid did not match cache file
WARNING: deserialization checks failed while attempting to load cache from /Users/michael/.julia/lib/v0.4/Requires.ji
INFO: Precompiling module Requires...
INFO: Recompiling stale cache file /Users/michael/.julia/lib/v0.4/Requires.ji for module Requires.
WARNING: Module MacroTools uuid did not match cache file
ERROR: __precompile__(true) but require failed to create a precompiled cache file
 in require at /usr/local/lib/julia/sys.dylib
 in stale_cachefile at loading.jl:441
 in recompile_stale at loading.jl:458
 in _require_from_serialized at loading.jl:83
 in _require_from_serialized at /usr/local/lib/julia/sys.dylib
 in require at /usr/local/lib/julia/sys.dylib
 in _require_from_serialized at loading.jl:84
 in require at /usr/local/lib/julia/sys.dylib
mkborregaard commented 8 years ago

Solved by removing and reinstalling Atom and Macrotools.