Skip to content

Julia 12 triggers "Pipe" compilation warning for MTKSL #412

@RobbesU

Description

@RobbesU

Compiling MTKSL under Julia 12 triggered the following warning

  1 dependency had output during precompilation:
┌ ModelingToolkitStandardLibrary
│  WARNING: Constructor for type "Pipe" was extended in `IsothermalCompressible` without explicit qualification or import.
│    NOTE: Assumed "Pipe" refers to `Base.Pipe`. This behavior is deprecated and may differ in future versions.`
│    NOTE: This behavior may have differed in Julia versions prior to 1.12.
│    Hint: If you intended to create a new generic function of the same name, use `function Pipe end`.
│    Hint: To silence the warning, qualify `Pipe` as `Base.Pipe` in the method signature or explicitly `import Base: Pipe`.

Reading up I understand that Julia 12 triggers this warning due to a method being defined for a function or constructor (Pipe) without explicitly qualifying or importing it, 'assuming' it's extending Base.Pipe.

Possibly caused by the @deprecate Pipe Tube in the Tube definition??

Julia v12
MTK v10.26
MTKSL v2.25.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions