You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Your installed proc-macro server is too new for your rust-analyzer. API version: {}, server version: {process_version}. \
81
+
This will prevent proc-macro expansion from working. Please consider updating your rust-analyzer to ensure compatibility with your current toolchain.",
82
+
version::CURRENT_API_VERSION
83
+
)))
84
+
}
85
+
Ok(v) => {
86
+
tracing::info!("Proc-macro server version: {v}");
87
+
srv.version = v;
88
+
if srv.version >= version::RUST_ANALYZER_SPAN_SUPPORT
89
+
&& letOk(mode) = srv.enable_rust_analyzer_spans()
90
+
{
91
+
srv.protocol = Protocol::LegacyJson{ mode };
90
92
}
91
-
93
+
tracing::info!("Proc-macro server protocol: {:?}", srv.protocol);
94
+
Ok(srv)
95
+
}
96
+
Err(e) => {
92
97
tracing::info!(%e,"proc-macro version check failed");
93
-
returnErr(io::Error::other(format!(
94
-
"proc-macro server version check failed: {e}"
95
-
)));
98
+
Err(io::Error::other(format!("proc-macro server version check failed: {e}")))
"Your installed proc-macro server is too new for your rust-analyzer. API version: {}, server version: {process_version}. \
109
-
This will prevent proc-macro expansion from working. Please consider updating your rust-analyzer to ensure compatibility with your current toolchain.",
110
-
version::CURRENT_API_VERSION
111
-
)));
112
-
}
113
-
114
-
tracing::info!("proc-macro server version: {version}");
0 commit comments