Hey i have been getting this error , i am using Ubuntu WSL2 , my project is in WSL filesystem and my rustup toolchain version is 1.46.0 . But when i run dfx deploy i get
Caused by: Failed while trying to deploy canisters.
Failed to build call canisters.
Failed while trying to build all canisters.
Failed while trying to build all canisters in the canister pool.
The pre-build all step failed with an embedded error: Failed step_prebuild_all.: 'cargo locate-project' failed: error: Found argument '--message-format' which wasn't expected, or isn't valid in this context
USAGE:
cargo locate-project [OPTIONS]
For more information try --help