-
Notifications
You must be signed in to change notification settings - Fork 38.2k
Closed
Labels
*duplicateIssue identified as a duplicate of another issue(s)Issue identified as a duplicate of another issue(s)tasksTask system issuesTask system issues
Description
- VSCode Version: 1.18.0 (public)
- OS Version: macOS 10.13.1 (High Sierra)
- Reproduces without extensions: Yes
Steps to reproduce:
- Have a ${workspaceRoot} in something like
/Users/me/dev folder/project/ - Install a local version of tsc using
npm i typescript --save-dev - Configure the default typescript build task (using the
tsc: build - tsconfig.jsonpreset) - It will generate the following:
{
"version": "2.0.0",
"tasks": [
{
"type": "typescript",
"tsconfig": "tsconfig.json",
"problemMatcher": [
"$tsc"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
- If you run the build task, it will generate the following error:
> Executing task: /Users/me/dev folder/project/node_modules/.bin/tsc -p "/Users/me/dev folder/project/tsconfig.json" <
/bin/bash: /Users/me/dev: No such file or directory
The terminal process terminated with exit code: 127
Terminal will be reused by tasks, press any key to close it.
If I replicate the task manually, using the following
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "'${workspaceRoot}/node_modules/.bin/tsc'",
"args": [
"-p",
"'${workspaceRoot}/tsconfig.json'"
],
"options": {
"cwd": "${workspaceRoot}"
},
"problemMatcher": [
"$tsc"
],
"group": {
"kind": "build",
"isDefault": true
}
}
}
it works fine, since the executable is wrapped in quotes.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
*duplicateIssue identified as a duplicate of another issue(s)Issue identified as a duplicate of another issue(s)tasksTask system issuesTask system issues