-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Spawning git
crashes extension host
#32739
Comments
Are you using the 64-bit version of VS Code or the 32-bit version ? Does this reproduce in both the 32-bit version and the 64-bit version ? Does this reproduce when running When the error is shown, can you please open the Developer Tools (Help > Toggle Developer Tools) and check if there is any additional information in there? |
I am using 64-bit version of VS Code. |
I also seem to keep getting this issue, it's weird since it used to never happen. It also seems to disappear when I remove the "git" folder from the install folder. |
@aman-manocha Can you consistently reproduce this? Even when opening a new empty window (i.e. File > New Window) ? or is it something reproducing only for a certain folder ? |
Apparently, the reason why I got this error was because I didn't have git installed on my computer. After installing git it worked fine, even if I had the git folder inside my installation. If git is something required for VS Code, then it should be made a bit more obvious. |
This is very strange. @Edmanbosch let me ask you a favour: if you uninstall Git, does the issue start happening again? |
So, I just uninstalled git, got the issue again. I installed git again and the issue was gone. |
Awesome! What's your exact OS? |
Well, I'm using Windows 10. |
With exact, I meant the exact version number. https://www.howtogeek.com/236195/how-to-find-out-which-build-and-version-of-windows-10-you-have/ |
@joaomoreno |
@joaomoreno Ah, sorry. The version number is 1703, with the build number being 15063.608. |
@Edmanbosch @Z-starts @aman-manocha I got something else to try. Uninstall git, make sure you still get the issue. Then, edit .then(void 0, () => findSpecificGit('git')); Does the issue still reproduce with that commented out? |
@alexandrudima I could confirm what you saw in Procmon. Consider the following code: function findGitWin32(): Promise<IGit> {
return findSystemGitWin32(process.env['ProgramW6432'])
.then(void 0, () => findSystemGitWin32(process.env['ProgramFiles(x86)']))
.then(void 0, () => findSystemGitWin32(process.env['ProgramFiles']))
.then(void 0, () => findSpecificGit('git'));
} When It could be that in these user's machines this will spawn something other than git but called the same way, causing the crash. I want to wait for a reply from @Edmanbosch @Z-starts @aman-manocha but my gut feeling tells me to simply delete that last fallback case. If users install git on a different path other than the default ones, we have the |
Just tried it out, and VS Code loads and gives me zero problems. |
That's awesome. How about this build? Still no problem? |
@joaomoreno Perhaps you could spawn |
@alexandrudima I'd actually be comfortable removing that find git wherever code altogether. That build I linked to in the previous commit does that. 👍 |
@joaomoreno That build works perfectly fine, even without having git installed. |
@aman-manocha Wanna give it a try? |
git
crashes extension host
Git installed for specific user is no longer picked up because of this change, see #40229 |
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: