Commit 3e72e12
Fix docs build: declare StaticArrays in the docs environment
The GitHub docs build failed with 'Package StaticArrays not found in current
path'. docs/make.jl includes jump/MultiGridBarrierJuMP.jl, which does
'using StaticArrays', but docs/Project.toml never listed StaticArrays as a
direct dependency. Unlike the test environment (which inherits the package's
[deps], StaticArrays among them), the docs environment is standalone:
dev-ing the package in does not promote its deps to direct deps, so a
top-level 'using StaticArrays' is unresolvable. It built locally only because
the gitignored docs/Manifest.toml happened to have it wired; CI resolves fresh
from Project.toml and failed.
- docs/Project.toml: add StaticArrays (the fix) and LinearAlgebra (stdlib;
added for self-documentation of what the included module loads).
- jump/MultiGridBarrierJuMP.jl: implement JuMP's AbstractModel print hooks
(objective_function_string, constraints_string, _nl_subexpression_string)
so printing a model renders a native formulation instead of a MethodError
from JuMP's print(::IO, ::AbstractModel) path.1 parent 9a60f3f commit 3e72e12
2 files changed
Lines changed: 52 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1019 | 1019 | | |
1020 | 1020 | | |
1021 | 1021 | | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
1022 | 1072 | | |
0 commit comments