GitGutter: Doesn't run in Windows 7 ST2

I just installed this today. I’ve added my “git_binary” path to my settings and added the color fields to my color scheme. I’m not seeing anything for any modified files.

A look at the console shows that there is a problem finding a file somewhere.

Traceback (most recent call last):
  File ".\sublime_plugin.py", line 339, in run_
  File ".\git_gutter.py", line 32, in run
  File ".\view_collection.py", line 55, in untracked
  File ".\git_gutter_handler.py", line 180, in untracked
  File ".\git_gutter_handler.py", line 196, in handle_files
  File ".\git_gutter_handler.py", line 261, in run_command
  File ".\subprocess.py", line 633, in __init__
  File ".\subprocess.py", line 842, in _execute_child
WindowsError: [Error 2] The system cannot find the file specified

I’ve tried looking for subprocess.py but can’t find it. Any suggestions?

I’ve tried a few projects with the same result. The console also shows where GitGutter loaded with no issues and I’m able to see GitGutter in the Command Palette and in the menus.

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 28

Most upvoted comments

As from V1.4.0 GitGutter uses the PATH environment variable to lookup the git binary. Therefore git_binary setting is required for portable setups only or if the git can’t be found/defined in the PATH for some reason.

See: README.md for details.

@Zooce, try C:\\Program Files\\Git\\bin\\git.exe. Though, you previous comment tells me it probably won’t help.

Try to update Git as a last resort.