Closed musm closed 4 years ago
I tried debugging: I ran all the statements in the increment_precompile.jl
file in a REPL and they all worked without throwing any errors
can you post what's around: C:\Users\Mus.julia\packages\PackageCompiler\oT98U\packages\incremental_precompile.jl:18
# We need to use all used packages in the precompile file for maximum
# usage of the precompile statements.
# Since this can be any recursive dependency of the package we AOT compile,
# we decided to just use them without installing them. An added
# benefit is, that we can call __init__ this way more easily, since
# incremental sysimage compilation won't call __init__ on `using`
# https://github.com/JuliaLang/julia/issues/22910
using Pkg, Test, Random, Serialization, Packing, SignedDistanceFields, PlotUtils, ImageMagick, GeometryTypes, StaticArrays, Markdown, Statistics, Observables, Showoff, IntervalSets, FixedPointNumbers, LinearAlgebra, FreeType, ColorTypes, AbstractPlotting, ColorBrewer, Colors, FileIO, UnicodeFun, PackageCompiler, FreeTypeAbstraction, Contour, Printf
for Mod in [Pkg, Test, Random, Serialization, Packing, SignedDistanceFields, PlotUtils, ImageMagick, GeometryTypes, StaticArrays, Markdown, Statistics, Observables, Showoff, IntervalSets, FixedPointNumbers, LinearAlgebra, FreeType, ColorTypes, AbstractPlotting, ColorBrewer, Colors, FileIO, UnicodeFun, PackageCompiler, FreeTypeAbstraction, Contour, Printf]
isdefined(Mod, :__init__) && Mod.__init__()
end
# bring recursive dependencies of used packages and standard libraries into namespace
for Mod in Base.loaded_modules_array()
if !Core.isdefined(@__MODULE__, nameof(Mod))
Core.eval(@__MODULE__, Expr(:const, Expr(:(=), nameof(Mod), Mod)))
end
end