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

Uncommitted files not showing after update to svn 1.7 #67

Closed yassert closed 9 years ago

yassert commented 10 years ago

I am using sublime text 3 (build 3059) on Linux (Ubuntu 12.4) I updated the svn to version 1.7.16 and ctrl+alt+u stopped working for me (no panel pops up, nothing on the console). ctrl+alt+d , ctrl+alt+r still work.

I have modified the settings for modific as follows: { "debug": true, "svn_use_internal_diff": true } and after this change, i see the following in the console: indexing [queue 128]: no files were indexed out of the 4096 queued, abandoning crawl indexing [queue 129]: no files were indexed out of the 4096 queued, abandoning crawl Quick panel unavailable Quick panel unavailable Quick panel unavailable Reloading /home/YATO/OneOS/cwmp/oneAccess/admin/cwmp/src/oaCwmpDataModelApiWan.c [] [] [107] [] [] [107] [] [] [] [] [] [] [] [] [] However these messages seem to appear randomly and not when I do ctrl+alt+u.

gornostal commented 10 years ago

@yassert I couldn't reproduce the issue. Try to add more logging using print() function, like this:

    def status_done(self, result):
        self.results = list(filter(lambda x: len(x) > 0 and not x.lstrip().startswith('>'),
                            result.rstrip().split('\n')))
        print('status', self.results) # add this on line 628
        if len(self.results):
            self.show_status_list()
        else:
            sublime.status_message("Nothing to show")

Then if you hit ctrl+alt+u, you should see a list of files in the console. After you make sure this works, you can try the following fix.

On line 635 wrap show_quick_panel() call into set_timeout() like this:

sublime.set_timeout(lambda: self.get_window().show_quick_panel(self.results, self.panel_done, sublime.MONOSPACE_FONT), 10)

I googled around, someone said this may fix the issue.

Let me know the results.