jisaacks / GitGutter

A Sublime Text 2/3 plugin to see git diff in gutter
MIT License
3.88k stars 225 forks source link

GitGutter isn't working on OSX Sublime Text 3 #152

Closed gespinha closed 7 years ago

gespinha commented 10 years ago

Hi there,

I have installed and reinstalled various times GitGutter and it still doesn't work. I have tried verifying if I am using git and it is on. What should I do to diagnose my problem?

Thanks

cweekly commented 8 years ago

SublimeFixMacPath fixed this issue for me too. I'm on st3, and simply installed it from package control. It's a single python script that ensures your $PATH is available to Sublime, so it can find non-system binaries (eg homebrew packages).

arhen commented 8 years ago

add this comment to sublime setting preference :

"git_binary": "", "compare_against": "HEAD", "live_mode": true, "focus_change_mode": true, "non_blocking": true,

eko3alpha commented 8 years ago

I just ran into another issue where GitGutter seemingly stopped working. If you update Xcode and have not agreed to the license agreements GitGutter will stop working.

You have not agreed to the Xcode license agreements. You must agree to both license agreements below in order to use Xcode.
Hit the Enter key to view the license agreements at '/Applications/Xcode.app/Contents/Resources/English.lproj/License.rtf'

Once I opened Xcode and agreed to the terms, GitGutter worked again.

andrewchilds commented 8 years ago

GitGutter stopped working for me after I upgraded to El Capitan - installing the XCode command line tools with xcode-select --install got it working again.

amerikan commented 8 years ago

@andrewchilds try this: https://github.com/jisaacks/GitGutter/issues/152#issuecomment-141605598

Edit: meant this https://github.com/jisaacks/GitGutter/issues/152#issuecomment-141221859

rafaelcgo commented 7 years ago

Updated Xcode, xcode-select --install, restarted sublime. Removed and Installed GitGutter.... Still won't work.

I'm running El Capitan

rchl commented 7 years ago

Removed and Installed GitGutter.... Still won't work.

@rafaelcgo Have you followed suggestion in the Readme to try SublimeFixMacPath?

Eventually just manually setting git_binary to point to git binary.

rafaelcgo commented 7 years ago

@rchl Tried both with no success. Is there a way to check if GitGutter is finding git_binary, maybe via sublime console?

I try the git gutter commands but no output is written on the console...

rchl commented 7 years ago

@rafaelcgo If it couldn't find the binary then actually it should show a error dialog. So I guess that part might be working.

Try: a) Restart sublime and open the console. Make sure that there are no errors related to gitgutter (you can paste here if you want). b) Make sure that git gutter package is not disabled (Package Control: Disable Packages should list it). c) Make sure that you are trying it out on a file that is tracked by git.

rafaelcgo commented 7 years ago

@rchl Thanks for the patience... Still not working. It used to work but I think the update crashed it somehow.

Steps 2 and 3 on video: https://youtu.be/HohNN2HCUYU

