Skip to content

Commit

Permalink
Merge pull request #18463 from benluiwj/fix/proc-macro-server-msg-imp…
Browse files Browse the repository at this point in the history
…rovement

Improve error message for too new proc-macro server
  • Loading branch information
lnicola authored Nov 2, 2024
2 parents d1fbfc6 + 1c71a50 commit f17a5bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/proc-macro-api/src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ impl ProcMacroProcessSrv {
match srv.version_check() {
Ok(v) if v > CURRENT_API_VERSION => Err(io::Error::new(
io::ErrorKind::Other,
format!(
"proc-macro server's api version ({v}) is newer than rust-analyzer's ({CURRENT_API_VERSION})"
format!( "The version of the proc-macro server ({v}) in your Rust toolchain is newer than the version supported by your rust-analyzer ({CURRENT_API_VERSION}).
This will prevent proc-macro expansion from working. Please consider updating your rust-analyzer to ensure compatibility with your current toolchain."
),
)),
Ok(v) => {
Expand Down

0 comments on commit f17a5bb

Please sign in to comment.