Skip to content

VSCode tasks not working after recent update #17436

Closed
@IDEDARY

Description

@IDEDARY

VSCode tasks are broken again after latest update. Likely related: #16950

rust-analyzer version: v0.3.2002

rustc version: rustc 1.78.0 (9b00956e5 2024-04-29)

editor or extension: VSCode

relevant settings:

// .vscode/tasks.json
{
	"version": "2.0.0",
	"tasks": [
		{
			"type": "cargo",
			"command": "run",
			"args": ["--bin", "example_minimal"],
			"problemMatcher": [
				"$rustc"
			],
			"group": "build",
			"label": "rust: cargo run"
		}
	]
}

Error:

Error: The cargo task detection didn't contribute a task for the following configuration:
{
    "type": "cargo",
    "command": "run",
    "problemMatcher": [
        "$rustc"
    ],
    "group": "build",
    "label": "rust: cargo run"
}
The task will be ignored.

STDOUT:

 *  Executing task: run --bin example_minimal 
 *  The terminal process failed to launch: Path to shell executable "run" does not exist.

Metadata

Metadata

Assignees

Labels

C-bugCategory: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions