[Bug]: vscode config "PATH:" ".console-ninja/.bin:${env:PATH}" causes nx console fail
What happened?
i am using nx console plugin and nvm, and noticed that this was added to settings and it cause 'yarn not found' error.
"terminal.integrated.env.linux": {
"PATH": "/home/kenan/.console-ninja/.bin:${env:PATH}"
}
Version
v0.0.98
Steps to reproduce (or sample repo)
- click on serve from nx console inside vscode

- yarn command not found error is shown

If i remove this from vscode, everything can be found.
"terminal.integrated.env.linux": {
"PATH": "/home/kenan/.console-ninja/.bin:${env:PATH}"
}
I am using nvm, i suppose that 'yarn' could not be found because somehow nvm path got removed.
Could this be caused by incorrectly appending the path environmental variables?
Log output
zsh:1: command not found: yarn
* The terminal process "/usr/bin/zsh '-c', 'yarn nx serve go-advisor --configuration=development'" terminated with exit code: 127.
* Terminal will be reused by tasks, press any key to close it.
What does which yarn return if you return the setting back to
"terminal.integrated.env.linux": {
"PATH": "/home/kenan/.console-ninja/.bin:${env:PATH}"
}
and execute the command in a new integrated terminal session?
I'm getting the same on a mac when running a task in VSCode:
/page/index.js:150:13)
* Executing task: pnpm run xyz
* The terminal process "/bin/zsh '-c', 'pnpm run xyz'" failed to launch (exit code: 127).
* Terminal will be reused by tasks, press any key to close it.
Tried removing the setting that console-ninja set (sneaky!), but it re-appeared. Having to disable the extension.
@NikGovorov to answer your question, when I run which pnpm using a task, I get the following:
Executing task: which pnpm
* The terminal process failed to launch: Path to shell executable "which pnpm" does not exist.
It looks like a bug in VS Code, we've deleted the setting in the latest version of Console Ninja extension.
It looks like a bug in VS Code, we've deleted the setting in the latest version of Console Ninja extension.
thanks. my pnpm was suddenly failing etc.
Blocked by https://github.com/microsoft/vscode/issues/178577