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 server crashed #9341

Closed
Volker-Weissmann opened this issue Jun 19, 2021 · 3 comments
Closed

proc macro server crashed #9341

Volker-Weissmann opened this issue Jun 19, 2021 · 3 comments

Comments

@Volker-Weissmann
Copy link

I'm not sure if this might be a case of "proc macros are not supported: #6029", but because an explicit error message is shown, I don't think so.
The code below makes vscode show me

proc macro server crashedrust-analyzermacro-error

if I hover above the tex_expr line.

Rust analyzer language server output:

[ERROR proc_macro_api::process] proc macro server crashed, server process state: Ok(Some(ExitStatus(ExitStatus(139)))), server request error: Os { code: 32, kind: BrokenPipe, message: "Broken pipe" }

Rust analyzer client output:

INFO [6/19/2021, 10:49:19 PM]: Extension version: 0.2.621
INFO [6/19/2021, 10:49:19 PM]: Using configuration {
  cargoRunner: null,
  runnableEnv: null,
  inlayHints: {
    enable: true,
    smallerHints: true,
    chainingHints: true,
    maxLength: 25,
    parameterHints: true,
    typeHints: true
  },
  updates: { channel: 'stable', askBeforeDownload: true },
  server: { path: null, extraEnv: null },
  trace: { server: 'off', extension: false },
  debug: {
    engine: 'auto',
    sourceFileMap: {
      '/rustc/<id>': '${env:USERPROFILE}/.rustup/toolchains/<toolchain-id>/lib/rustlib/src/rust'
    },
    openDebugPane: false,
    engineSettings: {}
  },
  assist: {
    importGranularity: 'crate',
    importEnforceGranularity: false,
    importPrefix: 'plain',
    importGroup: true
  },
  callInfo: { full: true },
  cargo: {
    autoreload: true,
    allFeatures: false,
    features: [],
    runBuildScripts: true,
    useRustcWrapperForBuildScripts: true,
    noDefaultFeatures: false,
    target: null,
    noSysroot: false
  },
  checkOnSave: {
    enable: true,
    allFeatures: null,
    allTargets: true,
    command: 'check',
    noDefaultFeatures: null,
    target: null,
    extraArgs: [],
    features: null,
    overrideCommand: null
  },
  completion: {
    addCallArgumentSnippets: true,
    addCallParenthesis: true,
    postfix: { enable: true },
    autoimport: { enable: true }
  },
  diagnostics: {
    enable: true,
    enableExperimental: true,
    disabled: [],
    remapPrefix: {},
    warningsAsHint: [],
    warningsAsInfo: []
  },
  files: { watcher: 'client', excludeDirs: [] },
  highlighting: { strings: true },
  hoverActions: {
    debug: true,
    enable: true,
    gotoTypeDef: true,
    implementations: true,
    run: true,
    linksInHover: true
  },
  lens: {
    debug: true,
    enable: true,
    implementations: true,
    run: true,
    methodReferences: false,
    references: false
  },
  linkedProjects: [],
  lruCapacity: null,
  notifications: { cargoTomlNotFound: true },
  procMacro: { enable: true, server: null },
  runnables: { overrideCargo: null, cargoExtraArgs: [] },
  rustcSource: null,
  rustfmt: {
    extraArgs: [],
    overrideCommand: null,
    enableRangeFormatting: false
  },
  workspace: { symbol: { search: { scope: 'workspace', kind: 'only_types' } } }
}
INFO [6/19/2021, 10:49:19 PM]: PersistentState: {
  lastCheck: undefined,
  nightlyReleaseId: undefined,
  serverVersion: '0.2.621'
}
INFO [6/19/2021, 10:49:19 PM]: Using server binary at /home/volker/.config/Code - OSS/User/globalStorage/matklad.rust-analyzer/rust-analyzer-x86_64-unknown-linux-gnu
$ "/home/volker/.config/Code - OSS/User/globalStorage/matklad.rust-analyzer/rust-analyzer-x86_64-unknown-linux-gnu" --version
rust-analyzer 28e32fe40 2021-05-31 stable

main.rs:

#[macro_use]
extern crate math_dsl_macro;
fn main() {
    tex_expr!("1+2");
}

Cargo.toml:

[package]
name = "bug"
version = "0.1.0"
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
math_dsl_macro = { git = "https://gitlab.com/volkerweissmann/math_dsl_macro.git", rev = "78e657687bf50b3f407a537f1b4b59a66ad8755d" }
@flodiebold
Copy link
Member

Probably a duplicate of #8925. Are you using rust nightly?

@Volker-Weissmann
Copy link
Author

Yes

$ rustc --version
rustc 1.55.0-nightly (ce1d5611a 2021-06-18)

@lnicola lnicola closed this as completed Jun 20, 2021
@lnicola
Copy link
Member

lnicola commented Jun 20, 2021

Yeah, they're currently broken with nightly.

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

3 participants