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

julia 0.5.0 package errors #12

Closed
r-chris opened this issue Sep 21, 2016 · 4 comments
Closed

julia 0.5.0 package errors #12

r-chris opened this issue Sep 21, 2016 · 4 comments

Comments

@r-chris
Copy link

r-chris commented Sep 21, 2016

DeclarativePackages produces errors, when run in julia 0.5.0
Running Pkg.test("DeclarativePackages") (on latest master branch) for example will show:

[...]

ERROR: LoadError: ArgumentError: for Associatives, similar requires an element type of Pair;
  if calling map, consider a comprehension instead
 in _collect(::Dict{String,VersionNumber}, ::Base.Generator{Dict{String,VersionNumber},DeclarativePackages.##14#21}, ::Base.EltypeUnknown, ::Base.HasLength) at ./array.jl:318
 in map(::Function, ::Dict{String,VersionNumber}) at ./abstractarray.jl:1683
 in generatespecs() at ~/.julia/v0.5/DeclarativePackages/src/DeclarativePackages.jl:45
 in exportDECLARE(::String) at /~/.julia/v0.5/DeclarativePackages/src/DeclarativePackages.jl:22
 in finish() at ~/.julia/v0.5/DeclarativePackages/src/installpackages.jl:228
 in installpackages() at ~/.julia/v0.5/DeclarativePackages/src/installpackages.jl:14
 in include_from_node1(::String) at ./loading.jl:488
 in process_options(::Base.JLOptions) at ./client.jl:262
 in _start() at ./client.jl:318
while loading ~/.julia/v0.5/DeclarativePackages/src/installpackages.jl, in expression starting on line 253
ERROR: LoadError: failed process: Process(`~/.julia/v0.5/DeclarativePackages/test/../bin/jdp ~/.julia/v0.5/DeclarativePackages/test/../test/listpackages.jl`, ProcessExited(1)) [1]
 in pipeline_error(::Base.Process) at ./process.jl:616
 in read(::Cmd, ::Base.DevNullStream) at ./process.jl:576
 in readstring at ./process.jl:581 [inlined] (repeats 2 times)
 in readall(::Cmd, ::Vararg{Cmd,N}) at ./deprecated.jl:32
 in runjdp(::String) at ~/.julia/v0.5/DeclarativePackages/test/runtests.jl:34
 in include_from_node1(::String) at ./loading.jl:488
 in process_options(::Base.JLOptions) at ./client.jl:262
 in _start() at ./client.jl:318
while loading ~/.julia/v0.5/DeclarativePackages/test/runtests.jl, in expression starting on line 40
===========================================================================================[ ERROR: DeclarativePackages ]===========================================================================================

failed process: Process(`/bin/julia -Cx86-64 -J/lib/x86_64-linux-gnu/julia/sys.so --compile=yes --depwarn=yes --check-bounds=yes --code-coverage=none --color=yes --compilecache=yes ~/.julia/v0.5/DeclarativePackages/test/runtests.jl`, ProcessExited(1)) [1]

====================================================================================================================================================================================================================
ERROR: DeclarativePackages 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:59
 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

When actually using DeclarativePackages (release 0.1.2) I also came across this error:

ERROR: LoadError: ArgumentError: for Associatives, similar requires an element type of Pair;
  if calling map, consider a comprehension instead
 in _collect(::Dict{String,VersionNumber}, ::Base.Generator{Dict{String,VersionNumber},DeclarativePackages.##14#21}, ::Base.EltypeUnknown, ::Base.HasLength) at ./array.jl:321
 in map(::Function, ::Dict{String,VersionNumber}) at ./abstractarray.jl:1683
 in generatespecs() at ./DeclarativePackages.jl/src/DeclarativePackages.jl:45
 in exportDECLARE(::String) at ./DeclarativePackages.jl/src/DeclarativePackages.jl:22
 in finish() at ./DeclarativePackages.jl/src/installpackages.jl:228
 in installpackages() at ./DeclarativePackages.jl/src/installpackages.jl:14
 in include_from_node1(::String) at ./loading.jl:488
 in process_options(::Base.JLOptions) at ./client.jl:262
 in _start() at ./client.jl:318
while loading ./DeclarativePackages.jl/src/installpackages.jl, in expression starting on line 253
@JoshChristie
Copy link

On v0.5

  • map on a dictionary now expects a function that expects and returns a Pair. The result is now another dictionary instead of an array #16622

@JoshChristie
Copy link

JoshChristie commented Sep 21, 2016

I'm working on 0.5ifying this package. Hopefully will have a PR up in a few days.

@r-chris
Copy link
Author

r-chris commented Oct 6, 2016

Resolved in: #13 (currently pending)

@rened
Copy link
Owner

rened commented Jan 2, 2017

Thanks, fixed.

@rened rened closed this as completed Jan 2, 2017
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

3 participants