docs: use SciMLLogging.None() instead of verbose=false (OrdinaryDiffEq v7)#131
Merged
ChrisRackauckas merged 1 commit intoJun 20, 2026
Merged
Conversation
…ryDiffEq v7
OrdinaryDiffEq v7 no longer accepts a `Bool` for the `verbose` keyword of
`solve`; passing one throws
ArgumentError: Passing a `Bool` for `verbose` is no longer supported in
OrdinaryDiffEq v7. Use `DEVerbosity()` or a preset like `Standard()`,
`None()`, etc. from SciMLLogging.
This broke the `@example` blocks in `nnblock.md` and `symbolic_ude_tutorial.md`
(and cascaded into `UndefVarError`s for `new_sol1`, `opt_sol`, `oprob_fitted`),
failing the Documentation build on `main`.
`verbose = false` means "suppress all solver output", which maps to the
`SciMLLogging.None()` preset. Add `SciMLLogging` (v2) as a docs dependency and
use `verbose = SciMLLogging.None()` in both tutorials.
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The Documentation build on
mainis red. The@exampleblocks indocs/src/nnblock.mdanddocs/src/symbolic_ude_tutorial.mdpassverbose = false(aBool) tosolve. OrdinaryDiffEq v7 no longer accepts aBoolforverbose:This caused
failed to run @example blockerrors atnnblock.md:208-292andsymbolic_ude_tutorial.md:74-83, which then cascaded intoUndefVarErrors (new_sol1,opt_sol,oprob_fitted) in downstream blocks and terminated the build ([:example_block]).Fix
verbose = falsemeans "suppress all solver output", which maps to theSciMLLogging.None()preset (per DiffEqBase,_process_verbose_param(::Val{false})resolves toDEVerbosity(SciMLLogging.None())). This PR:SciMLLogging(compat"2") todocs/Project.toml(resolves to the same v2.0.0 already in the docs Manifest, no other resolution changes).verbose = falsewithverbose = SciMLLogging.None()in both tutorials, and addsimport SciMLLoggingto the relevant example modules.Verification (local, Julia 1.10 / docs env)
solve(prob, Tsit5(); verbose = SciMLLogging.None())returnsretcode = Success, whileverbose = falsestill throws theArgumentError.julia --project=docs docs/make.jl: the build now evaluates thennblock.mdpotplateblock (previously the first failure) with zeroArgumentError/failed to run/UndefVarErrormarkers, and proceeds into the subsequentnew_sol1andequation_searchblocks. (The local run was OOM-killed at the memory-heavy SymbolicRegression block on a heavily-loaded shared machine; this is unrelated to the docs error and will not occur on CI runners.)symbolic_ude_tutorial.mdloss-block solve call withverbose = SciMLLogging.None():retcode = Success.Note
There is a separate, pre-existing, platform-specific failure on the
tests / All (julia lts, macos-latest)job only:@test res2.objective < 1.5e-4evaluates to0.000270... < 0.00015on macOS aarch64 LTS. It passes on ubuntu/windows for bothltsand1. This is optimizer-convergence noise (LBFGS/Adam landing in a slightly worse local minimum due to aarch64 BLAS/LAPACK differences) and is intentionally not touched here — loosening that tolerance would risk masking a real regression on other platforms. Out of scope for this PR.Please ignore until reviewed by @ChrisRackauckas