startup, version: 3126 osx x64 channel: stable
executable: /Applications/Sublime Text.app/Contents/MacOS/Sublime Text
working dir: /
packages path: /Users/------/Library/Application Support/Sublime Text 3/Packages
state path: /Users/------/Library/Application Support/Sublime Text 3/Local
zip path: /Applications/Sublime Text.app/Contents/MacOS/Packages
zip path: /Users/------/Library/Application Support/Sublime Text 3/Installed Packages
ignored_packages: ["Vintage"]
pre session restore time: 0.427512
first paint time: 0.509015
startup time: 0.510583
reloading plugin Default.auto_indent_tag
reloading plugin Default.block
reloading plugin Default.comment
reloading plugin Default.convert_syntax
reloading plugin Default.copy_path
reloading plugin Default.delete_word
reloading plugin Default.detect_indentation
reloading plugin Default.duplicate_line
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading plugin Default.indentation
reloading plugin Default.install_package_control
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_context_url
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.profile
reloading plugin Default.quick_panel
reloading plugin Default.run_syntax_tests
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.settings
reloading plugin Default.show_scope_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.swap_line
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.trim_trailing_white_space
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin 0_package_control_loader.00-package_control
reloading plugin 0_package_control_loader.01-pygments
reloading plugin 0_package_control_loader.50-markupsafe
reloading plugin 0_package_control_loader.50-python-markdown
reloading plugin 0_package_control_loader.50-pyyaml
reloading plugin 0_package_control_loader.51-python-jinja2
reloading plugin 0_package_control_loader.55-mdpopups
reloading plugin Better CoffeeScript.CoffeeScript
reloading plugin Fix Mac Path.FixPath
reloading plugin Gist.gist
reloading plugin Gist.helpers
reloading plugin Gist.request
reloading plugin Gist.settings
reloading plugin Git.git_commands
reloading plugin GitGutter.git_gutter
reloading plugin GitGutter.git_gutter_compare
reloading plugin GitGutter.git_gutter_events
reloading plugin GitGutter.git_gutter_handler
reloading plugin GitGutter.git_gutter_jump_to_changes
reloading plugin GitGutter.git_gutter_popup
reloading plugin GitGutter.git_gutter_settings
reloading plugin GitGutter.git_gutter_show_diff
reloading plugin GitGutter.git_helper
reloading plugin GitGutter.promise
reloading plugin GitStatusBar.git_status_bar
reloading plugin Glue.__init__
reloading plugin Glue.Glue
reloading plugin Glue.GlueBrowser
reloading plugin Glue.GlueCmds
reloading plugin Glue.GlueIO
reloading plugin Glue.GlueSidebarOpener
reloading plugin LESS.less_completions
reloading plugin Markdown Preview.helper
reloading plugin Markdown Preview.markdown_settings
reloading plugin Markdown Preview.markdown_wrapper
reloading plugin Markdown Preview.MarkdownPreview
reloading plugin Package Control.1_reloader
reloading plugin Package Control.2_bootstrap
reloading plugin Package Control.Package Control
reloading plugin RSpec.OpenRSpecFile
reloading plugin RSpec.RSpecCreateModule
reloading plugin RSpec.RSpecDetectFileType
reloading plugin RSpec.shared
reloading plugin SideBarEnhancements.SideBar
reloading plugin SideBarEnhancements.SideBarAPI
reloading plugin SideBarEnhancements.SideBarDefaultDisable
reloading plugin SideBarEnhancements.Stats
reloading plugin SublimeLinter-rubocop.linter
SublimeLinter: rubocop linter loaded 
reloading plugin SublimeLinter-ruby.linter
SublimeLinter: ruby linter loaded 
reloading plugin TrailingSpaces.trailing_spaces
reloading plugin Zen Tabs.TabsWorker
reloading plugin Zen Tabs.ZenTabs
reloading plugin Zen Tabs.ZenTabsTest
reloading plugin Guard.guard
reloading plugin SublimeLinter.commands
reloading plugin SublimeLinter.sublimelinter
plugins loaded
Limit: 20
Full path: False
Highlight: True
SublimeLinter: debug mode: on 
SublimeLinter: temp directory: /var/folders/05/p3_dh_4j6t11cp87vlc55zv00000gp/T/SublimeLinter3------- 
SublimeLinter: user shell: /bin/bash 
SublimeLinter: computed PATH using /bin/bash:
/usr/local/bin
/usr/local/heroku/bin
/Users/------/.rvm/gems/ruby-2.0.0-p481/bin
/Users/------/.rvm/gems/ruby-2.0.0-p481@global/bin
/Users/------/.rvm/rubies/ruby-2.0.0-p481/bin
/usr/local/heroku/bin
/Users/------/bin
/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/bin
/usr/local/heroku/bin
/Users/------/.rvm/gems/ruby-2.0.0-p481/bin
/Users/------/.rvm/gems/ruby-2.0.0-p481@global/bin
/Users/------/.rvm/rubies/ruby-2.0.0-p481/bin
/Users/------/bin
/Users/------/.rvm/bin
/Users/------/.rvm/bin

SublimeLinter: ENV['GEM_HOME'] = '/Users/------/.rvm/gems/ruby-2.0.0-p481' 
reloading settings Packages/User/Preferences.sublime-settings
rchl commented 7 years ago

@rafaelcgo that looks quite tricky to figure out. One last thing you should check is whether you get any error in the console on invoke one of 'Git Gutter: Compare Against... commands. These commands don't catch exceptions like the main functionality, so it might show the problem.

If not, I don't think I have any more suggestions. Would probably need to debug by adding some debugging code...

rafaelcgo commented 7 years ago

@rchl No output. The only GitGutter command that has any output is Show Comparing Against which displays ' on a modal box "GitGutter is comparing against: HEAD"

:(

rafaelcgo commented 7 years ago

@rchl It's working again. Don't have a clue what happened, but after an OS restart GitGutter has come back to life.

deathaxe commented 7 years ago

I close this issue

amrutjadhav commented 7 years ago

@rajankur Adding it to ignore package, restart sublime and remove it from ignore package also works for me.