Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed precompilation #4

Closed
IlyaOrson opened this issue Jun 28, 2017 · 2 comments
Closed

Failed precompilation #4

IlyaOrson opened this issue Jun 28, 2017 · 2 comments

Comments

@IlyaOrson
Copy link
Contributor

IlyaOrson commented Jun 28, 2017

Hello! There seems to be a problem with precompilation.

julia> using CatViews
INFO: Recompiling stale cache file /home/ilya/.julia/lib/v0.6/CatViews.ji for module CatViews.

WARNING: deprecated syntax "typealias FastContiguousSubArray{T,N,P,I<:Tuple{Union{Colon,UnitRange},Vararg{Any}}} SubArray{T,N,P,I,true}" at /home/ilya/.julia/v0.6/CatViews/src/splitview.jl:30.
Use "FastContiguousSubArray{T,N,P,I<:Tuple{Union{Colon,UnitRange},Vararg{Any}}} = SubArray{T,N,P,I,true}" instead.
WARNING: The call to compilecache failed to create a usable precompiled cache file for module CatViews. Got:
WARNING: Module Iterators uuid did not match cache file.
ERROR: LoadError: Declaring __precompile__(true) is only allowed in module files being imported.
Stacktrace:
 [1] __precompile__(::Bool) at ./loading.jl:335
 [2] __precompile__() at ./loading.jl:331
 [3] include_from_node1(::String) at ./loading.jl:569
 [4] eval(::Module, ::Any) at ./boot.jl:235
 [5] _require(::Symbol) at ./loading.jl:483
 [6] require(::Symbol) at ./loading.jl:398
while loading /home/ilya/.julia/v0.6/CatViews/src/CatViews.jl, in expression starting on line 1

julia> versioninfo()
Julia Version 0.6.1-pre.0
Commit dcf39a1dda (2017-06-19 13:06 UTC)
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.9.1 (ORCJIT, haswell)

julia> Pkg.status("Iterators")
 - Iterators                     0.3.1
@ahwillia
Copy link
Owner

Just downloaded v0.6 - I can't reproduce it. Does it have something to do with?

WARNING: Module Iterators uuid did not match cache file.

If you figure this out - I'd happily accept a PR with a patch.

@IlyaOrson
Copy link
Contributor Author

This appears to be an common problem when using Iterators.jl since the name is used also in Base.Iterators JuliaLang/julia/issues/21969.

Until the real problem is fixed we could use the practical fix and deprecate the use of Iterators.jl in favour of IterTools.jl JuliaCollections/Iterators.jl#104.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants