Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

An unexpected error occurred when locating the Git executable. #30

Closed
AuchKeiner opened this issue Oct 20, 2019 · 8 comments
Closed

An unexpected error occurred when locating the Git executable. #30

AuchKeiner opened this issue Oct 20, 2019 · 8 comments
Labels
type: imperfection Something isn't working

Comments

@AuchKeiner
Copy link

AuchKeiner commented Oct 20, 2019

image

The Library Manager and the Board Manager find nothing!

My Pc
Windows 10
i5-6600K
16gb ram
GTX 1060 gb

My Arduino
Arduino Nano oldBootloader

Status update after snapshot
Although I had to install the board manually, I can now select a board.
I still can not choose a port

@AuchKeiner AuchKeiner added the type: imperfection Something isn't working label Oct 20, 2019
@moghaddam
Copy link

The same happens on my Ubuntu machine with the following stack trace:

root WARN EditorNavigationContribution.onStart is slow, took: 207.4000000138767 ms                                                                                                                                 
root ERROR Request repositories failed with error: Git could not be found at the expected path: '/home/ezm/applications/Arduino-PoC-0.0.1-06ef598-linux/resources/app/node_modules/dugite-no-gpl/git/bin/git'. This
 might be a problem with how the application is packaged, so confirm this folder hasn't been removed when packaging. Error: Git could not be found at the expected path: '/home/ezm/applications/Arduino-PoC-0.0.1-
06ef598-linux/resources/app/node_modules/dugite-no-gpl/git/bin/git'. This might be a problem with how the application is packaged, so confirm this folder hasn't been removed when packaging.                      
    at /home/ezm/applications/Arduino-PoC-0.0.1-06ef598-linux/resources/app/node_modules/dugite-no-gpl/build/lib/git-process.js:87:39                                                                              
    at exithandler (child_process.js:306:5)                                                                                                                                                                        
    at ChildProcess.errorhandler (child_process.js:318:5)                                                                                                                                                          
    at ChildProcess.emit (events.js:182:13)                                                                                                                                                                        
    at Process.ChildProcess._handle.onexit (internal/child_process.js:238:12)                                                                                                                                      
    at onErrorNT (internal/child_process.js:407:16)                                                                                                                                                                
    at process._tickCallback (internal/process/next_tick.js:63:19)

@LinyeNinja
Copy link

LinyeNinja commented Oct 20, 2019

The same happens to me, board and library managers don't show anything and codes output the error ""Arduino.h" not found". (Using a Windows 10 machine)

@cd643
Copy link

cd643 commented Oct 22, 2019

I have also this problem and I get the same error as @moghaddam (I am using xubuntu 18.04 LTS). in the folder Arduino-PoC-0.0.1-06ef598-linux/resources/app/node_modules/dugite-no-gpl/ must be a folder named git, but it isn't

@rbmontes
Copy link

"An unexpected error occurred when locating the Git executable."

i fixed the problem by installing the GIT application https://git-scm.com/download/win

@cd643
Copy link

cd643 commented Oct 23, 2019

Nice, it works!

@SB-68846
Copy link

SB-68846 commented Nov 6, 2019

Installing Git solved the issue for me to (Win10).

The error message was not very clear to me, something like "Error: Could not locate Git executable" would have pointed me in the right direction right away.

@rcsa7
Copy link

rcsa7 commented Nov 24, 2019

"An unexpected error occurred when locating the Git executable."

i fixed the problem by installing the GIT application https://git-scm.com/download/win

@kittaakos
Copy link
Contributor

We generalized the Git exec lookup in find-git-exec.

Please reopen if required.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: imperfection Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants