GitGutter icon indicating copy to clipboard operation
GitGutter copied to clipboard

Break initializing after updating git_gutter_handler.py

Open gotva opened this issue 13 years ago • 5 comments

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 avatar Jan 20 '13 20:01 gotva

@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)

jisaacks avatar Jan 20 '13 23:01 jisaacks

It works thanks :thumbsup:

gotva avatar Jan 21 '13 06:01 gotva

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 avatar May 29 '14 14:05 badmanski

@badmanski your problem is more related to #168 than this old issue.

jisaacks avatar May 29 '14 18:05 jisaacks

@jisaacks yes, I have already figured it out, thanks

badmanski avatar May 29 '14 18:05 badmanski