I'm trying to use vscode with rls extension.But I got some error from console:
Executing task: rustup component add rust-src --toolchain stable-x86_64-pc-windows-msvc
info: downloading component 'rust-src'
info: installing component 'rust-src'
info: rolling back changes
error: failed to install component: 'rust-src', detected conflict: '"lib/rustlib/src/rust/Cargo.lock"'
Versions:
rustc 1.39.0 (4560ea788 2019-11-04)
cargo 1.39.0 (1c6ec66d5 2019-09-30)
rls 1.39.0 (80a1d34 2019-09-20)
That's weird. What toolchains and associated toolchains do you have installed? Can you try reinstalling (removing and installing) the entire toolchain and see if the issue persists?
That's weird. What toolchains and associated toolchains do you have installed? Can you try reinstalling (removing and installing) the entire toolchain and see if the issue persists?
It's working fine after reinstalling toolchains.Thx.
This happens to me as well. Maybe there are some issues with the recent nightly updates (I'm using nightly rust, msvc toolchain).
Reinstalling works for me as well, though.
I had a similar issue when trying to update 1.43.0 -> 1.44.0:
error: failed to install component: 'rust-src', detected conflict: '"lib/rustlib\\manifest-rust-src"'
Reinstalling the toolchain (stable-x86_64-pc-windows-msvc) helped.
thanks, reinstalling works for me
Same problem and reinstalling works.
As nobody else has said this, the following commands fixed it
rustup toolchain list
# get the name of the installed toolchain(s) and use that in the next line
rustup toolchain uninstall stable-x86_64-unknown-linux-gnu
rustup toolchain install stable
Most helpful comment
It's working fine after reinstalling toolchains.Thx.