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

MSYS2 git looks broken #229043

Open
esaulenka opened this issue Sep 19, 2024 · 1 comment
Open

MSYS2 git looks broken #229043

esaulenka opened this issue Sep 19, 2024 · 1 comment
Assignees

Comments

@esaulenka
Copy link

Does this issue occur when all extensions are disabled?: No

  • VS Code Version: 1.93.1
  • OS Version: Win10 home

As I found, actual version of node-js cannot run .bat scripts by default: https://nodejs.org/en/blog/vulnerability/april-2024-security-releases-2
That means that this receipt #4651 now is not working.

Steps to Reproduce:

follow the original post, or if you don't have MSYS, just do the following:

  1. Create a git-wrap.bat with a single line C:\path-to-git\git.exe %*
  2. set "git.path": "C:/bla-bla/git-wrap.bat", in the settings.json
  3. reload vscode and check Output -> Git
2024-09-19 13:39:54.871 [info] [main] Log level: Info
2024-09-19 13:39:54.872 [info] [main] Validating found git in: "C:/msys64/git-wrap.bat"
2024-09-19 13:39:54.872 [info] Unable to find git on the PATH: "C:/msys64/git-wrap.bat". Error: spawn EINVAL
2024-09-19 13:39:54.872 [info] [main] Validating found git in: "C:\Program Files\Git\cmd\git.exe"
2024-09-19 13:39:54.872 [info] [main] Validating found git in: "C:\Program Files (x86)\Git\cmd\git.exe"
2024-09-19 13:39:54.872 [info] [main] Validating found git in: "C:\Program Files\Git\cmd\git.exe"
2024-09-19 13:39:54.872 [info] [main] Validating found git in: "C:\Users\esaul\AppData\Local\Programs\Git\cmd\git.exe"
2024-09-19 13:40:00.761 [warning] Unable to find git. Error: not found: git.exe
2024-09-19 13:40:00.776 [warning] [main] Failed to create model: Error: Git installation not found.
@lszomoru
Copy link
Member

Thanks for filing this issue. VS Code does not officially support MSYS2 git as we have not done any work to enable that. I just learned about the workaround that you have linked but that is also not something that is coming from the core VS Code team. If that stopped working I would suggest that you either reach out to the person who suggested it, or reach out to the node community to see if there is a way to re-enable the execution of .bat scripts.

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

3 participants
@lszomoru @esaulenka and others