Hello,
I've been using Windows Subsystem for Linux, where my project is on the Ubuntu partition, and I have a Rust toolchain installed on Ubuntu, and also one on Windows, which is used by the IntelliJ RustRover (edit: actually, no, RR uses the Ubuntu-based toolchain). This worked fine until I upgraded to Windows 11 today, after which trying to use the Windows-based toolchain on Ubuntu-based projects fails:
PS Microsoft.PowerShell.Core\FileSystem::\\wsl.localhost\Ubuntu\home\oliverr\git\jati> cargo clippy
Checking jati v0.1.0 (\\wsl.localhost\Ubuntu\home\oliverr\git\jati)
error: incremental compilation: could not create session directory lock file: Incorrect function. (os error -2147024895)
|
= help: incremental compilation can be disabled by setting the environment variable CARGO_INCREMENTAL=0 (see https://doc.rust-lang.org/cargo/reference/profiles.html#incremental)
= help: the entire build directory can be changed to a different filesystem by setting the environment variable CARGO_TARGET_DIR to a different path (see https://doc.rust-lang.org/cargo/reference/config.html#buildtarget-dir)
error: could not compile `jati` (lib) due to 1 previous error
PS Microsoft.PowerShell.Core\FileSystem::\\wsl.localhost\Ubuntu\home\oliverr\git\jati>
It still works fine if I use the Ubuntu-based toolchain on Ubuntu-based projects, or the Windows-based toolchain on Windows-based projects.
Any ideas? Thanks!