We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@invokelatest
eval_expression = true
1 parent aaaac6e commit 9ede8abCopy full SHA for 9ede8ab
src/systems/problem_utils.jl
@@ -1791,7 +1791,8 @@ Construct SciMLProblem `T` with positional arguments `args` and keywords `kwargs
1791
"""
1792
function maybe_codegen_scimlproblem(::Type{Val{false}}, T, args::NamedTuple; kwargs...)
1793
# Call `remake` so it runs initialization if it is trivial
1794
- remake(T(args...; kwargs...))
+ # Use `@invokelatest` to avoid world-age issues with `eval_expression = true`
1795
+ @invokelatest remake(T(args...; kwargs...))
1796
end
1797
1798
0 commit comments