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 #27

Open
M1ngXU opened this issue Mar 23, 2023 · 3 comments
Open

Proc macro not expanded #27

M1ngXU opened this issue Mar 23, 2023 · 3 comments

Comments

@M1ngXU
Copy link

M1ngXU commented Mar 23, 2023

proc macro not expanded: Proc-macro dylib loading failed: unsupported metadata version 7

Running with the latest nightly rust version. Same setup works on vscode (with RA).

@tukanoidd
Copy link

This definitely should be addressed. Have the same thing with leptos #[component] macros, can't work on a project with this amazing editor cuz everything breaks. Using nightly as well, and the setup works with helix, on Void Linux (and editor is manually compiled with cargo build --release, if that makes any difference, because I remember it working on Arch with a precompiled package before)

@panekj
Copy link
Contributor

panekj commented May 6, 2023

You should use rust-analyzer that is compatible with your rustc & cargo

@akhildevelops
Copy link

I also faced the same issue. After switching to rust-analyzer(ra) latest release there are no errors.

Currently the plugin uses old ra that dates to 2023-01 release

To solve the issue follow below steps:

  • install ra rustup component add rust-analyzer
  • get the path of ra rustup which rust-analyzer
  • Set the path in rust-plugin settings

image

There was a discussion earlier, regarding ra version in the plugin. #29

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

4 participants