bevy_tilemap icon indicating copy to clipboard operation
bevy_tilemap copied to clipboard

Examples not working?

Open saward opened this issue 2 years ago • 4 comments

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 avatar Jan 10 '22 05:01 saward

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.

joshuajbouw avatar Jan 10 '22 12:01 joshuajbouw

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

saward avatar Jan 10 '22 12:01 saward

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

hazelsparrow avatar Jan 15 '22 00:01 hazelsparrow

Correct, I need to update to 0.6.0

joshuajbouw avatar Jan 17 '22 14:01 joshuajbouw