Skip to content

WARNING: Constructor for type "Text" was extended in CImGui without explicit qualification or import. #183

@sairus7

Description

@sairus7

In Julia 1.12 got this warning during precompilation. Looks like in 1.12 it is safer to write explicit function keyword? That is strange.

┌ CImGui
│  WARNING: Constructor for type "Text" was extended in `CImGui` without explicit qualification or import.
│    NOTE: Assumed "Text" refers to `Base.Text`. 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 Text end`.
│    Hint: To silence the warning, qualify `Text` as `Base.Text` in the method signature or explicitly `import Base: Text`.
│  WARNING: Method definition (::Type{Base.Docs.Text{T} where T})(Any) in module Docs at docs\utils.jl:88 overwritten in module CImGui at C:\Users\gvg\.julia\packages\CImGui\ZJmcp\src\wrapper.jl:1206.
│  ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
└

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