gornostal / Modific

Highlight lines changed since the last commit (supports Git, SVN, Bazaar, Mercurial and TFS) / ST2(3) plugin
614 stars 44 forks source link

Broken ST3 since update #71

Closed schlamar closed 9 years ago

schlamar commented 10 years ago
    Traceback (most recent call last):
      File "C:\Users\schlaich\Sublime Text 3\sublime_plugin.py", line 440, in is_enabled_
        ret = self.is_enabled()
      File "Modific in C:\Users\schlaich\Sublime Text 3\Data\Installed Packages\Modific.sublime-package", line 243, in is_enabled
      File "Modific in C:\Users\schlaich\Sublime Text 3\Data\Installed Packages\Modific.sublime-package", line 53, in get_vcs
      File "Modific in C:\Users\schlaich\Sublime Text 3\Data\Installed Packages\Modific.sublime-package", line 33, in vcs_root
      File "Modific in C:\Users\schlaich\Sublime Text 3\Data\Installed Packages\Modific.sublime-package", line 32, in <listcomp>
    ValueError: too many values to unpack (expected 2)

Solution: restart Sublime Text.

gornostal commented 10 years ago

What VCS do you use? How to reproduce this?

levacic commented 10 years ago

I am getting the exact same problem in Sublime Text 3 on Linux Mint 15 for all my git repos.

As for repro-steps - I just open a project that has a git repo, edit a file and save it, and I get that error in the console (obviously, I don't see the sidebar markers for changed lines).

gornostal commented 10 years ago

Working on this...

levacic commented 10 years ago

Thanks - if you need any specific additional info, feel free to ask, I'll be around and try to answer ASAP.

gornostal commented 10 years ago

For some reason I could only reproduce it once and there was a different stack trace than @schlamar reported.

gornostal commented 10 years ago

@schlamar, the weird thing about your stack trace is that there is no vcs_root() function. I removed it.

gornostal commented 10 years ago

Guys, can you try to restart Sublime and then let me know whether or not the issue occurs? Please include a stack trace.

levacic commented 10 years ago

@gornostal I restarted Sublime and couldn't find any info that Modific was updated - not sure if I'm supposed to see that in the console. However, it works now, I can see the gutter marks, and no error in my console. Thanks for the lightning fast fix!

DrRataplan commented 10 years ago

I also just restarted sublime, no updates were installed, and modific started working again

gornostal commented 10 years ago

@levacic Modific doesn't show any messages when it gets updated.

I guess we just saw Sublime's bug. When it pulls new updates for Modific, somehow new and old versions of the plugin are still in the memory and weird bugs may occur. This is my theory.

gornostal commented 10 years ago

I'll leave the issue open for a little while. Just to let other people quickly find the solution.