Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to get heron as a dependency of package #47

Closed
adsick opened this issue Jul 8, 2021 · 6 comments
Closed

failed to get heron as a dependency of package #47

adsick opened this issue Jul 8, 2021 · 6 comments

Comments

@adsick
Copy link

adsick commented Jul 8, 2021

adsick@pop-os:~/Rust/Crates/bevy_retrograde$ cargo build

    Updating crates.io index
    Updating git repository `https://github.com/katharostech/heron.git`
error: failed to get `heron` as a dependency of package `bevy_retrograde_physics v0.1.0 (/home/adsick/Rust/Crates/bevy_retrograde/crates/bevy_retrograde_physics)`

Caused by:
  failed to load source for dependency `heron`

Caused by:
  Unable to update https://github.com/katharostech/heron.git?branch=ktech-patches#c555ad6f

Caused by:
  object not found - no match for id (c555ad6f4f327fe23276df0d87ac8879e5ced744); class=Odb (9); code=NotFound (-3)
@zicklag
Copy link
Member

zicklag commented Jul 8, 2021

Hey there, thanks for the report!

You should be able to fix that by running cargo update and then running cargo build again.

We're in the middle of working on the physics system with some un-released changes on master so you may want to run cargo update every one-in-a-while if something goes wrong.

@adsick
Copy link
Author

adsick commented Jul 8, 2021

adsick@pop-os:~/Rust/Crates/bevy_retrograde$ cargo build
   Compiling bevy_retrograde v0.1.0 (/home/adsick/Rust/Crates/bevy_retrograde)
error[E0433]: failed to resolve: could not find `winit` in `bevy`
   --> src/lib.rs:201:25
    |
201 |         group.add(bevy::winit::WinitPlugin::default());
    |                         ^^^^^ could not find `winit` in `bevy`

error[E0277]: the trait bound `RetroCorePlugin: Plugin` is not satisfied
   --> src/lib.rs:205:19
    |
205 |         group.add(core::RetroCorePlugin);
    |                   ^^^^^^^^^^^^^^^^^^^^^ the trait `Plugin` is not implemented for `RetroCorePlugin`

error[E0277]: the trait bound `RetroAudioPlugin: Plugin` is not satisfied
   --> src/lib.rs:208:19
    |
208 |         group.add(audio::RetroAudioPlugin);
    |                   ^^^^^^^^^^^^^^^^^^^^^^^ the trait `Plugin` is not implemented for `RetroAudioPlugin`

error[E0277]: the trait bound `RetroTextPlugin: Plugin` is not satisfied
   --> src/lib.rs:214:19
    |
214 |         group.add(text::RetroTextPlugin);
    |                   ^^^^^^^^^^^^^^^^^^^^^ the trait `Plugin` is not implemented for `RetroTextPlugin`

error[E0277]: the trait bound `RetroPhysicsPlugin: Plugin` is not satisfied
   --> src/lib.rs:217:19
    |
217 |         group.add(physics::RetroPhysicsPlugin);
    |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Plugin` is not implemented for `RetroPhysicsPlugin`

error[E0277]: the trait bound `RetroUiPlugin: Plugin` is not satisfied
   --> src/lib.rs:220:19
    |
220 |         group.add(ui::RetroUiPlugin);
    |                   ^^^^^^^^^^^^^^^^^ the trait `Plugin` is not implemented for `RetroUiPlugin`

error: aborting due to 6 previous errors

Some errors have detailed explanations: E0277, E0433.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `bevy_retrograde`

@zicklag
Copy link
Member

zicklag commented Jul 8, 2021

It looks like you're using a different version of Bevy than what bevy_retrograde expects. Are you using Bevy 0.5 or are you building off off bevy master? Bevy Retrograde is currently only working for Bevy 0.5.

If there were features from Bevy master that you needed, we might be able to support building against Bevy master by adding a bevy-unstable feature to Bevy Retrograde. We've done that before when we needed unreleased features from Bevy.

@adsick
Copy link
Author

adsick commented Jul 8, 2021

Oh, yep I'm on master, didn't know that it wouldn't work.

@adsick
Copy link
Author

adsick commented Jul 10, 2021

now hello_world and some others seems ok, but there are problems with epaint and physics_map:
image
image

@zicklag
Copy link
Member

zicklag commented Jul 10, 2021

You should just have to enable the ldtk and epaint features when building. I should add the examples to the Cargo.toml so that it tells you that when you try to build them.

cargo run --features ldtk,epaint --example physics_map

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants