Skip to content
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

not-test onProcessExit: process exit with code=127 #865

Closed
201flaviosilva opened this issue May 17, 2022 · 6 comments · Fixed by #874
Closed

not-test onProcessExit: process exit with code=127 #865

201flaviosilva opened this issue May 17, 2022 · 6 comments · Fixed by #874

Comments

@201flaviosilva
Copy link

Environment

  1. vscode-jest version: v4.4.0
  2. node -v: v17.1.0
  3. npm -v: 8.1.4
  4. npm ls jest: jest@28.1.0
  5. your vscode-jest settings if customized: https://github.com/201flaviosilva/HillClimbing.js/blob/main/jest.config.js
  6. Operating system: Mac OS Monterey 12.3.1 (21E258)

Prerequisite

  • are you able to run jest test from the command line? Yes
  • how do you run your tests from the command line? npm run test or npm run start:test

Steps to Reproduce

This is my working repository: https://github.com/201flaviosilva/HillClimbing.js

Relevant Debug Info

not-test onProcessExit: process exit with code=127, signal=undefined
 see troubleshooting: https://github.com/jest-community/vscode-jest/blob/master/README.md#troubleshooting
env: node: No such file or directory
Jest process "watch-tests" ended unexpectedly
 see troubleshooting: https://github.com/jest-community/vscode-jest/blob/master/README.md#troubleshooting

Expected Behavior

To run the test with any problem

Actual Behavior

Not run the tests and print this error:

Jest Bug

@201flaviosilva
Copy link
Author

Got a new error:
Jest Bug 2

If this helps any way :)

@connectdotz
Copy link
Collaborator

env: node: No such file or directory

this is an indication that the shell env is not properly initialized. Try to start vscode from a terminal (instead of UI).

more detailed info here

@201flaviosilva
Copy link
Author

Opening the VS Code this way has improved, but I don't think it's an intuitive way

@connectdotz
Copy link
Collaborator

indeed, I am hoping to come up with a better fix soon. I will let you know when it is available.

The link provided above (#741 (comment)) suggested a few workarounds, you can choose the one least sucked for now 😬

@201flaviosilva
Copy link
Author

Yap, I think I will wait until it’s solved :)

@levrik
Copy link

levrik commented Oct 6, 2022

I'm having the same issue but lacking env: node: No such file or directory in the logs. It's just not-test onProcessExit: process exit with code=127, signal=undefined without further logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants