Issue Type: Bug
When I launch VSCode on Mac from the Applications folder or via Spotlight Search the path is not correctly set. This means that when I try to run tasks from withing VSCode they fail to find the command. I've confirmed this by creating a test task which is this:
{
"version": "2.0.0",
"tasks": [
{
"command": "echo $PATH",
"type": "shell",
"label": "test task",
"problemMatcher": []
}
]
}
The output of this is /usr/bin:/bin:/usr/sbin:/sbin.
If, however, I launch VSCode from the terminal via open /Applications/Visual\ Studio\ Code.app then the path is set correctly.
VS Code version: Code 1.60.2 (7f6ab54, 2021-09-22T11:59:27.195Z)
OS version: Darwin x64 20.6.0
Restricted Mode: No
Remote OS version: Linux x64 5.11.0-1016-aws
Remote OS version: Linux x64 5.11.0-1016-aws
System Info
| Item |
Value |
| CPUs |
Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz (8 x 2300) |
| GPU Status |
2d_canvas: enabled gpu_compositing: enabled metal: disabled_off multiple_raster_threads: enabled_on oop_rasterization: enabled opengl: enabled_on rasterization: enabled skia_renderer: disabled_off_ok video_decode: enabled webgl: enabled webgl2: enabled |
| Load (avg) |
13, 30, 22 |
| Memory (System) |
16.00GB (0.92GB free) |
| Process Argv |
--crash-reporter-id 0e8bfe3-3aff-47ae-ae44-87a17d7621cd |
| Screen Reader |
no |
| VM |
0% |
| Item |
Value |
| Remote |
SSH: rainer.cvm.indeed.net |
| OS |
Linux x64 5.11.0-1016-aws |
| CPUs |
AMD EPYC 7571 (4 x 2199) |
| Memory (System) |
15.50GB (6.23GB free) |
| VM |
0% |
| Item |
Value |
| Remote |
SSH: rainer.cvm.indeed.net |
| OS |
Linux x64 5.11.0-1016-aws |
| CPUs |
AMD EPYC 7571 (4 x 2199) |
| Memory (System) |
15.50GB (6.23GB free) |
| VM |
0% |
Extensions (35)
| Extension |
Author (truncated) |
Version |
| overtype |
ada |
0.2.0 |
| npm-intellisense |
chr |
1.4.0 |
| vscode-markdownlint |
Dav |
0.44.3 |
| vscode-eslint |
dba |
2.1.25 |
| gitlens |
eam |
11.6.0 |
| vscode-npm-script |
eg2 |
0.3.22 |
| prettier-vscode |
esb |
9.0.0 |
| nasc-touchbar |
fel |
1.12.0 |
| gitlab-workflow |
Git |
3.31.0 |
| gc-excelviewer |
Gra |
3.0.44 |
| vscode-browser-sync |
jas |
1.3.1 |
| vscode-azureresourcegroups |
ms- |
0.4.0 |
| vscode-cosmosdb |
ms- |
0.18.1 |
| vscode-docker |
ms- |
1.17.0 |
| python |
ms- |
2021.9.1246542782 |
| vscode-pylance |
ms- |
2021.9.3 |
| jupyter |
ms- |
2021.8.2041215044 |
| jupyter-keymap |
ms- |
1.0.0 |
| remote-ssh |
ms- |
0.65.8 |
| remote-ssh-edit |
ms- |
0.65.8 |
| remote-wsl |
ms- |
0.58.2 |
| vscode-remote-extensionpack |
ms- |
0.21.0 |
| azure-account |
ms- |
0.9.8 |
| vscode-jest |
Ort |
4.1.2 |
| java |
red |
0.82.0 |
| LiveServer |
rit |
5.6.1 |
| vs-code-prettier-eslint |
rve |
3.0.4 |
| vscode-coverage-gutters |
rya |
2.8.1 |
| html-preview-vscode |
tht |
0.2.5 |
| vscodeintellicode |
Vis |
1.2.14 |
| vscode-java-debug |
vsc |
0.36.0 |
| vscode-java-dependency |
vsc |
0.18.8 |
| vscode-java-pack |
vsc |
0.18.5 |
| vscode-java-test |
vsc |
0.32.0 |
| vscode-maven |
vsc |
0.34.0 |
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
pythonvspyt639:30300192
pythontb:30283811
pythonvspyt551cf:30345471
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
pythondataviewer:30285071
pythonvsuse255:30340121
vscod805cf:30301675
pythonvspyt200:30340761
binariesv615:30325510
vsccppwt:30364497
pythonvssor306:30344512
bridge0708:30335490
pygetstartedt2:30371810
dockerwalkthru:30370836
bridge0723:30353136
pythonrunftest32:30373476
pythonf5test824:30373475
javagetstartedc:30364665
pythonvspyt187:30373474
pydsgst2:30361792
Issue Type: Bug
When I launch VSCode on Mac from the Applications folder or via Spotlight Search the path is not correctly set. This means that when I try to run tasks from withing VSCode they fail to find the command. I've confirmed this by creating a test task which is this:
{ "version": "2.0.0", "tasks": [ { "command": "echo $PATH", "type": "shell", "label": "test task", "problemMatcher": [] } ] }The output of this is
/usr/bin:/bin:/usr/sbin:/sbin.If, however, I launch VSCode from the terminal via
open /Applications/Visual\ Studio\ Code.appthen the path is set correctly.VS Code version: Code 1.60.2 (7f6ab54, 2021-09-22T11:59:27.195Z)
OS version: Darwin x64 20.6.0
Restricted Mode: No
Remote OS version: Linux x64 5.11.0-1016-aws
Remote OS version: Linux x64 5.11.0-1016-aws
System Info
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Extensions (35)
A/B Experiments