Open geometryolife opened 1 year ago
You can either remove one of your binaries from your Cargo.toml or you can try adding the bin you want to run to rust-cargo-default-arguments
. Why do you need two binaries ?
This is actually a learning repository with many small projects created using cargo new
, I want to run this small project after I open a small project, not run all the projects. If I don't use lsp it seems to work for my purpose, when I enable lsp it gives this error.
It should be the same result when you run cargo run in your shell.
It should be the same result when you run cargo run in your shell.
If I run it in the shell, I get the correct result and no errors.
I think it's because rust-mode
can't locate the nearest project's Cargo.tmol
file when running the cargo run
command.
do you still need help?
When I use
C-c C-c C-r
to run the currently open program, this error will be reported, how can I fix it?