Skip to content

An unexpected error occurred when locating the Git executable #163

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

Closed
seaxwi opened this issue Mar 3, 2021 · 9 comments
Closed

An unexpected error occurred when locating the Git executable #163

seaxwi opened this issue Mar 3, 2021 · 9 comments
Labels
conclusion: resolved Issue was resolved criticality: high Of high impact topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@seaxwi
Copy link

seaxwi commented Mar 3, 2021

Describe the bug
Every time I launch the IDE on Windows I get this error.

To Reproduce
Steps to reproduce the behavior:

  1. Close the IDE if open
  2. Open the IDE
  3. See error

Expected behavior
For the error not to appear, as it doesn't seem to affect IDE functionality.

Screenshot
git_executable_error

Desktop (please complete the following information):

  • OS: [Windows 10 Home 20H2 19042.804]
  • Version: [2.0.0-beta3]
@thekunalsaini

This comment has been minimized.

@thekunalsaini

This comment has been minimized.

@per1234
Copy link
Contributor

per1234 commented Mar 3, 2021

Thanks @seaxwi!

In case it provides any extra useful information for the investigation, here's the terminal output from when this happens:

root INFO Git askpass helper is listening on http://127.0.0.1:53693.
root ERROR Error: Git installation not found.
    at C:\Users\per\Downloads\arduino-ide_2.0.0-beta.3_Windows_64bit\arduino-ide_2.0.0-beta.3_Windows_64bit\resources\app\node_modules\find-git-exec\lib\find-git-exec.js:69:69

Related: arduino/arduino-pro-ide#30

@ubidefeo
Copy link

@seaxwi
is any of your sketches (or your sketchbook) a Git repository?
I think Theia might find the .git folder and consider the folder a Git repo,
hence looking for ways to handle it and missing the git executable in the path.

Let me know if that is the case, but we should investigate further.
@per1234 do you have time to give it a shot by making sure git is not known to your system and git init a sketch?
Of course if you have sketches as Git repos then my guess is wrong

@per1234
Copy link
Contributor

per1234 commented Mar 16, 2021

This occurs even when there are no sketches, libraries, or boards platforms installed.

There have been multiple other reports of this causing confusion on the forum.

@seaxwi
Copy link
Author

seaxwi commented Mar 19, 2021

is any of your sketches (or your sketchbook) a Git repository?

@ubidefeo No.

I'm also able to replicate this issue on a recent Windows 10 install which has not been configured with git at all.

@ubidefeo
Copy link

@seaxwi
I have added high priority to this issue because we have a few reports and need to investigate deeply what the cause of the issue can be.
Hope to have a fix soon, at least in a Nightly Build

@ghost
Copy link

ghost commented Mar 22, 2021

The windows version that also had problems was in my case 10.0.19042 Build 19042

@kittaakos
Copy link
Contributor

Closed via #294.

@rsora rsora added the type: imperfection Perceived defect in any part of project label Sep 22, 2021
@per1234 per1234 added conclusion: resolved Issue was resolved topic: code Related to content of the project itself labels Oct 25, 2021
@rsora rsora added criticality: high Of high impact and removed priority: high Resolution is a high priority labels Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved criticality: high Of high impact topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

6 participants