Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Braymatter opened this issue Jul 27, 2023 · 6 comments

Comments

@Braymatter
Copy link

image

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

@sanjeevprasad
Copy link

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

@romancitodev
Copy link

In windows doesn't work.

@kaifastromai
Copy link

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

@kaifastromai
Copy link

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
Copy link

Because it necessary to add .exe to the command

@HaoliangXu
Copy link

HaoliangXu commented Sep 15, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants