Skip to content

Raise OrdinaryDiffEqCore floor to 4.4 in disco/CommonControllerOptions importers - #3774

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:fix-core-44-floor-disco-cco
Jun 24, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:fix-core-44-floor-disco-cco

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

Please ignore until reviewed by @ChrisRackauckas. Draft.

Problem

The fresh-disco merge (#3121) added set_discontinuity (OrdinaryDiffEqCore/src/disco.jl) and a second type parameter to CommonControllerOptions{T, NLPType} in OrdinaryDiffEqCore, and #3773 released those as OrdinaryDiffEqCore v4.4.0. However, the sublibraries that import those new symbols still carried OrdinaryDiffEqCore = "4.1" in [compat]. That lets the resolver pick a registered OrdinaryDiffEqCore in [4.1, 4.4) — e.g. 4.3.0, which predates the disco merge — that lacks set_discontinuity and has the old one-parameter CommonControllerOptions. The dependents then fail to precompile:

WARNING: could not import OrdinaryDiffEqCore.set_discontinuity into OrdinaryDiffEqBDF
ERROR: LoadError: too many parameters for type
  @ .../OrdinaryDiffEqBDF/src/controllers.jl

This is the root cause of the master CI AD (julia lts) and ODEInterfaceRegression (julia lts) failures (both an OrdinaryDiffEqBDF precompile error).

Fix

Raise the OrdinaryDiffEqCore floor to "4.4" (the version that introduced the imported symbols) in every sublib that imports them, plus a patch version bump:

sublib new symbol used
OrdinaryDiffEqBDF set_discontinuity + 2-param CommonControllerOptions
OrdinaryDiffEqFIRK set_discontinuity
OrdinaryDiffEqNordsieck 2-param CommonControllerOptions
OrdinaryDiffEqExtrapolation 2-param CommonControllerOptions
ImplicitDiscreteSolve 2-param CommonControllerOptions

Verification (local, Julia 1.10 / lts)

  • Reproduced: path-OrdinaryDiffEqBDF (current master) + registered OrdinaryDiffEqCore 4.3.0 (allowed by the old 4.1 floor) gives the identical could not import set_discontinuity / too many parameters for type precompile failure.
  • Fix confirmed: with the floor at 4.4, the resolver rejects the bad Core —
    Unsatisfiable requirements detected for package OrdinaryDiffEqCore: restricted to versions 4.4.0-4 by OrdinaryDiffEqBDF — no versions left.
  • Positive: full root env (all path libs, floors bumped) precompiles cleanly and solve(prob, FBDF()) returns retcode=Success.

🤖 Generated with Claude Code

…erOptions importers

The fresh-disco merge (SciML#3121) added `set_discontinuity` (disco.jl) and a second
type parameter to `CommonControllerOptions{T, NLPType}` to OrdinaryDiffEqCore, and
SciML#3773 released those changes as OrdinaryDiffEqCore v4.4.0. But the sublibraries that
import those new symbols still carried `OrdinaryDiffEqCore = "4.1"`, so the resolver
is free to pick a registered OrdinaryDiffEqCore in [4.1, 4.4) (e.g. 4.3.0, which
predates the disco merge) that lacks `set_discontinuity` and has the old one-parameter
`CommonControllerOptions`. That mis-resolution makes the dependents fail to precompile:

    WARNING: could not import OrdinaryDiffEqCore.set_discontinuity into OrdinaryDiffEqBDF
    ERROR: LoadError: too many parameters for type
      @ .../OrdinaryDiffEqBDF/src/controllers.jl

This is the root cause of the master CI AD (julia lts) and ODEInterfaceRegression
(julia lts) failures (OrdinaryDiffEqBDF precompile error). Reproduced locally on
Julia 1.10 with path-OrdinaryDiffEqBDF + registered OrdinaryDiffEqCore 4.3.0,
producing the identical error; after raising the floor to "4.4", the resolver
correctly rejects OrdinaryDiffEqCore < 4.4.0
("restricted to versions 4.4.0-4 ... no versions left") and the full root env
precompiles and solves FBDF cleanly.

Affected importers (all bumped to floor 4.4 + patch version bump):
- OrdinaryDiffEqBDF      (set_discontinuity + 2-param CommonControllerOptions)
- OrdinaryDiffEqFIRK     (set_discontinuity)
- OrdinaryDiffEqNordsieck      (2-param CommonControllerOptions)
- OrdinaryDiffEqExtrapolation  (2-param CommonControllerOptions)
- ImplicitDiscreteSolve        (2-param CommonControllerOptions)

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review June 24, 2026 11:55
@ChrisRackauckas
ChrisRackauckas merged commit b4efe37 into SciML:master Jun 24, 2026
138 of 158 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants