Commit cc005fd
fix: add missing OrderedSet/unwrap imports in CasADi/Pyomo dynamic-opt exts
The `__init__` workaround added in 4888437 to fix a Julia 1.10 method
invalidation bug calls `OrderedSet{SymbolicT}()` and `unwrap(...)`, but
neither name is imported in `MTKCasADiDynamicOptExt` or
`MTKPyomoDynamicOptExt`. This causes the extensions to fail to load on
Julia 1.10 with `UndefVarError: OrderedSet not defined`, breaking the
LTS Extensions test job (`Rocket launch` test in
`test/extensions/dynamic_optimization.jl` is the visible failure).
`MTKInfiniteOptExt` had the same workaround but with the proper
`using OrderedCollections: OrderedSet` and `using Symbolics: unwrap`
imports, so it loads fine. Mirror those imports here.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>1 parent 282f1fb commit cc005fd
2 files changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
0 commit comments