Skip to content

Raise NonlinearSolveFirstOrder's NonlinearSolveBase floor to 2.52 - #1297

Merged
ChrisRackauckas merged 1 commit into
masterfrom
fix-firstorder-base-floor
Sep 17, 2026
Merged

ChrisRackauckas merged 1 commit into
masterfrom
fix-firstorder-base-floor

Conversation

@ChrisRackauckas

Copy link
Copy Markdown
Member

NonlinearSolveFirstOrder v2.9.0 failed AutoMerge with:

I was not able to load the package (i.e. import NonlinearSolveFirstOrder failed).

Cause

#1287 moved the trust-region subproblem machinery into NonlinearSolveBase and made MoreTrustRegionDescent the TrustRegion default. lib/NonlinearSolveFirstOrder/src/NonlinearSolveFirstOrder.jl now does:

using NonlinearSolveBase: ..., MoreTrustRegionDescent, AbstractDescentDirection,
    TrustRegionSubproblem, ...

Those names were added in NonlinearSolveBase 2.52.0 by that same PR, but the compat entry was left at NonlinearSolveBase = "2.50". Checked against the pre-#1287 tree (4b29d933, NonlinearSolveBase v2.51.1): MoreTrustRegionDescent and TrustRegionSubproblem appear 0 times. So any resolve that picks 2.51.1 — which is what AutoMerge did, since 2.52.0 was not yet registered when it ran — installs a NonlinearSolveFirstOrder that cannot load.

This is not only a registration problem: with the floor at 2.50, a user pinning NonlinearSolveBase to 2.51.x gets the same import failure.

Fix

Raise the floor to NonlinearSolveBase = "2.52". lib/NonlinearSolveBase on master is already 2.52.0 and is now registered, so this resolves.

Scope check: MoreTrustRegionDescent / TrustRegionSubproblem / RadiusUpdateSchemes.More are referenced only under lib/NonlinearSolveBase and lib/NonlinearSolveFirstOrder, so no other sublibrary needs a floor change.

No version bump — v2.9.0 is not yet registered, so re-triggering Registrator updates the pending registration to this commit.

🤖 Generated with Claude Code (model: claude-opus-5[1m])
Local session: 6a01e420-3436-4518-83cc-6cd853283cfb (this harness publishes no conversation URL)

v2.9.0 imports MoreTrustRegionDescent, TrustRegionSubproblem and
AbstractDescentDirection from NonlinearSolveBase; those were added in
NonlinearSolveBase 2.52.0 by #1287. The compat floor still allowed 2.50, so a
resolver picking 2.51.1 gets a package that fails to load.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude <[email protected]>
Agent-Harness: Claude Code 2.1.273
Agent-Model: claude-opus-5[1m]
Agent-Session: 6a01e420-3436-4518-83cc-6cd853283cfb (local transcript; this harness publishes no conversation URL)
@ChrisRackauckas
ChrisRackauckas merged commit 122ddc7 into master Sep 17, 2026
18 checks passed
@ChrisRackauckas
ChrisRackauckas deleted the fix-firstorder-base-floor branch September 17, 2026 06:44
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.

1 participant