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

Proc-macro panicked: proc-macro server exited with signal: 6

Open pi314ever opened this issue 1 year ago • 2 comments

rust-analyzer version: (eg. output of "rust-analyzer: Show RA Version" command, accessible in VSCode via Ctrl/⌘+Shift+P) 2024-08-27, installed through Mason

rustc version: (eg. output of rustc -V) 1.75.0

editor or extension: (eg. VSCode, Vim, Emacs, etc. For VSCode users, specify your extension version; for users of other editors, provide the distribution if applicable) neovim v0.10.2

relevant settings: (eg. client settings, or environment variables like CARGO, RUSTC, RUSTUP_HOME or CARGO_HOME)

repository link (if public, optional): (eg. rust-analyzer) cargo.features = "all", checkOnSave.command = "clippy"

code snippet to reproduce:

#[derive(Debug)]
struct Test {}

I have been encountering this bug while working on a project within a Docker environment that manually installs Rust and rust-analyzer, and I have not been able to figure out why. Any tips on how to diagnose this issue would be greatly appreciated.

pi314ever avatar Aug 30 '24 00:08 pi314ever

That snippet there doesn't even involve the proc-macro server so this is likely something odd with your setup, can't tell you what though unfortunately

Veykril avatar Aug 30 '24 05:08 Veykril

Signal 6 is SIGABRT, so some kind of abort().

lnicola avatar Aug 30 '24 05:08 lnicola

Sorry that was a bad example. I am seeing this a lot with functions with tracing:

struct Test {}
impl Test {
  #[instrument(skip(self))]
  fn a(&self, b: usize, c: usize) {
     // Some things
  }
}

This causes my setup to highlight all of the function under the proc-macro server error with exit code 6 or 11. All other diagnostics within that function are not shown.

pi314ever avatar Sep 05 '24 22:09 pi314ever

@Veykril I have updated the example errors I am encountering. Can you please look at this again?

pi314ever avatar Sep 25 '24 18:09 pi314ever

Seems like this is only happening for Mason installed rust-analyzer and not rustacean.nvim's version. This may be a bug on Mason's integration?

pi314ever avatar Sep 25 '24 19:09 pi314ever

I still have this issue . Is this problem solved???

Image

yuyang-ok avatar Jan 22 '25 01:01 yuyang-ok

@pi314ever I think I am not using mason installed rust-analyzer. I think I am using rust-analyzer installed via rustup.

I am still have this issue.

yuyang-ok avatar Jan 22 '25 02:01 yuyang-ok

Same issue with no mason, in neovim, rustaceanvim and latest rust-analyzer

39george avatar Apr 22 '25 05:04 39george