Skip to content

Fix ForwardDiff v1 compatibility in ForwardDiff extension#20

Merged
timholy merged 2 commits into
mainfrom
teh/fd1
Jul 10, 2026
Merged

Fix ForwardDiff v1 compatibility in ForwardDiff extension#20
timholy merged 2 commits into
mainfrom
teh/fd1

Conversation

@timholy

@timholy timholy commented Jul 10, 2026

Copy link
Copy Markdown
Member

ForwardDiff v1 dispatches Partials scaling and division through internal _mul_partial/_div_partial helpers that only ship Real-Real methods. Higher derivative orders route ThickNumber-valued arguments through them (partial tuple elements and/or the deriv/factor operand), so every ThickNumber/Real combination needs its own method.

timholy added 2 commits July 10, 2026 06:47
ForwardDiff v1 dispatches Partials scaling and division through internal
_mul_partial/_div_partial helpers that only ship Real-Real methods. Higher
derivative orders route ThickNumber-valued arguments through them (partial
tuple elements and/or the deriv/factor operand), so every ThickNumber/Real
combination needs its own method.
Julia 1.9's package-extension loading is too fragile for the
ForwardDiff extension: ForwardDiff itself resolves to an old 0.10.x
release there and the extension doesn't apply, so `derivative` on an
Interval has no matching method. Bump the julia compat floor to 1.10
and switch the CI matrix from a hardcoded '1.9' to 'min', so it always
tracks the compat floor.

Also refreshes actions/checkout, julia-actions/setup-julia,
julia-actions/cache, and codecov-action to their current majors
(the old ones were flagged as running on deprecated Node 20); adds
the CODECOV_TOKEN now required by codecov-action v4+.
@codecov

codecov Bot commented Jul 10, 2026

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@timholy timholy merged commit 0f08aa6 into main Jul 10, 2026
3 of 5 checks passed
@timholy timholy deleted the teh/fd1 branch July 10, 2026 12:11
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