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

Upgrade to Node 20 broke the launching of cmd files on windows #1556

Closed
JVApen opened this issue Sep 12, 2024 · 4 comments
Closed

Upgrade to Node 20 broke the launching of cmd files on windows #1556

JVApen opened this issue Sep 12, 2024 · 4 comments
Labels
info-needed Issue requires more information from poster

Comments

@JVApen
Copy link

JVApen commented Sep 12, 2024

I've already encountered this issue for 2 different extensions:

In version 1.91, it was possible to use a .cmd file as an executable. This is very useful if the exact executable depends on some external elements (for example: We download this via nuget and if we add a fix, the new version gets automatically distributed)
From version 1.92, the cmd files are no longer launched

@dbaeumer
Copy link
Member

This is caused by a breaking change in Node itself. To launch a cmd you know need to pass shell: true. See https://github.com/microsoft/vscode-languageserver-node/blob/main/client/src/node/main.ts#L64

Let me know if this helps.

@dbaeumer dbaeumer added the info-needed Issue requires more information from poster label Sep 13, 2024
@JVApen
Copy link
Author

JVApen commented Sep 13, 2024

As I'm not the author of those extensions, I cannot pass that flag. I did log bugs with those extensions as you can see above.

@dbaeumer
Copy link
Member

@JVApen I will close the issue since this is nothing I can fix in the LSP libraries.

@dbaeumer
Copy link
Member

I commented in one of the issues you open to point to the breaking change in NodeJS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

2 participants