From c7911da1292e701f2c960d3cc534c5299dfed14c Mon Sep 17 00:00:00 2001 From: Roo Code Date: Fri, 21 Nov 2025 12:43:12 +0000 Subject: [PATCH] fix: resolve command not found errors in VSCode debug tasks with NVM - Wrap pnpm and npx commands in bash login shell to ensure NVM environment is loaded - Use bash -l -c to source shell configuration files (.bashrc, .zshrc, etc.) - Fixes issues where pnpm/npx are not found when running tasks through VSCode debug panel - Particularly affects users with NVM, ZSH, or other shell-managed Node installations Fixes #9469 --- .vscode/tasks.json | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 549a1174a9..918ec5baee 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -17,8 +17,14 @@ { "label": "watch:webview", "type": "shell", - "command": "pnpm --filter @roo-code/vscode-webview dev", + "command": "bash -l -c 'pnpm --filter @roo-code/vscode-webview dev'", "group": "build", + "options": { + "shell": { + "executable": "bash", + "args": ["-l", "-c"] + } + }, "problemMatcher": { "owner": "vite", "pattern": { @@ -39,8 +45,14 @@ { "label": "watch:bundle", "type": "shell", - "command": "npx turbo watch:bundle", + "command": "bash -l -c 'npx turbo watch:bundle'", "group": "build", + "options": { + "shell": { + "executable": "bash", + "args": ["-l", "-c"] + } + }, "problemMatcher": { "owner": "esbuild", "pattern": { @@ -61,8 +73,14 @@ { "label": "watch:tsc", "type": "shell", - "command": "npx turbo watch:tsc", + "command": "bash -l -c 'npx turbo watch:tsc'", "group": "build", + "options": { + "shell": { + "executable": "bash", + "args": ["-l", "-c"] + } + }, "problemMatcher": "$tsc-watch", "isBackground": true, "presentation": {