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

Error: spawn git ENOENT when clicking on a file in changeset #143

Closed
ubershmekel opened this issue Jul 28, 2017 · 8 comments
Closed

Error: spawn git ENOENT when clicking on a file in changeset #143

ubershmekel opened this issue Jul 28, 2017 · 8 comments

Comments

@ubershmekel
Copy link

Hi, I'm using Git History (git log) 0.2.2 on VS Code June 2017 (version 1.14), on a Mac (Darwin yuvmac.local 16.6.0 Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64 x86_64)

I can see the log, and click on a changeset to see the list of changed files. When I click on a changed file I get a vscode toast saying:

There was an error, please view details in the 'Git History Log' output window

The output panel says:

[Info -14:05:33.139] git rev-parse --show-toplevel
[Error-14:05:33.142] Error: spawn git ENOENT
[Info -14:05:33.142] git repo path: /Users/bla/bla/bla.min

Maybe related to, but probably not: #100

Otherwise it is a beautiful log, thank you for that.

@doggy8088
Copy link

doggy8088 commented Aug 20, 2017

I have the same issue on my Windows 10. Here is my log:

[Info -16:02:41.725] git path: C:\Program Files\Git\bin\git - from registry
[Info -16:02:41.783] git log --format="%n95E9659B-27DC-43C4-A717-D75969757EA5%nrefs=%d%ncommit=%H%ncommitAbbrev=%h%ntree=%T%ntreeAbbrev=%t%nparents=%P%nparentsAbbrev=%p%nauthor=%an <%ae> %at%ncommitter=%cn <%ce> %ct%nsubject=%s%nbody=%b%n%nnotes=%N%n95E9659B-27DC-43C4-A717-D75969757EA1%n" --date-order --decorate=full --skip=0 --max-count=50 --all --numstat --summary --
[Info -16:02:42.032] git log --format="%n95E9659B-27DC-43C4-A717-D75969757EA5%nrefs=%d%ncommit=%H%ncommitAbbrev=%h%ntree=%T%ntreeAbbrev=%t%nparents=%P%nparentsAbbrev=%p%nauthor=%an <%ae> %at%ncommitter=%cn <%ce> %ct%nsubject=%s%nbody=%b%n%nnotes=%N%n95E9659B-27DC-43C4-A717-D75969757EA1%n" --date-order --decorate=full --skip=0 --max-count=50 --all --numstat --summary --
[Info -16:02:47.025] git log --no-abbrev-commit --max-count=10 --decorate=full --date=default --pretty=fuller --all --parents --numstat --topo-order --raw --follow --before='2014-11-27T14:44:25.000Z' -- SMSTicketParseWebSite/Controllers/HomeController.cs
[Info -16:02:47.080] git rev-parse --show-toplevel
[Error-16:02:47.081] Error: spawn C:\Program Files\Git\bin\git ENOENT
[Info -16:02:47.082] git repo path: c:\Projects\myproj\SMSTicketParseWebSite\Controllers

@rkeithhill
Copy link

Same here.

[Info -17:41:48.727] git rev-parse --show-toplevel
[Error-17:41:48.729] Error: spawn C:\Program Files\Git\bin\git ENOENT

@DonJayamanne
Copy link
Owner

Should be fixed in the latest version

@lbogdan
Copy link
Contributor

lbogdan commented Aug 9, 2018

Was there a regression? I just installed this extension and keep getting the same errors:

git path identified as:  C:\Program Files\Git\bin\git
git rev-parse --show-toplevel  (completed in 0.003s)
{"stack":"Error: spawn C:/Program Files/Git/bin/git ENOENT\n\tat exports._errnoException (util.js:1050:11)\n\tat Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)\n\tat onErrorNT (internal/child_process.js:367:16)\n\tat _combinedTickCallback (internal/process/next_tick.js:80:11)\n\tat process._tickCallback (internal/process/next_tick.js:104:9)","message":"spawn C:/Program Files/Git/bin/git ENOENT","code":"ENOENT","errno":"ENOENT","syscall":"spawn C:/Program Files/Git/bin/git","path":"C:/Program Files/Git/bin/git","spawnargs":["rev-parse","--show-toplevel"]}

@strongui
Copy link

Same, error is back.

@borekb
Copy link

borekb commented Aug 28, 2018

I uses Git for Windows under MSYS2, and get very similar errors. The extension output starts like this:

git path identified as:  git
git path identified as:  git
git path identified as:  git
git rev-parse --show-toplevel  (completed in 0.002s)
{"stack":"Error: spawn git ENOENT\n\tat _errnoException (util.js:1024:11)\n\tat Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)\n\tat onErrorNT (internal/child_process.js:372:16)\n\tat _combinedTickCallback (internal/process/next_tick.js:138:11)\n\tat process._tickCallback (internal/process/next_tick.js:180:9)","message":"spawn git ENOENT","code":"ENOENT","errno":"ENOENT","syscall":"spawn git","path":"git","spawnargs":["rev-parse","--show-toplevel"]}

@DonJayamanne, do you think this issue could be reopened? Or should we create a new one?

@lbogdan
Copy link
Contributor

lbogdan commented Aug 28, 2018

@borekb This should be solved by #311 , waiting for @DonJayamanne to merge it.

@igor-h
Copy link

igor-h commented Oct 17, 2018

the same error is back!

{"stack":"Error: spawn git ENOENT\n\tat _errnoException (util.js:1024:11)\n\tat Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)\n\tat onErrorNT (internal/child_process.js:372:16)\n\tat _combinedTickCallback (internal/process/next_tick.js:138:11)\n\tat process._tickCallback (internal/process/next_tick.js:180:9)","message":"spawn git ENOENT","code":"ENOENT","errno":"ENOENT","syscall":"spawn git","path":"git","spawnargs":["rev-parse","--show-toplevel"]}

VSCode Version: 1.28.1
Git History: Version 0.4.3

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

8 participants