rust-lang / rls

Repository for the Rust Language Server (aka RLS)
Other
3.53k stars 257 forks source link

error[E0514]: found crate `rand_core` compiled by an incompatible version of rustc #1754

Open Machu101 opened 2 years ago

Machu101 commented 2 years ago
/home/matthewquijano/.cargo/registry/src/github.com-1ecc6299db9ec823/ff-0.10.0/src/lib.rs:21:5 21 use rand_core::RngCore; ^^^^^^^^^

= help: please recompile that crate using this compiler (rustc 1.51.0 (2fd73fabe 2021-03-23)) = note: the following crate versions were found: crate rand_core compiled by rustc 1.56.1 (59eed8a2a 2021-11-01):

Can anyone help me with this? Trying to run a test on a smart contract and this error keeps popping up. Now I read in another thread with a similar problem that it had something to do with Rust being installed twice. I have Rust installed in my windows Usr folder, as well as my \wsl$\Ubuntu-18.04, since I am using Linux virtual machine to run rust within vscode. Any help would be greatly appreciated.