Error due to version mismatch between Rust Analyzer and Proc Macro server

⚓ Rust    📅 2026-05-09    👤 surdeus    👁️ 2      

surdeus

I get red squiggles on the code, and when I hover, or look at the 'problems' tab or the 'output' tab of the terminal, I get the error shown below. It s saying that my rust analyzer does not support the current (more recent) proc-macro server. But it compiles and runs without errors anyway!

I have tried using both release and pre-release versions of rust analyzer, without success

Thanks for any help you can offer!

2026-05-08T17:39:38.062004844-07:00 ERROR Failed to run proc-macro server from path /home/adam/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/libexec/rust-analyzer-proc-macro-srv, error: Custom { kind: Other, error: "The version of the proc-macro server (6) in your Rust toolchain is newer than the version supported by your rust-analyzer (5).\n This will prevent proc-macro expansion from working. Please consider updating your rust-analyzer to ensure compatibility with your current toolchain." }

I am using:

Ubuntu 24.04.4 LTS, VSCode 1.92.2

rust-analyzer v0.3.2319

toolchain: stable-x86_64-unknown-linux-gnu

cargo & rustc: 1.95.0

7 posts - 3 participants

Read full topic

🏷️ Rust_feed