You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Docs build fails on Julia 1.13: lincomp doctest pins Dict iteration order #559
The linear_compartment_model doctest in src/lincomp.jl:35-44 pins the printed order of
the ODE equations, and that order changes on Julia 1.13. The Documentation CI job runs
Julia 1.13.0, so the docs build fails there.
linear_compartment_model returns the system with x_equations as a Dict{QQMPolyRingElem, ExtendedFraction{QQMPolyRingElem}}, and show(::ODE) iterates that
dict. Dict iteration order is an implementation detail and changed in Julia 1.13, so the
doctest pins something the language does not promise.
Why it is only surfacing now
The docs build currently dies earlier, on #556 (three power_series_solution doctest failures), so this one is unreachable on master. It becomes
the first failure once #556 is fixed (see #558).
Suggested fix
Make the output order deterministic rather than dict-dependent — e.g. have show(::ODE)
print x_equations in x_vars order (which is already stored on the struct) instead of in
dict order. That fixes the doctest on every Julia version and makes the printed system
stable for users, rather than re-pinning a new arbitrary order in the docstring.
Activity
ChrisRackauckas-Claude commentedon Oct 1, 2026
Taking this — Cursor Agent CLI 2026.09.28-64d2043, model auto (local job 559-cursor on amdci2.julia.csail.mit.edu).