Break initializing after updating git_gutter_handler.py
Hello
I try to install Your package through git clone ... And when Sublime starts I see in the console the following text
Reloading plugin /home/vaska/.config/sublime-text-2/Packages/GitGutter/git_gutter_handler.py
Traceback (most recent call last):
File "./sublime_plugin.py", line 62, in reload_plugin
File "./git_gutter_handler.py", line 44
break
SyntaxError: 'break' outside loop
and then
Traceback (most recent call last):
File "./sublime_plugin.py", line 205, in on_activated
File "./sublime_plugin.py", line 154, in run_timed_function
File "./sublime_plugin.py", line 204, in <lambda>
File "./git_gutter_events.py", line 18, in on_activated
File "./view_collection.py", line 14, in add
ImportError: No module named git_gutter_handler
I noticed that last commit https://github.com/jisaacks/GitGutter/commit/aebe45111bd68a798c126b9788c5d310443bd14a updates git_gutter_handler.py. I checkout to previous commit and it works well for me: the package loads and changes are shown. It seems that something is wrong in last commit.
If some more details about system and versions are needed please inform me.
Thanks
@gotva it looks like I just needed to remove that break. That last commit was by @monptitjojo maybe he can clarify what the intention actually was there.
@gotva Reopen if this doesn't fix for you, (Don't know how I let that slip by w/ an err and merge it in) I was only able to reproduce and fix the first error in your issue though (but the second doesn't look like a real issue)
It works thanks :thumbsup:
Hello,
I experienced the same problem this morning:
Traceback (most recent call last):
File "./sublime_plugin.py", line 205, in on_activated
File "./sublime_plugin.py", line 154, in run_timed_function
File "./sublime_plugin.py", line 204, in <lambda>
File "./git_gutter_events.py", line 44, in on_activated
File "./view_collection.py", line 18, in add
ImportError: No module named git_gutter_handler
The package is installed via package control. Tried uptade and reinstall the package, but it didn't help. Any suggestions? Thanks in advance.
@badmanski your problem is more related to #168 than this old issue.
@jisaacks yes, I have already figured it out, thanks