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

When using child_process.fork() with the execPath pointing to volta on windows ipc breaks. #1756

Open
Esurnir opened this issue May 16, 2024 · 1 comment

Comments

@Esurnir
Copy link

Esurnir commented May 16, 2024

Linked Issue : vitest-dev/vscode#382

Windows version : 10 22H2
Reproduction repo :
https://github.com/Esurnir/volta-vite-repro

Reproduction steps :

  1. Clone the repo,
  2. uncomment the line 11 of index.js
  3. open cmd
  4. run in cmd "C:\Program Files\Volta\node.EXE" index.js
    Expected output :
D:\Git\Labo\voltaprocess>"C:\Program Files\Volta\node.EXE" index.js
stdout: Dad is here

PARENT got message:  Hello dad !
stdout: path:  D:\Git\Labo\voltaprocess

stdout: CHILD got message:  parent -> child

^C^C

process does not close by itself.

actual output :

D:\Git\Labo\voltaprocess>"C:\Program Files\Volta\node.EXE" index.js
stdout: Dad is here

stdout: path:  D:\Git\Labo\voltaprocess

Child exited output Dad is here
path:  D:\Git\Labo\voltaprocess


D:\Git\Labo\voltaprocess>

process closed.

This cause the issue of the vscode vitest plugin not working.

@Esurnir
Copy link
Author

Esurnir commented May 16, 2024

I just realized I switched the output. The first output is the passing output. The second one is the failing. I'll edit it when I get home.
Edit : nevermind I just read it too quickly, expected -> actual

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

No branches or pull requests

1 participant