From e83a6cf13301a7e2f20ef92a85d68883733d49ac Mon Sep 17 00:00:00 2001 From: ChrisRackauckas-Claude Date: Sat, 20 Jun 2026 07:53:02 -0400 Subject: [PATCH] Cap ModelingToolkit to v9 to fix docs build under MTK v11 The dependabot bump in #62 widened compat to allow ModelingToolkit v11.26 (and ForwardDiff 1.4, Sundials 6.2, DataInterpolations 8.10, DifferentialEquations 8.0, OrdinaryDiffEq 7.0, Symbolics 7.26), which resolved ModelingToolkit v11.26.8. MTK v11 is a major breaking release that moved the modeling DSL out of ModelingToolkit: `@mtkmodel` and `@connector` now require SciCompDSL.jl, and `missing_variable_defaults` and `defaults` were removed. The course lecture `@example` blocks are written against the MTK v9 DSL, so the Documentation build failed across lecture1/2/6/8 with `@mtkmodel`/`@connector`/`missing_variable_defaults` UndefVarErrors and a `NewtonRaphson not defined` error (the latter from DifferentialEquations v8 no longer re-exporting it). Revert the #62 dependabot widening, restoring the last-known-green compat. Locally on Julia 1.11 the docs environment now resolves to ModelingToolkit 9.15.0, Symbolics 5.28.0, OrdinaryDiffEq 6.74.1, DifferentialEquations 7.13.0, Sundials 4.24.0, ForwardDiff 0.10.39, DataInterpolations 5.0.0, ModelingToolkitStandardLibrary 2.11.0 - the v9-era stack the lectures were authored against. OrdinaryDiffEq is kept pinned to =6.74.1 per the existing note in docs/make.jl. Co-Authored-By: Chris Rackauckas Co-Authored-By: Claude Opus 4.8 (1M context) --- Project.toml | 2 +- docs/Project.toml | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Project.toml b/Project.toml index 6c11a0e..c2be25a 100644 --- a/Project.toml +++ b/Project.toml @@ -7,7 +7,7 @@ version = "1.0.0" ModelingToolkit = "961ee093-0014-501f-94e3-6117800e7a78" [compat] -ModelingToolkit = "9, 11.26" +ModelingToolkit = "9" [extras] ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7" diff --git a/docs/Project.toml b/docs/Project.toml index eb9c0ec..941dc08 100644 --- a/docs/Project.toml +++ b/docs/Project.toml @@ -13,14 +13,14 @@ Sundials = "c3572dad-4567-51f8-b174-8c6c989267f4" Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7" [compat] -DataInterpolations = "5, 6, 8.10" -DifferentialEquations = "7, 8.0" +DataInterpolations = "5, 6" +DifferentialEquations = "7" Documenter = "1" -ForwardDiff = "0.10, 1.4" -ModelingToolkit = "9, 11.26" +ForwardDiff = "0.10" +ModelingToolkit = "9" ModelingToolkitStandardLibrary = "2" -OrdinaryDiffEq = "=6.74.1, 7.0" +OrdinaryDiffEq = "=6.74.1" Plots = "1" Setfield = "1" -Sundials = "4, 6.2" -Symbolics = "5, 6, 7.26" +Sundials = "4" +Symbolics = "5, 6"