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

`Proc macro not expanded`

Open M1ngXU opened this issue 1 year ago • 3 comments

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).

M1ngXU avatar Mar 23 '23 19:03 M1ngXU

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)

tukanoidd avatar May 06 '23 20:05 tukanoidd

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

panekj avatar May 06 '23 20:05 panekj

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. https://github.com/lapce/lapce-rust/issues/29

akhildevelops avatar Jun 14 '23 18:06 akhildevelops