JuliaCollections / Memoize.jl

@memoize macro for Julia
Other
177 stars 22 forks source link

Broken in Julia 1.0? #30

Closed unhandyandy closed 4 years ago

unhandyandy commented 6 years ago

Tried to use it with Julia 1.0.

julia> using Memoize
[ Info: Precompiling Memoize [c03570c3-d221-55d1-a50c-7939bbd78826]
ERROR: LoadError: syntax: space required before colon in "?" expression
Stacktrace:
 [1] include at ./boot.jl:317 [inlined]
 [2] include_relative(::Module, ::String) at ./loading.jl:1038
 [3] include(::Module, ::String) at ./sysimg.jl:29
 [4] top-level scope at none:2
 [5] eval at ./boot.jl:319 [inlined]
 [6] eval(::Expr) at ./client.jl:389
 [7] top-level scope at ./none:3
in expression starting at /home/dabrowsa/.julia/packages/Memoize/QPoIq/src/Memoize.jl:97
ERROR: Failed to precompile Memoize [c03570c3-d221-55d1-a50c-7939bbd78826] to /home/dabrowsa/.julia/compiled/v1.0/Memoize/HGnX1.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] macro expansion at ./logging.jl:313 [inlined]
 [3] compilecache(::Base.PkgId, ::String) at ./loading.jl:1184
 [4] _require(::Base.PkgId) at ./logging.jl:311
 [5] require(::Base.PkgId) at ./loading.jl:852
 [6] macro expansion at ./logging.jl:311 [inlined]
 [7] require(::Module, ::Symbol) at ./loading.jl:834
JLTastet commented 6 years ago

Fixed by #29.