I am cloning this repository
https://github.com/dalek-cryptography/bulletproofs
And rust-analyzer gives me the following error for cargo.toml
rust-analyzer failed to load workspace: Failed to read Cargo metadata from Cargo.toml file /Users/user/bulletproofs-2/Cargo.toml, cargo 1.38.0-nightly (d0f828419 2019-07-23): Failed to run `cargo metadata --manifest-path /Users/user/bulletproofs-2/Cargo.toml` in `/Users/user/bulletproofs-2`: `cargo metadata` exited with an error: error: Found argument '--filter-platform' which wasn't expected, or isn't valid in this context
USAGE:
cargo metadata --format-version <VERSION> --manifest-path <PATH>
For more information try --help
I've read that one common issue with this is cargo not being in $PATH, but for me cargo works from the terminal. Any suggestions?