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

Error: spawn python ENOENT, on Windows #37

Closed
gmeligio opened this issue Nov 21, 2021 · 2 comments
Closed

Error: spawn python ENOENT, on Windows #37

gmeligio opened this issue Nov 21, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@gmeligio
Copy link

vscode-ext: 1.5.4
vscode: 1.62.3
Windows: 21H1 (19043.1348)

I was getting Error: spawn python ENOENT when running the example https://github.com/CodeWithSwastik/vscode-ext/blob/main/examples/hello_world.py

[2021-11-21 20:59:10.224] [renderer16] [error] spawn python ENOENT: Error: spawn python ENOENT
	at Process.onexit (internal/child_process.js:269:19)
	at onErrorNT (internal/child_process.js:465:16)
	at processTicksAndRejections (internal/process/task_queues.js:80:21)

Following the suggestions in https://stackoverflow.com/a/54515183
I used the already present osvar to add spawnOptions to all the spawn calls in the generated extension.js

const osvar = process.platform;
spawnOptions = {shell: osvar == 'win32'}

I might be able to create a PR to solve this issue. Would the PR be reviewed? Is there any guidance on how to contribute?

@CodeWithSwastik CodeWithSwastik added the bug Something isn't working label Nov 30, 2023
@CodeWithSwastik
Copy link
Owner

Hi! Apologies for the delay; I had archived the library as I was quite busy. I'm now planning to release a v2.0.0 of the library which is an async rewrite. Could you check if the error persists in the latest build? You can get the latest version by cloning the main branch of the repo. If the issue persists, you can submit a PR to the main branch after committing the fix. Thanks!

@gmeligio
Copy link
Author

Thank you for the update. It's understandable. I'm not currently developing in Python, but I'll see if I can test in the coming weeks.

@gmeligio gmeligio closed this as not planned Won't fix, can't repro, duplicate, stale Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants