-
Notifications
You must be signed in to change notification settings - Fork 88
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
cannot find type DVec2 in this scope after cargo clean #266
Comments
I did some research,
|
That sounds like an accurate suspicion. I created a fresh project just with these dependencies and it's triggering the same compile error:
I'm curious how the transformation from Vec2 to DVec2 is occurring too. My first thought would be the "f64", "parry-f64" feature flags for avian2d, however I'm getting the same error even with those flags removed. |
Hmm, I'm getting the same build error just with bevy and bevy_prototype_lyon dependencies.
Anyone with deeper rust knowledge know how the Vec2 gets changed to a DVec2 at compile time in this scenario? #[derive(Debug, Clone, PartialEq)]
pub struct Polygon {
pub points: Vec<Vec2>,
pub closed: bool,
} The compiler is reporting this as the root of the error, but it's a Vec2 in bevy_prototype_lyon's source code:
|
Searching for DVec2 in the bevy repo returns some DVec2 definition wrapped in a macro:
The documentation for said macro is follows:
I'm not sure if this is the right rabbit hole to follow, but it possibly seemed relevant. I need to brush up on rust macros to see if this could be the culprit. |
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:
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:
Let me know your thoughts, thanks! I appreciate any and all input!
The text was updated successfully, but these errors were encountered: