-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
env issues on MacOS #526
Comments
the env and ENOENT issues have come up quite a bit, let's see if we can nail them:
You can see it might not use your favor shell's env but the one specified in environ(7). You can try |
Not sure I follow, shouldn't the env be inherited if I start code from cli? My env.shell is zsh, but that shouldn't really matter as long as I have a PATH containing the binaries at hand in the env that started code? env is chained through, right? I mean I can start do bash -> fish -> zsh and keep my PATH. Either way, I've tried:
And I still get the same behaviour. I do have env.PATH containing the binaries that this plugin can't spawn:
|
please see #741 (comment) |
No matter my settings I get some version of ENOENT when vscode-jest spawns. The issue is that neither
node
nornpm
is on the path in whatever context that gets spawned.Looking at vscode docs it seems that this should be honoured:
"terminal.integrated.automationShell.osx": "/usr/local/Cellar/fish/3.0.2/bin/fish",
but it doesn't seem to be. However, I have npm and node binaries in my path for all shells, bash, zsh and fish so probably not the root issue. I remember I had problems with MacOS and env in atom/vscoce a few years back, but I think it has been smooth for quite some time now.
I also do start vscode from command line. So it should inherit env, no?
I use nvm and I've tried running with:
npm test --
nvm use 10; npm test --
node_modules/.bin/jest
Nothing works. No binaries are present.
Environment
node -v
: ❯ v10.17.0npm -v
: 6.13.1npm ls jest
ornpm ls react-scripts
(if you haven’t ejected): jest@24.9.0Operating system: MacOS 10.15.1 (19B88)
Prerequisite
npm run test
Expected Behavior
Tests running :)
Actual Behavior
And from devtools:
The text was updated successfully, but these errors were encountered: