Skip to content

Document setup of rust-analyzer specifically for rustc hacking atop "popular" IDE/editors #554

@pnkfelix

Description

@pnkfelix

I took an informal poll at the last compiler triage meeting to get an idea of what editors/IDEs the current set of rustc developers use to hack on rustc.

The reason I asked the question was that I wanted to know which environments we should aim to document decently in terms of "how do I set up rust-analyzer here", and, if necessary, "how do I make rust-analyzer work well with rustc here"

The answers:

  • vim: 6 (4 of whom already use rust-analyzer)
  • VS Code: 5 (3 of whom already use rust-analyzer)
  • emacs: 2
  • Sublime Text: 1
  • IntelliJ Rust: 1

I'm guessing there's no point in "integrating" rust-analyzer with IntelliJ Rust.

But the other four cases are worth documenting.

  • VS Code is the primary target for rust-analyzer, and so documenting that should be trivial
    • (mostly, AFAICT, about how to properly open the rustc project so that the IDE knows where to look for the Cargo.toml.)
  • vim is the most popular editor so I guess it should get the most attention
    • matklad did warn me ahead of time that it may be difficult to document since there are multiple lsp extensions available for it.
  • I use emacs and I mess it up all the time so I will be happy to write down the concrete set up steps.
  • We'll see about Sublime Text

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions