Skip to content

bevy_ui does not compile without bevy_text feature #11363

Closed
@chrisjuchem

Description

Bevy version

main (ee9a1503edb6ff72cc69514c6336d9f624f0d600)

What you did

Run cargo build -p bevy_ui

What went wrong

   Compiling bevy_ui v0.12.0 (/home/chrisjuchem/bevy/crates/bevy_ui)
error[E0425]: cannot find value `text_system` in module `widget`
   --> crates/bevy_ui/src/lib.rs:200:45
    |
200 |                     .ambiguous_with(widget::text_system),
    |                                             ^^^^^^^^^^^ not found in `widget`

error[E0425]: cannot find value `text_system` in module `widget`
   --> crates/bevy_ui/src/lib.rs:207:45
    |
207 |                     .ambiguous_with(widget::text_system),
    |                                             ^^^^^^^^^^^ not found in `widget`

For more information about this error, try `rustc --explain E0425`.
error: could not compile `bevy_ui` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...

Additional information

Looks like this system only exists behind the bevy_text feature, but the ambiguity declaration was not put behind the same feature in #10411.
Building succeeds with cargo build -p bevy_ui --features bevy_text.

Metadata

Assignees

No one assigned

    Labels

    A-TextRendering and layout for charactersA-UIGraphical user interfaces, styles, layouts, and widgetsC-BugAn unexpected or incorrect behaviorD-TrivialNice and easy! A great choice to get started with Bevy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions