Open archaephyrryx opened 3 weeks ago
Thank you for the report. Could you please add the code causing this crash.
@rustbot label +S-needs-repro
This assertion detects when another process has corrupted the incremental compilation artifacts. Based on the issue title, it sounds like you're running cargo check
at the same time as some IDE is also trying to run the compiler. That sounds bad, the two compilations are probably corrupting each other's output.
it's easy to get conflicted or hang when two processes are checking at the same time, so for the daily project I'm working on, this is my always setting:
"rust-analyzer.check.overrideCommand": [
"cargo",
"check",
"--workspace",
"--message-format=json",
"--target-dir=/tmp/check-ckb",
],
You can use "rust-analyzer.cargo.targetDir": true
too. That will make rust-analyzer pick a subdirectory in target
as target directory for all rust-analyzer invoked cargo commands.
Meta
rustc --version --verbose
:Error output