Skip to content

cannot find type DVec2 in this scope after cargo clean #266

@andrewexton373

Description

@andrewexton373

Hello,

After a cargo clean and fresh build of my project I'm now receiving this error that is originating from the bevy_prototype_lyon crate as far as I can tell:

error[E0412]: cannot find type `DVec2` in this scope
   --> /home/andrew/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_prototype_lyon-0.13.0/src/shapes.rs:213:21
    |
213 |     pub points: Vec<DVec2>,
    |                     ^^^^^
    |
   ::: /home/andrew/.cargo/registry/src/index.crates.io-6f17d22bba15001f/glam-0.29.2/src/f32/vec2.rs:21:1
    |
21  | pub struct Vec2 {
    | --------------- similarly named struct `Vec2` defined here
    |
help: a struct with a similar name exists
    |
213 |     pub points: Vec<Vec2>,
    |                     ~~~~
help: you might be missing a type parameter
    |
212 | pub struct Polygon<DVec2> {
    |                   +++++++

Is this a known issue, or an possibly incompatibility with crates I'm pulling in?

Here's my dependency list if it can help provide some context:

ordered-float = "4.5.0"
num = "0.4.3"
bevy = { version = "0.15", features = ["bevy_sprite", "wayland"] }
bevy_egui = "0.31.1"
avian2d = { git = "https://github.com/Jondolf/avian.git", branch = "main", default-features = false, features = ["2d", "f64", "parry-f64", "debug-plugin"] }
bevy_prototype_lyon = "0.13.0"
bevy_tweening = "0.12"
strum = "0.26.3"
strum_macros = "0.26.4"
rand = "0.8.5"
rand_distr = "0.4.3"
geo = "0.29.3"
bevy-inspector-egui = "0.28.0"
bevy-trait-query = "0.7"
hexx = "0.19.0"
big-brain = "0.22"

Let me know your thoughts, thanks! I appreciate any and all input!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions