Fix docs build: import FunctionMap/Rodas4P for OrdinaryDiffEq v7#610
Merged
ChrisRackauckas merged 1 commit intoJun 16, 2026
Merged
Conversation
OrdinaryDiffEq v7 dropped the blanket `@reexport` and now only exports a curated set of solvers. `FunctionMap` and `Rodas4P` are no longer available via `using OrdinaryDiffEq`; they now live in the `OrdinaryDiffEqFunctionMap` and `OrdinaryDiffEqRosenbrock` subpackages. The advanced point process tutorial used both, so every `@example tpp-advanced` block downstream of the `intensity`/`integrated_intensity` definitions failed with `UndefVarError: FunctionMap not defined` / `Rodas4P not defined`, terminating the Documenter build. Add the two subpackages to the docs environment and import the specific solvers in the tutorial. This mirrors the main package, which already added OrdinaryDiffEqFunctionMap to its test dependencies for the v7 migration. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
Documentation / Build and Deploy Documentationcheck onmasteris failing. The Documenter build terminates with[:example_block]because every@example tpp-advancedblock after theintensity/integrated_intensitydefinitions indocs/src/applications/advanced_point_process.mdthrows:(The single
UndefVarError: λfurther down is a cascade:λ = intensity(...)never binds becauseintensityitself fails onFunctionMap.)Root cause
The docs environment resolves OrdinaryDiffEq v7.0.0. In v7 the package dropped its blanket
@reexportand now only exports a curated solver set (Tsit5,Vern6-9,Rosenbrock23,Rodas5P,FBDF, ...).FunctionMapandRodas4Pare no longer reachable viausing OrdinaryDiffEq— they live in theOrdinaryDiffEqFunctionMapandOrdinaryDiffEqRosenbrocksubpackages. The tutorial uses both, so the build broke once v7 entered the docs resolve. The main package already migrated for v7 (it addedOrdinaryDiffEqFunctionMapto its test deps); the docs environment was simply not updated.Fix
OrdinaryDiffEqFunctionMapandOrdinaryDiffEqRosenbrocktodocs/Project.toml(deps + compat).using OrdinaryDiffEqFunctionMap: FunctionMapandusing OrdinaryDiffEqRosenbrock: Rodas4P.No solver algorithm or prose change —
Rodas4Pis still registered/exported byOrdinaryDiffEqRosenbrockv2, so the documented behavior is preserved exactly.Local verification
Against the exact CI resolve (OrdinaryDiffEq v7.0.0, OrdinaryDiffEqFunctionMap v2.0.0, OrdinaryDiffEqRosenbrock v2.3.0) on Julia 1.10, in the
docs/environment:Pkg.instantiate()resolves cleanly with the new deps.solve(dprob, FunctionMap())on aDiscreteProblemwith aDiscreteCallback->retcode = Success, 23 saved points.solve(oprob, Rodas4P())on a stiffODEProblem->retcode = Success.format_markdown=true) leaves the edited import block unchanged.Please ignore until reviewed by @ChrisRackauckas.