Skip to content

Fix NonlinearSolveQuasiNewton compat floor: NonlinearSolveBase 2.35 -> 2.34 - #1050

Merged
ChrisRackauckas merged 1 commit into
masterfrom
fix/nonlinearsolvequasinewton-compat-floor
Jul 12, 2026
Merged

ChrisRackauckas merged 1 commit into
masterfrom
fix/nonlinearsolvequasinewton-compat-floor

Conversation

@ChrisRackauckas

Copy link
Copy Markdown
Member

The internal rename (maybe_pinv!! -> linsolve_identity!!/linsolve_workspace, PR #1039) this floor protects against already landed in the currently-registered NonlinearSolveBase 2.34.0, not 2.35 (which doesn't exist and was never registered). The 2.35 floor made NonlinearSolveQuasiNewton unregistrable, and left the currently-registered 1.13.3 broken against any NonlinearSolveBase >= 2.34 install. This is a one-line compat fix, no other changes.

…e correct minimum (2.34)

PR #1039 raised the floor to "2.35", anticipating a future NonlinearSolveBase
release. The internal rename it actually depends on (maybe_pinv!! ->
linsolve_identity!!/linsolve_workspace) already landed in the currently
registered NonlinearSolveBase 2.34.0. The 2.35 floor is unregistrable (no such
version exists) and was causing NonlinearSolveQuasiNewton 1.13.3 (the
currently registered version, which predates the rename) to fail to
precompile against NonlinearSolveBase >= 2.34 for any fresh install.
@ChrisRackauckas
ChrisRackauckas merged commit 00f3f0b into master Jul 12, 2026
62 of 74 checks passed
@ChrisRackauckas
ChrisRackauckas deleted the fix/nonlinearsolvequasinewton-compat-floor branch July 12, 2026 22:08
@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

Validated this against the clean current ModelingToolkitStandardLibrary main (289ba1af451b743ac4a2eccdb6e379c3ff203745) on Julia 1.12.6 with a fresh depot.

Exact downstream reproduction:

GROUP=Core julia +1.12 --project=. -e 'using Pkg; Pkg.test()'
...
NonlinearSolveBase v2.34.0
NonlinearSolveQuasiNewton v1.13.3
...
ERROR: LoadError: UndefVarError: `maybe_pinv!!` not defined in `NonlinearSolveBase.Utils`
  @ NonlinearSolveQuasiNewton/.../src/initialization.jl:215

The native command exited 1 after 723 seconds, before tests, with the QuasiNewton failure cascading through NonlinearSolve and the OrdinaryDiffEq packages.

The isolated registered-version boundary is exact:

QN 1.13.3 + Base 2.33.0: BOUNDARY_PASS Base=2.33.0 QuasiNewton=1.13.3
QN 1.13.3 + Base 2.34.0: UndefVarError at initialization.jl:215, exit 1

Registry/source mapping:

  • Base 2.33.0 tree 70e128636da33678ef4aa088e47e0c4ad7c86d92 corresponds to 90b090cd5a028798e2c08718b7d5ba0adeead228.
  • Base 2.34.0 tree 55b0f355de37f0d96530cfb5fb92da1b7f745bb7 corresponds to 29471d3480ad73bb631bf790dc010b3d70267ec1 and contains the rename introduced by 6a7687f542cde52b4bfeef5b473c6156c8d453a1.
  • QN 1.13.3 tree 7a6137308a5876fd0a72b2455eeb9a68bbaf09ad corresponds to 043cb42e43ab828ac5e1bb9e14009aa56bdb118f and still calls maybe_pinv!! with a Base 2.20 floor.

Finally, developing merged commit 00f3f0bdd651744660c5a90c24fdb284b7e138fe as QN 1.14.0 against registered Base 2.34.0 precompiled and loaded successfully:

FIX_PASS Base=2.34.0 QuasiNewton=1.14.0

General currently ends at QN 1.13.3, so registering 1.14.0 is the remaining step that repairs fresh downstream resolution.

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