lapce / lapce-rust

Apache License 2.0
80 stars 26 forks source link

serverPath setting not respected/working #32

Closed ShyOnyx closed 1 year ago

ShyOnyx commented 1 year ago

I'm getting the proc macro not expanded: Proc-macro dylib loading failed: unsupported metadata version 7 error.

I've tried installing rust-analyzer via pacman and setting [config.serverPath] in volt.toml to default = "/usr/bin/rust-analyzer", but that either doesn't actually do anything, or is somehow not checking the correct path.

I've also tried renaming rust-analyzer in /usr/bin to rust-analyzer-x86_64-unknown-linux-gnu, did not work.

Temporary solution:

Copy rust-analyzer from /usr/bin to lapce-rust directory and rename to rust-analyzer-x86_64-unknown-linux-gnu.

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.

This is a temporary/permanent workaround

romancitodev commented 1 year ago

In windows doesn't work.

ShyOnyx commented 1 year ago

That works! I was using an outdated fix, I apologize.

This issue is solved. Thank you!