lapce-rust
lapce-rust copied to clipboard
`Proc macro not expanded`
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).
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)
You should use rust-analyzer
that is compatible with your rustc
& cargo
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
There was a discussion earlier, regarding ra version in the plugin. https://github.com/lapce/lapce-rust/issues/29