Skip to content
This repository has been archived by the owner on May 7, 2022. It is now read-only.

Examples not working? #188

Open
saward opened this issue Jan 10, 2022 · 4 comments
Open

Examples not working? #188

saward opened this issue Jan 10, 2022 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@saward
Copy link

saward commented Jan 10, 2022

Hi,

I tried cloning this to run the examples:

nous% git clone --recursive https://github.com/joshuajbouw/bevy_tilemap/

But getting errors:

% cargo build --example random_dungeon
   Compiling bevy_tilemap_types v0.4.0 (/home/mark/projects/rust/bevy_tilemap/library/types)
error[E0432]: unresolved import `bevy::render::texture::Extent3d`
  --> library/types/src/lib.rs:36:9
   |
36 |         render::texture::Extent3d,
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^ no `Extent3d` in `texture`

error[E0283]: type annotations needed
   --> library/types/src/dimension.rs:198:14
    |
198 |         impl From<&$vec> for Dimension2 {
    |              ^^^^^^^^^^^ cannot infer type for struct `Dimension2`
...
206 | dimension2_glam_impl!(Vec2);
    | --------------------------- in this macro invocation
    |
    = note: cannot satisfy `Dimension2: std::convert::From<&bevy::prelude::Vec2>`
note: required by a bound in `std::convert::From`
    = note: this error originates in the macro `dimension2_glam_impl` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0283]: type annotations needed
   --> library/types/src/dimension.rs:198:14
    |
198 |         impl From<&$vec> for Dimension2 {
    |              ^^^^^^^^^^^ cannot infer type for struct `Dimension2`
...
207 | dimension2_glam_impl!(Vec3);
    | --------------------------- in this macro invocation
    |
    = note: cannot satisfy `Dimension2: std::convert::From<&bevy::prelude::Vec3>`

And much more like this.

Versions:

% cargo version
cargo 1.57.0 (b2e52d7ca 2021-10-21)
% rustc --version
rustc 1.57.0 (f1edd0429 2021-11-29)

Any ideas what might be going wrong here?

@saward saward added the bug Something isn't working label Jan 10, 2022
@joshuajbouw
Copy link
Owner

joshuajbouw commented Jan 10, 2022

This from master? Yeah Bevy was updated with some conflicts. Need to get it fixed. I'll try to get it updated at the soonest.

@saward
Copy link
Author

saward commented Jan 10, 2022

Ah yep, I see the cargo file for this project is not anchored to a specific version. Makes sense, thanks!

@hazelsparrow
Copy link

just to confirm, this cannot currently be used with bevy 0.6.0, correct? I tried cloning and "fixing" some of the compilation errors but it looks like it will require a lot of changes due to how rendering pipelines (and other things?) changed in 0.6.0

@joshuajbouw
Copy link
Owner

Correct, I need to update to 0.6.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants