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

TypeError precompiling ImageQuilting.jl Tuple: in non-final parameter, expected Type{T}, got Type{Vararg{ParserCombinator.Drop,N}} #18404

Closed
tkelman opened this issue Sep 8, 2016 · 0 comments · Fixed by #18415
Assignees
Labels
bug Indicates an unexpected problem or unintended behavior compiler:precompilation Precompilation of modules regression Regression in behavior compared to a previous version
Milestone

Comments

@tkelman
Copy link
Contributor

tkelman commented Sep 8, 2016

seen in #18276 (comment), bisected to b0e692a

tkelman2@nanosoldier3:~/Julia/julia-0.6$ ./julia -e 'versioninfo(); Pkg.test("ImageQuilting")'
Julia Version 0.6.0-dev.545
Commit fd679b9 (2016-09-08 03:35 UTC)
Platform Info:
  System: Linux (x86_64-linux-gnu)
  CPU: Intel(R) Xeon(R) CPU E3-1241 v3 @ 3.50GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.7.1 (ORCJIT, haswell)
INFO: Testing ImageQuilting
WARNING: could not import Base.complement into LightGraphs
ERROR: LoadError: TypeError: Tuple: in non-final parameter, expected Type{T}, got Type{Vararg{ParserCombinator.Drop,N}}
 in _include_from_serialized(::String) at ./loading.jl:150
 in _require_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at ./loading.jl:187
 in _require_search_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at ./loading.jl:217
 in require(::Symbol) at ./loading.jl:402
 in _include_from_serialized(::String) at ./loading.jl:150
 in _require_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at ./loading.jl:187
 in require(::Symbol) at ./loading.jl:425
 in include_from_node1(::String) at ./loading.jl:541
 in macro expansion; at ./none:2 [inlined]
 in anonymous at ./<missing>:?
 in eval(::Module, ::Any) at ./boot.jl:234
 in process_options(::Base.JLOptions) at ./client.jl:239
 in _start() at ./client.jl:326
while loading /home/tkelman2/.julia/v0.6/ImageQuilting/src/ImageQuilting.jl, in expression starting on line 22
ERROR: LoadError: Failed to precompile ImageQuilting to /home/tkelman2/.julia/lib/v0.6/ImageQuilting.ji.
 in compilecache(::String) at ./loading.jl:663
 in require(::Symbol) at ./loading.jl:453
 in include_from_node1(::String) at ./loading.jl:541
 in process_options(::Base.JLOptions) at ./client.jl:262
 in _start() at ./client.jl:326
while loading /home/tkelman2/.julia/v0.6/ImageQuilting/test/runtests.jl, in expression starting on line 1
===============================[ ERROR: ImageQuilting ]================================

failed process: Process(`/home/tkelman2/Julia/julia-0.6/usr/bin/julia -Cx86-64 -J/home/tkelman2/Julia/julia-0.6/usr/lib/julia/sys.so --compile=yes --depwarn=yes --check-bounds=yes --code-coverage=none --color=no --compilecache=yes /home/tkelman2/.julia/v0.6/ImageQuilting/test/runtests.jl`, ProcessExited(1)) [1]

=======================================================================================
ERROR: ImageQuilting had test errors
 in #test#61(::Bool, ::Function, ::Array{AbstractString,1}) at ./pkg/entry.jl:740
 in (::Base.Pkg.Entry.#kw##test)(::Array{Any,1}, ::Base.Pkg.Entry.#test, ::Array{AbstractString,1}) at ./<missing>:0
 in (::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#test,Tuple{Array{AbstractString,1}}})() at ./pkg/dir.jl:31
 in cd(::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#test,Tuple{Array{AbstractString,1}}}, ::String) at ./file.jl:69
 in #cd#1(::Array{Any,1}, ::Function, ::Function, ::Array{AbstractString,1}, ::Vararg{Array{AbstractString,1},N}) at ./pkg/dir.jl:31
 in (::Base.Pkg.Dir.#kw##cd)(::Array{Any,1}, ::Base.Pkg.Dir.#cd, ::Function, ::Array{AbstractString,1}, ::Vararg{Array{AbstractString,1},N}) at ./<missing>:0
 in #test#3(::Bool, ::Function, ::String, ::Vararg{String,N}) at ./pkg/pkg.jl:258
 in test(::String, ::Vararg{String,N}) at ./pkg/pkg.jl:258
 in eval(::Module, ::Any) at ./boot.jl:234
 in process_options(::Base.JLOptions) at ./client.jl:239
 in _start() at ./client.jl:326

edit: the tests pass when started with --compilecache=no

@tkelman tkelman added this to the 0.5.x milestone Sep 8, 2016
@tkelman tkelman added bug Indicates an unexpected problem or unintended behavior compiler:precompilation Precompilation of modules regression Regression in behavior compared to a previous version labels Sep 8, 2016
vtjnash added a commit that referenced this issue Sep 8, 2016
we want cache=false to disable putting the method in mt->cache (possibly with a wider signature)
but it should still be doing the expected unique-ing through the method->specializations cache

fix #18404
tkelman pushed a commit that referenced this issue Sep 16, 2016
we want cache=false to disable putting the method in mt->cache (possibly with a wider signature)
but it should still be doing the expected unique-ing through the method->specializations cache

fix #18404

(cherry picked from commit 9402af3)
ref #18415
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior compiler:precompilation Precompilation of modules regression Regression in behavior compared to a previous version
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants