afonsolage / bevy_ecss

Bevy crate which uses a subset of CSS to update Bevy ECS components
Apache License 2.0
98 stars 11 forks source link

error with cargo run "rust current package believes it's in a workspace when it's" #22

Open syapk opened 1 year ago

syapk commented 1 year ago

i 've this prob' with "windows" && "cargo run --release --example alpha" : "...rust current package believes it's in a workspace when it's..."

"my" solution, into cargo.toml, add:

[workspace] members = [ ]

TheBeardedQuack commented 1 year ago

I don't seem to have any problem building for Windows.

I have noticed an issue with rust-analyzer though, if you're working on a file that's not currently part of your project you may see a prompt to configure rust-analyzer. If you click that prompt it'll generate ${workspaceRoot}/.vscode/settings.json and configure rust-analyzer, which can cause this error message.

Please check if you have a .vscode/settings.json file with any config for rust-analyzer, try remove it and see if you can build.