Skip to content

rust-project.json runnable filtering always selects the first Run runnable #20435

@lukasoyen

Description

@lukasoyen

The filtering of bin runnables from the rust-project.json always selects the first Run runnable. In a project with a lot of runnables, this breaks the Run / Debug integration in VSCode.

rust-analyzer version: 3d2c40d705f5663fccf4a4d89ea457876ac32df6 (2025-08-11)

  • In target_spec_for_crate() runnables are copied over instead of selected by current crate / build info. This is one place where filtering could be expected.
  • In runnable_args() the first RunnableKind::Run is selected. This is another place where filtering could be expected.

Related:

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions