Since this morning I cannot freshly install ModellingToolkit any longer, neither the latest nor older versions. I get this error:
The following 1 direct dependency failed to precompile:
ModelingToolkit [961ee093-0014-501f-94e3-6117800e7a78]
Failed to precompile ModelingToolkit [961ee093-0014-501f-94e3-6117800e7a78] to "/tmp/testdepot/compiled/v1.10/ModelingToolkit/jl_TkA4eb".
ERROR: LoadError: MethodError: setproperties_object(::SymbolicUtils.BasicSymbolic{Real}, ::@NamedTuple{metadata::Base.ImmutableDict{DataType, Any}}) is ambiguous.
Candidates:
setproperties_object(obj::SymbolicUtils.BasicSymbolic{T}, patch) where T
@ SymbolicUtils /tmp/testdepot/packages/SymbolicUtils/EGhOJ/src/types.jl:92
setproperties_object(obj, patch::NamedTuple)
@ ConstructionBase /tmp/testdepot/packages/ConstructionBase/c2lWA/src/ConstructionBase.jl:205
Possible fix, define
setproperties_object(::SymbolicUtils.BasicSymbolic{T}, ::NamedTuple) where T
Stacktrace:
[1] setproperties(obj::SymbolicUtils.BasicSymbolic{Real}, patch::@NamedTuple{metadata::Base.ImmutableDict{DataType, Any}})
@ ConstructionBase /tmp/testdepot/packages/ConstructionBase/c2lWA/src/ConstructionBase.jl:136
[2] set
@ /tmp/testdepot/packages/Setfield/PdKfV/src/sugar.jl:197 [inlined]
[4] setmetadata(s::SymbolicUtils.BasicSymbolic{Real}, ctx::DataType, val::Tuple{Symbol, Symbol})
@ SymbolicUtils /tmp/testdepot/packages/SymbolicUtils/EGhOJ/src/types.jl:657
[5] top-level scope
@ /tmp/testdepot/packages/ModelingToolkit/GJiqn/src/ModelingToolkit.jl:189
[6] include
@ ./Base.jl:495 [inlined]
[7] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
@ Base ./loading.jl:2222
[8] top-level scope
@ stdin:3
in expression starting at /tmp/testdepot/packages/ModelingToolkit/GJiqn/src/ModelingToolkit.jl:1
Any idea?
1 Like
I could solve the issue by downgrading ConstructionBase.jl
to version 1.5.6.
I added:
[compat]
ConstructionBase = "=1.5.6"
to my Project.toml file. I also created an issue:
@ChrisRackauckas But I do not know in which package this issue should be fixed.
1 Like
I just did the release process on a patch