Vscode: Terminate task then restart: "Terminal with ID 2 does not exist"

Created on 31 Jul 2017  路  4Comments  路  Source: microsoft/vscode

I have a task with this config:

{
    "version": "2.0.0",
    "tasks": [
        {
            "type": "npm",
            "script": "watch",
            "isBackground": true,
            "problemMatcher": "$gulp-tsc",
            "group": {
                "kind": "build",
                "isDefault": true
            }
        }
    ]
}

I start the build task, then terminate it with Tasks: Terminate task. When I start it again I get an error popup, "Terminal with ID 2 does not exist".

bug important tasks verified

Most helpful comment

I can't start a task at all anymore until I reload the window, even if I create a new terminal.

All 4 comments

I can't start a task at all anymore until I reload the window, even if I create a new terminal.

getting this on windows while use WSL

with bash as the shell

This does still happen to me? Why closed?

Ensure you're on the latest version, and if you see an issue like this, open a new issue with as many details as possible.

Was this page helpful?
0 / 5 - 0 ratings