Steps to reproduce:
git clone https://github.com/ufechner7/Tethers.jl/
cd Tethers.jl
git checkout broken
julia --project
and then in Julia
using Pkg
Pkg.update()
include("src/Tether_01.jl")
This gives the following stack trace:
ERROR: LoadError: MethodError: no method matching iterate(::Nothing)
Closest candidates are:
iterate(::Combinatorics.Combinations)
@ Combinatorics ~/.julia/packages/Combinatorics/Udg6X/src/combinations.jl:13
iterate(::Combinatorics.Combinations, ::Any)
@ Combinatorics ~/.julia/packages/Combinatorics/Udg6X/src/combinations.jl:13
iterate(::Combinatorics.CoolLexCombinations)
@ Combinatorics ~/.julia/packages/Combinatorics/Udg6X/src/combinations.jl:87
...
Stacktrace:
[1] isempty(itr::Nothing)
@ Base ./essentials.jl:957
[2] process_DEProblem(constructor::Type, sys::ODESystem, u0map::Nothing, parammap::SciMLBase.NullParameters; implicit_dae::Bool, du0map::Nothing, version::Nothing, tgrad::Bool, jac::Bool, checkbounds::Bool, sparse::Bool, simplify::Bool, linenumbers::Bool, parallel::Symbolics.SerialForm, eval_expression::Bool, eval_module::Module, use_union::Bool, tofloat::Bool, symbolic_u0::Bool, u0_constructor::typeof(identity), guesses::Dict{…}, t::Float64, warn_initialize_determined::Bool, build_initializeprob::Bool, initialization_eqs::Vector{…}, fully_determined::Bool, check_units::Bool, kwargs::@Kwargs{…})
@ ModelingToolkit ~/.julia/packages/ModelingToolkit/NWBfd/src/systems/diffeqs/abstractodesystem.jl:822
[3] process_DEProblem
@ ~/.julia/packages/ModelingToolkit/NWBfd/src/systems/diffeqs/abstractodesystem.jl:766 [inlined]
[4] (ODEProblem{…})(sys::ODESystem, u0map::Nothing, tspan::Tuple{…}, parammap::SciMLBase.NullParameters; callback::Nothing, check_length::Bool, warn_initialize_determined::Bool, eval_expression::Bool, eval_module::Module, kwargs::@Kwargs{})
@ ModelingToolkit ~/.julia/packages/ModelingToolkit/NWBfd/src/systems/diffeqs/abstractodesystem.jl:995
[5] ODEProblem
@ ~/.julia/packages/ModelingToolkit/NWBfd/src/systems/diffeqs/abstractodesystem.jl:983 [inlined]
[6] (ODEProblem{true, SciMLBase.AutoSpecialize})(sys::ODESystem, u0map::Nothing, tspan::Tuple{Float64, Float64})
@ ModelingToolkit ~/.julia/packages/ModelingToolkit/NWBfd/src/systems/diffeqs/abstractodesystem.jl:983
[7] (ODEProblem{true})(::ODESystem, ::Nothing, ::Vararg{Any}; kwargs::@Kwargs{})
@ ModelingToolkit ~/.julia/packages/ModelingToolkit/NWBfd/src/systems/diffeqs/abstractodesystem.jl:970
[8] (ODEProblem{true})(::ODESystem, ::Nothing, ::Vararg{Any})
@ ModelingToolkit ~/.julia/packages/ModelingToolkit/NWBfd/src/systems/diffeqs/abstractodesystem.jl:969
[9] ODEProblem(::ODESystem, ::Nothing, ::Vararg{Any}; kwargs::@Kwargs{})
@ ModelingToolkit ~/.julia/packages/ModelingToolkit/NWBfd/src/systems/diffeqs/abstractodesystem.jl:959
[10] ODEProblem(::ODESystem, ::Nothing, ::Vararg{Any})
@ ModelingToolkit ~/.julia/packages/ModelingToolkit/NWBfd/src/systems/diffeqs/abstractodesystem.jl:958
[11] top-level scope
@ ~/repos/Tethers.jl/src/Tether_01.jl:25
[12] include(fname::String)
@ Base.MainInclude ./client.jl:489
[13] top-level scope
@ REPL[4]:1
in expression starting at /home/ufechner/repos/Tethers.jl/src/Tether_01.jl:25
Some type information was truncated. Use `show(err)` to see complete types.
The error is reported for this line:
prob = ODEProblem(simple_sys, nothing, (0.0, duration))
All works fine with ModelingToolkit 9.38 or older. It also fails with ModelingToolkit 9.40. Shall I create a bugreport?