lapce-rust icon indicating copy to clipboard operation
lapce-rust copied to clipboard

Proc Macro not expanded, Unsupported Metadata Version 7 - Rustc v1.70.0

Open Braymatter opened this issue 1 year ago • 6 comments

image

Looks like proc-macros are having some issuse with the latest downloaded browser build of Lapce / Rust-Analyzer

Braymatter avatar Jul 27 '23 19:07 Braymatter

Open Settings (Ctrl + .) goto "Plugin Settings" > "Rust" Change "Server Path" to "/usr/bin/rust-analyzer" or whatever it is in your case.

sanjeevprasad avatar Jul 31 '23 08:07 sanjeevprasad

In windows doesn't work.

romancitodev avatar Jul 31 '23 18:07 romancitodev

Can confirm it does not work on windows with latest release of lapce. Says "server path {__} couldn't be found".

kaifastromai avatar Aug 07 '23 14:08 kaifastromai

A work around is to, instead of typing the full path to the executable on windows (~/.cargo/bin/rust-analyzer) (the tilde of course replaced with C:/Users/{you}), just fill in rust-analyzer.exe. For some reason, to resolve the server path, it first passes it to the cmd "where" command, which does not resolve full paths, apparently. I'm not sure why this is done or why it would be necessary--it may have to do with wasm and such. I assume *nix behaves differently

kaifastromai avatar Aug 07 '23 14:08 kaifastromai

Because it necessary to add .exe to the command

romancitodev avatar Aug 08 '23 02:08 romancitodev

I got the same problem, just the version is 8. I'm on macos, can't find where rust-anaylzer is

Edit: I just found out, I have to type the full path (not ~/../..), and with "rust-analyzer" in the end.

HaoliangXu avatar Sep 15 '23 19:09 HaoliangXu