fannheyward/coc-rust-analyzer

Some features are not available if rust-analyzer was installed with lower version of node in m1 mac

kbwo opened this issue · 1 comments

kbwo commented

Jump to definition in some places are not working if rust-analyzer was installed with lower version of node in m1 mac.
Example:

#[derive(Debug, StructOpt)]
#[structopt(global_settings = &[AppSettings::ColoredHelp])]
pub struct Args {
    #[structopt(short="j", long="json")]
    pub json: bool,
}

fn main() {
  // Jump to definition from this 'from_args' is not working, cause 'definition not found'.
  let mut args = Args::from_args();
}

This code causes issue, because process.arch returns x64 with node 15.5.0 or lower, so installed rust-analyzer is x86_64-apple-darwin.

I think this issue should be documented or fixed.
I'd like to send a PR, but I can't think of a smart solution, so please at least document the issue and required node version for m1.

kbwo commented

Thank You 🚀