This project with a rust-project.json file fails to perform the cargo check successfully with rust-analyzer.
To see the issue, you must:
- Build the image
docker build -t rust-project-json-test .
. - Run the container which drops you into a bash terminal:
docker run -it --rm rust-project-json-test
. - Open
nvim
and execute:PlugUpdate
to download the LSP plugins. - Quit nvim and open run
nvim src/main.rs
. You should see a compilation error after a short wait. - Quit nvim and rename
rust-project.json.old
torust-project.json
and runnvim src/main.rs
again. This time you shouldn't get any compilation errors.