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

Cubature.jl is broken on Julia 0.6 #22

Closed
giordano opened this issue Dec 30, 2016 · 5 comments
Closed

Cubature.jl is broken on Julia 0.6 #22

giordano opened this issue Dec 30, 2016 · 5 comments

Comments

@giordano
Copy link
Member

Cubature.jl is currently broken on Julia master, probably due to JuliaLang/julia#17057. See the log from package evaluator:

ERROR: LoadError: MethodError: no method matching quad_tst1(::Array{Float64,1})
The applicable method may be too new: running in world age 20394, while current world is 20395.
Closest candidates are:
  quad_tst1(::Any) at /home/vagrant/.julia/v0.6/Cubature/test/runtests.jl:10 (method too new to be called from this world context.)
 in (::Cubature.##17#18{Bool,Bool,Int64,Float64,Float64,Int64,Int32,Int64})() at /home/vagrant/.julia/v0.6/Cubature/src/Cubature.jl:208
 in disable_sigint at ./c.jl:326 [inlined]
 in cubature(::Bool, ::Bool, ::Bool, ::Bool, ::Int64, ::Function, ::Array{Float64,1}, ::UnitRange{Int64}, ::Float64, ::Float64, ::Int64, ::Int32) at /home/vagrant/.julia/v0.6/Cubature/src/Cubature.jl:162
 in #hcubature#22(::Float64, ::Float64, ::Int64, ::Function, ::Function, ::Array{Float64,1}, ::UnitRange{Int64}) at /home/vagrant/.julia/v0.6/Cubature/src/Cubature.jl:223
 in (::Cubature.#kw##hcubature)(::Array{Any,1}, ::Cubature.#hcubature, ::Function, ::Array{Float64,1}, ::UnitRange{Int64}) at ./<missing>:0
 in macro expansion; at /home/vagrant/.julia/v0.6/Cubature/test/runtests.jl:15 [inlined]
 in anonymous at ./<missing>:?
 in include_from_node1(::String) at ./loading.jl:532
 in include(::String) at ./sysimg.jl:14
 in process_options(::Base.JLOptions) at ./client.jl:293
 in _start() at ./client.jl:357
while loading /home/vagrant/.julia/v0.6/Cubature/test/runtests.jl, in expression starting on line 11

Error reported on discourse, but got no solution. I'm interested also because Cuba.jl is broken as well, for the same exact reason ;-)

@stevengj
Copy link
Member

Yes, this is a known problem; see the linked Julia issue; I have a PR in Julia to make this a bit easier to fix.

@giordano
Copy link
Member Author

giordano commented Jan 5, 2017

Is this fixed with pull request #23? master branch of the package now works with Julia 0.6.

@stevengj
Copy link
Member

stevengj commented Jan 5, 2017

Yes, should be fixed now.

@stevengj stevengj closed this as completed Jan 5, 2017
@giordano
Copy link
Member Author

giordano commented Jan 7, 2017

Thank you. I'd like to fix Cuba.jl as well, but reading the pull request above I can't understand how to do it, I'm not even sure the same fix applies to my package. Any hint would be appreciated :-)

@stevengj
Copy link
Member

stevengj commented Jan 7, 2017

I'm hoping @yuyichao and I can update the blog post on callback functions at some point, though I think he was hoping for another issue to be fixed first?

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