Skip to content

Commit 9ede8ab

Browse files
fix: add @invokelatest to allow trivial initialization with eval_expression = true
1 parent aaaac6e commit 9ede8ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/systems/problem_utils.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1791,7 +1791,8 @@ Construct SciMLProblem `T` with positional arguments `args` and keywords `kwargs
17911791
"""
17921792
function maybe_codegen_scimlproblem(::Type{Val{false}}, T, args::NamedTuple; kwargs...)
17931793
# Call `remake` so it runs initialization if it is trivial
1794-
remake(T(args...; kwargs...))
1794+
# Use `@invokelatest` to avoid world-age issues with `eval_expression = true`
1795+
@invokelatest remake(T(args...; kwargs...))
17951796
end
17961797

17971798
"""

0 commit comments

Comments
 (0)