Skip to content

Version 1.5.7 brakes ModelingToolkit #92

@ufechner7

Description

@ufechner7

Since this morning I could not install ModelingToolkit any longer. I got the 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

Downgrading ConstructionsBase to version 1.5.6 fixed the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions