VSCodium - rust-analyzer breaks after adding (some) dependencies

Hello there,

I am using rust-analyzer on VSCodium and the extension seems to break after I add any crates under dependencies in Cargol.toml (except for rand and a few others for some reason).

For example, in this instance, I have just added the image crate, and the "Rust Analyzer Language Server" section of the output tab spits out this after attempting to reload (and after any other times I try to reload):

[ERROR rust_analyzer::reload] failed to switch build data: rust-analyzer failed to run build scripts:
error: could not compile `rayon-core` due to 2 previous errors
error: could not compile `crossbeam-utils` due to 2 previous errors
error: could not compile `memoffset` due to 2 previous errors
error: could not compile `num-traits` due to 2 previous errors
error: could not compile `rayon` due to 2 previous errors
error: could not compile `lock_api` due to 2 previous errors
error: could not compile `futures-core` due to 2 previous errors
error: could not compile `crossbeam-epoch` due to 2 previous errors
error: could not compile `quote` due to 2 previous errors
error: could not compile `crc32fast` due to 2 previous errors
error: could not compile `proc-macro2` due to 2 previous errors
error: could not compile `syn` due to 2 previous errors

Notably, it gives zero explanation as to what the "2 previous errors" are, so I have no idea where to start looking.

This has the annoying effect of disabling most of the error and warning highlighting, so I would greatly appreciate any help that can be given.

P.S. My Cargo.toml file looks like this:

[package]
name = "ascii_art"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
image = "0.24.3"

P.P.S. After I remove the offending crate, everything goes back to normal.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.