rust-lang / rust-lang/rust-analyzer

Add `cargo run` run configration for any position inside a bin target

Open
#4,373 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-ide C-feature E-medium S-actionable
Dominant language
Rust
Stars
16.9k
Forks
2.2k
Avg merge
1d 12h
Merged PRs (30d)
72

Description

Normally, when using Rust Analyzer: Run I get presented with three options: run, check and test. However, sometimes the run option simpy disappears from the list and I can only do check and test.

It's of course possible that I'm missing something obvious here - apologies if that is the case. Please let me know if you need any addition information regarding this!

I'm running rust-analyzer version 0.2.159

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Start by reproducing the missing run option with Rust Analyzer: Run at different positions inside a binary target, then trace how the run, check, and test choices are discovered; done means a cargo run configuration is available from any position inside that target.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.