jkb0o / belly

Define the Bevy UI tree with `eml!`, style it using a very-css-like `ess` syntax and relate data data with `bind!` and `connect!`
Apache License 2.0
406 stars 32 forks source link

Cannot compile examples #81

Closed NoelJacob closed 8 months ago

NoelJacob commented 8 months ago

When running cargo build --release --example color-picker / party-editor we get error.

Compiling belly_core v0.4.0 (/home/noel/Dev/Temp/belly/crates/belly_core)
Compiling bevy_sprite v0.13.0
Compiling bevy_pbr v0.13.0
Compiling embed-doc-image v0.1.4
warning: field `0` is never read
--> crates/belly_core/src/ess/selector.rs:38:26
|
38 | pub struct SelectorIndex(usize);
|            ------------- ^^^^^
|            |
|            field in this struct
|
= note: `SelectorIndex` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
= note: `#[warn(dead_code)]` on by default
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
38 | pub struct SelectorIndex(());
|                          ~~

warning: field `0` is never read
--> crates/belly_core/src/input.rs:417:18
|
417 | pub struct Focus(bool);
|            ----- ^^^^
|            |
|            field in this struct
|
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
417 | pub struct Focus(());
|                  ~~

Compiling bevy_text v0.13.0
Compiling belly_macro v0.4.0 (/home/noel/Dev/Temp/belly/crates/belly_macro)
Compiling bevy_ui v0.13.0
Compiling bevy_gltf v0.13.0
Compiling bevy_gizmos v0.13.0
Compiling bevy_internal v0.13.0
Compiling bevy v0.13.0
warning: `belly_core` (lib) generated 2 warnings
Compiling belly_widgets v0.4.0 (/home/noel/Dev/Temp/belly/crates/belly_widgets)
Compiling belly v0.4.0 (/home/noel/Dev/Temp/belly)
error[E0277]: the trait bound `(ElementsCorePlugin, WidgetsPlugin): bevy_app::plugin::sealed::Plugins<_>` is not satisfied
--> src/lib.rs:109:29
|
109 |             app.add_plugins((ElementsCorePlugin, WidgetsPlugin));
|                 ----------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `bevy_app::plugin::sealed::Plugins<_>` is not implemented for `(ElementsCorePlugin, WidgetsPlugin)`
|                 |
|                 required by a bound introduced by this call
|
help: trait impls with same name found
--> /home/noel/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_app-0.12.0/src/plugin.rs:91:5
|
91  |     impl<P: Plugin> Plugins<PluginMarker> for P {
|     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
104 |     impl<P: PluginGroup> Plugins<PluginGroupMarker> for P {
|     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
127 |     all_tuples!(impl_plugins_tuples, 0, 15, P, S);
|     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `bevy_app` are being used?
= help: the following other types implement trait `bevy_app::plugin::sealed::Plugins<Marker>`:
<() as bevy_app::plugin::sealed::Plugins<(bevy_app::plugin::sealed::PluginsTupleMarker,)>>
<(S0,) as bevy_app::plugin::sealed::Plugins<(bevy_app::plugin::sealed::PluginsTupleMarker, P0)>>
<(S0, S1) as bevy_app::plugin::sealed::Plugins<(bevy_app::plugin::sealed::PluginsTupleMarker, P0, P1)>>
<(S0, S1, S2) as bevy_app::plugin::sealed::Plugins<(bevy_app::plugin::sealed::PluginsTupleMarker, P0, P1, P2)>>
<(S0, S1, S2, S3) as bevy_app::plugin::sealed::Plugins<(bevy_app::plugin::sealed::PluginsTupleMarker, P0, P1, P2, P3)>>
<(S0, S1, S2, S3, S4) as bevy_app::plugin::sealed::Plugins<(bevy_app::plugin::sealed::PluginsTupleMarker, P0, P1, P2, P3, P4)>>
<(S0, S1, S2, S3, S4, S5) as bevy_app::plugin::sealed::Plugins<(bevy_app::plugin::sealed::PluginsTupleMarker, P0, P1, P2, P3, P4, P5)>>
<(S0, S1, S2, S3, S4, S5, S6) as bevy_app::plugin::sealed::Plugins<(bevy_app::plugin::sealed::PluginsTupleMarker, P0, P1, P2, P3, P4, P5, P6)>>
and 8 others
= note: required for `(ElementsCorePlugin, WidgetsPlugin)` to implement `Plugins<_>`
note: required by a bound in `bevy::prelude::App::add_plugins`
--> /home/noel/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_app-0.13.0/src/app.rs:747:52
|
747 |     pub fn add_plugins<M>(&mut self, plugins: impl Plugins<M>) -> &mut Self {
|                                                    ^^^^^^^^^^ required by this bound in `App::add_plugins`
= note: this error originates in the macro `impl_plugins_tuples` which comes from the expansion of themacro `all_tuples` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0277`.
error: could not compile `belly` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
jkb0o commented 8 months ago

bevy-0.13 is not supported. You can use belly only with bevy-0.12.

jkb0o commented 8 months ago

Oh. my bad, something with lock file. Give me a second.

jkb0o commented 8 months ago

FIxed in https://github.com/jkb0o/belly/releases/tag/v0.4.1 You can use cargo update for your projects.