mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
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
This commit is contained in:
parent
038f830bf6
commit
c7911da129
1 changed files with 21 additions and 3 deletions
24
.vscode/tasks.json
vendored
24
.vscode/tasks.json
vendored
|
|
@ -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": {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue