-
Notifications
You must be signed in to change notification settings - Fork 219
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
Bump DynamicPPL to v0.25 #2197
Bump DynamicPPL to v0.25 #2197
Conversation
…rfjelde/accessors-instead-of-setfield
…etfield' into torfjelde/accessors-instead-of-setfield
@sunxd3 it's good practice to let the author of a branch know if you contribute to it:) I was very confused as to what was going wrong here until I realized you had merged changes 😅 |
Fair enough! Sorry about the confusion |
@sunxd3 any clue what's going on here? |
No idea -- interesting it's only failing windows but not ubuntu |
it's hitting |
I think it's Julia 1.7 that's the issue, not windows vs linux |
Aye, it's the difference between 1.7 and 1.10. In particular, on 1.7 we hit the following impl of function copy!(dst::AbstractVector, src::AbstractVector)
if length(dst) != length(src)
resize!(dst, length(src))
end
for i in eachindex(dst, src)
@inbounds dst[i] = src[i]
end
dst
end while on 1.10 we first hit function copy!(dst::AbstractVector, src::AbstractVector)
firstindex(dst) == firstindex(src) || throw(ArgumentError(
"vectors must have the same offset for copy! (consider using `copyto!`)"))
if length(dst) != length(src)
resize!(dst, length(src))
end
copyto!(dst, src)
end which then eventually hits function _copyto_impl!(dest::Array, doffs::Integer, src::Array, soffs::Integer, n::Integer)
n == 0 && return dest
n > 0 || _throw_argerror("Number of elements to copy must be nonnegative.")
@boundscheck checkbounds(dest, doffs:doffs+n-1)
@boundscheck checkbounds(src, soffs:soffs+n-1)
unsafe_copyto!(dest, doffs, src, soffs, n)
return dest
end i.e. we hit Tbh, I'm a bit uncertain what's "correct" here (and it's definitively a BangBang.jl issue rather than something we're doing wrong).
Preferably not, but not surprised. BangBang.jl have fairly rudimentary checks to decide whether to mutate or not. |
Note that this is a breaking change due to how the varnames are now shown, e.g. |
Any thoughts on what we should do here @devmotion @yebai @sunxd3 ? This issue is holding up a lot of PRs now 😕 It might be worth disabling the failing test on Julia 1.7 given the depth of the issue |
I don't mind. Do we want to stop supporting 1.7 (given the |
LTS is still 1.6, no? |
I removed the failing test for Julia <1.8 for now since it's not "our fault". Once JuliaFolds2/BangBang.jl#22 goes through, we'll bring it back |
Tests should be passing now |
Pull Request Test Coverage Report for Build 8799654893Details
💛 - Coveralls |
Replaces Setfield.jl with Accessors.jl.
EDIT: Won't work until DPPL 0.25 is released.