JuliaAttic / Color.jl

Basic color manipulation utilities.
Other
47 stars 21 forks source link

Julia crashes after importing Color after using a @devectorize macro with a colon. #87

Closed KristofferC closed 4 years ago

KristofferC commented 9 years ago

I had an issue posted on my package repo about a problem with importing Color after importing my package here: https://github.com/KristofferC/KDTrees.jl/issues/12. I reduced it down to this minimal working example which seems to show that there is a problem with how the Color and Devectorize packages work together.

julia> using Devectorize

julia> @devec best_dists[:] = sqrt(best_dists)
ERROR: best_dists not defined
 in anonymous at no file

julia> using Color # Boom
ERROR: `convert` has no method matching convert(::Type{DataType...}, ::Type{xyY{T<:FloatingPoint}})
 in convert at base.jl:13
 in convert at base.jl:21 (repeats 5 times)
 in setindex! at array.jl:323
 in cat at ./abstractarray.jl:664
 in anonymous at no file
 in include at ./boot.jl:245
 in include_from_node1 at ./loading.jl:128
 in include at ./boot.jl:245
 in include_from_node1 at ./loading.jl:128
 in reload_path at loading.jl:152
 in _require at loading.jl:67
 in require at loading.jl:51
while loading /home/kristoffer/.julia/v0.3/Color/src/conversions.jl, in expression starting on line 25
while loading /home/kristoffer/.julia/v0.3/Color/src/Color.jl, in expression starting on line 35

This works fine:

julia> using Devectorize

julia> using Color
Julia Version 0.3.6
Commit 0c24dca (2015-02-17 22:12 UTC)
Platform Info:
  System: Linux (x86_64-unknown-linux-gnu)
  CPU: Intel(R) Core(TM) i7-4600U CPU @ 2.10GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas
  LIBM: libopenlibm
  LLVM: libLLVM-3.3

It does not seem to crash on 0.4.