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

determine shell for .cmd, .bat, .ps1 #4044

Merged
merged 8 commits into from
Oct 10, 2024
Merged

Conversation

gcampbell-msft
Copy link
Collaborator

@gcampbell-msft gcampbell-msft commented Sep 5, 2024

Test VSIX:
cmake-tools.zip

Fixes #4037. Fixes #4042

We did not change anything regarding this between 1.18 and 1.19. This issue comes from a breaking change in VS Code, where in version 1.92, which came out in July, they update to node v20 which requires more strict options regarding proc.spawn: Visual Studio Code July 2024.

@gcampbell-msft
Copy link
Collaborator Author

Likely need more logic for only doing determine shell on Windows.

@gcampbell-msft
Copy link
Collaborator Author

@moyo1997 ping for review, thanks!

src/proc.ts Outdated Show resolved Hide resolved
@gcampbell-msft gcampbell-msft force-pushed the dev/gcampbell/SpawnShellFix branch from 6f13615 to 6ea5dd2 Compare October 10, 2024 13:20
@gcampbell-msft gcampbell-msft enabled auto-merge (squash) October 10, 2024 13:32
@gcampbell-msft gcampbell-msft merged commit 0786aa8 into main Oct 10, 2024
4 checks passed
@gcampbell-msft gcampbell-msft deleted the dev/gcampbell/SpawnShellFix branch October 10, 2024 14:23
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

Successfully merging this pull request may close these issues.

Error when ninja is not in PATH (but ninja can be executed by cmake) CMake executable cannot be a script
2 participants