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

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

Closed
kbwo opened this issue Apr 24, 2022 · 1 comment
Assignees

Comments

@kbwo
Copy link

kbwo commented Apr 24, 2022

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
Copy link
Author

kbwo commented May 4, 2022

Thank You 🚀

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

2 participants