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

Compilation fails with debug-render-3d feature disabled #598

Closed
Seldom-SE opened this issue Dec 2, 2024 · 2 comments · Fixed by #601
Closed

Compilation fails with debug-render-3d feature disabled #598

Seldom-SE opened this issue Dec 2, 2024 · 2 comments · Fixed by #601

Comments

@Seldom-SE
Copy link

On main (currently ce3847c),

bevy_rapier3d = { git = "https://github.com/dimforge/bevy_rapier", rev = "ce3847c", default-features = false, features = [
    "dim3",
    "async-collider",
] }

fails to compile with

error[E0412]: cannot find type `ColliderDebugColor` in this scope
   --> /home/seldom/.cargo/git/checkouts/bevy_rapier-26af51cff3486e5b/ce3847c/bevy_rapier3d/../src/plugin/plugin.rs:213:30
    |
213 |             .register_type::<ColliderDebugColor>()
    |                              ^^^^^^^^^^^^^^^^^^ not found in this scope
    |
help: you might be missing a type parameter
    |
183 | impl<PhysicsHooks, ColliderDebugColor> Plugin for RapierPhysicsPlugin<PhysicsHooks>
    |                  ++++++++++++++++++++

error[E0412]: cannot find type `ColliderDebugColor` in this scope
   --> /home/seldom/.cargo/git/checkouts/bevy_rapier-26af51cff3486e5b/ce3847c/bevy_rapier3d/../src/plugin/plugin.rs:218:30
    |
218 |             .register_type::<ColliderDebugColor>();
    |                              ^^^^^^^^^^^^^^^^^^ not found in this scope
    |
help: you might be missing a type parameter
    |
183 | impl<PhysicsHooks, ColliderDebugColor> Plugin for RapierPhysicsPlugin<PhysicsHooks>
    |                  ++++++++++++++++++++

For more information about this error, try `rustc --explain E0412`.
error: could not compile `bevy_rapier3d` (lib) due to 2 previous errors

but this successfully compiles:

bevy_rapier3d = { git = "https://github.com/dimforge/bevy_rapier", rev = "ce3847c", default-features = false, features = [
    "dim3",
    "async-collider",
    "debug-render-3d",
] }
Vrixyz added a commit to Vrixyz/bevy_rapier that referenced this issue Dec 3, 2024
@Vrixyz Vrixyz closed this as completed in 6d7b84b Dec 4, 2024
@Vrixyz
Copy link
Contributor

Vrixyz commented Dec 4, 2024

Thanks for the report!

@Seldom-SE
Copy link
Author

Thank you for the fix ❤️

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

Successfully merging a pull request may close this issue.

2 participants