lapce / lapce-rust

Apache License 2.0
80 stars 26 forks source link

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

Open Braymatter opened 1 year ago

Braymatter commented 1 year ago

image

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

sanjeevprasad commented 1 year ago

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

romancitodev commented 1 year ago

In windows doesn't work.

kaifastromai commented 1 year ago

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

kaifastromai commented 1 year ago

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

romancitodev commented 1 year ago

Because it necessary to add .exe to the command

HaoliangXu commented 1 year ago

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.