-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Internal error: encountered unexpected error in runtime: MethodError(... #34513
Comments
Okay, it seems that the compiler is having problem with a struct field with an abstract type annotation. If I change: mutable struct DeterministicTunedModel{T,M<:Deterministic,R} <: MLJBase.Deterministic
model::M
tuning::T # tuning strategy
resampling # resampling strategy
measure
weights::Union{Nothing,Vector{<:Real}}
operation
range::R
train_best::Bool
repeats::Int
n::Union{Int,Nothing}
acceleration::AbstractResource # <--------------
acceleration_resampling::AbstractResource # <---------------
check_measure::Bool
end to # add type parameters `A` and `AR`:
mutable struct DeterministicTunedModel{T,M<:Deterministic,R,A,AR} <: MLJBase.Deterministic
model::M
tuning::T # tuning strategy
resampling # resampling strategy
measure
weights::Union{Nothing,Vector{<:Real}}
operation
range::R
train_best::Bool
repeats::Int
n::Union{Int,Noting}
acceleration::A # <------------
acceleration_resampling::AR # <------------
check_measure::Bool
end (and do this for another similar struct) then the error goes away. |
We're currently careful never to make these. But good to be careful? refs #34513
Closing since this is fixed in newer versions. |
Are you no longer supporting 1.0.? My issues was with 1.0.5 and there is no later patch I can see. |
I believe the fix is #31670, which is on the backport list for 1.0.6, but it will take a bit of work. |
We're currently careful never to make these. But good to be careful? refs #34513
We're currently careful never to make these. But good to be careful? refs #34513
…JuliaLang#34541) We're currently careful never to make these. But good to be careful? refs JuliaLang#34513
…JuliaLang#34541) We're currently careful never to make these. But good to be careful? refs JuliaLang#34513
I'm encountering this only in julia 1.0.5 and julia 1.1.1. No problems for 1.2, 1,3 and nightly.
See this travis test of my unregistered package MLJTuning, with all testing turning off except testing of
src/julia_bug.jl
where I've tried to isolate the issue as best as I can.The text was updated successfully, but these errors were encountered: