Skip to content

The task provider for "C/C++" tasks unexpectedly provided a task of type "shell". #5388

@sarahkittyy

Description

@sarahkittyy

VSCode version:

1.45.0-insider
a0fe37870c42e0704a492cdc6b8550b4cf23f63c
x64

vscode-cpptools version: 0.28.0-insiders

Here is my tasks.json.

{
	"version": "2.0.0",
	"tasks": [
		{
			"label": "gen",
			"type": "shell",
			"command": "cmake",
			"args": [
				"-DCMAKE_BUILD_TYPE=DEBUG",
				".."
			],
			"options": {
				"cwd": "build"
			}
		},
		{
			"label": "make",
			"type": "shell",
			"command": "make",
			"args": [
				
			],
			"group": {
				"kind": "test",
				"isDefault": true
			},
			"dependsOn": "gen",
			"options": {
				"cwd": "build"
			}
		},
		{
			"label": "run",
			"type": "shell",
			"command": "./build/infidungeon",
			"args": [
				
			],
			"group": {
				"kind": "build",
				"isDefault": true
			},
			"dependsOn": "make"
		}
	]
}

If I change my code, or otherwise sometimes completely randomly, when I run task run, I get this message:
image
And when I hit, "Show output" I see:

The task provider for "C/C++" tasks unexpectedly provided a task of type "shell".
The task provider for "C/C++" tasks unexpectedly provided a task of type "shell".

Is something wrong with my tasks.json? I can't replicate this consistently? This does not happen when all extensions are disabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfixedCheck the Milestone for the release in which the fix is or will be available.tasks/build/debugAn issue relating to tasks.json (e.g. build issues)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions