tig-tiger / advanced-find

Automatically exported from code.google.com/p/advanced-find
0 stars 0 forks source link

Can't load plugin #98

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Try to install on linux mint 12.
2. Can't use at all.

What is the expected output? What do you see instead?

install (script or manual) seems to work, and the plugin is listed in 
preferences, but it can't be loaded and used.

What version of the product are you using? On what operating system?

linux mint 12

Please provide any additional information below.

During startup, the plugin fails with output including:

Traceback (most recent call last):
  File "/usr/lib/gedit/plugins/advancedfind/__init__.py", line 40, in do_activate
    self._plugin = AdvancedFindWindowHelper(self, self.window)
  File "/usr/lib/gedit/plugins/advancedfind/advancedfind.py", line 148, in __init__
    self._results_view = FindResultView(window, self.result_gui_settings)
  File "/usr/lib/gedit/plugins/advancedfind/find_result.py", line 88, in __init__
    for col in self.findResultTreeview.get_n_columns():
AttributeError: 'TreeView' object has no attribute 'get_n_columns'
Traceback (most recent call last):
  File "/usr/lib/gedit/plugins/advancedfind/__init__.py", line 47, in do_update_state
    self._plugin.update_ui()
AttributeError: 'AdvancedFindReplacePlugin' object has no attribute '_plugin'

Changing the stanza around line 84 of find_result.py to the following seems to 
fix it.

                if self.result_format['SHOW_HEADERS']:
                        for col in self.findResultTreeview.get_columns():
                                col.set_resizable(True)
                else:
                        for col in self.findResultTreeview.get_columns():
                                col.set_sizing(1)       # 1=autosizing

the cause seems to be that get_n_columns() is a new method that isn't in my 
version of gtk, as seen here: 
http://developer.gnome.org/gtkmm/3.3/classGtk_1_1TreeView.html#acd8a9cf862f3f9ed
1d44e8e8ba910cd3

Original issue reported on code.google.com by e...@bluesparc.net on 3 Mar 2013 at 3:16

GoogleCodeExporter commented 8 years ago
Thanks for your information.
I will try to fix this, but you may lose some feature.
The best way is updating your system.

Original comment by swatch.c...@gmail.com on 6 Mar 2013 at 12:49

GoogleCodeExporter commented 8 years ago
Fixed at v3.5.3.

Original comment by swatch.c...@gmail.com on 31 Mar 2013 at 3:55

GoogleCodeExporter commented 8 years ago
Issue 102 has been merged into this issue.

Original comment by swatch.c...@gmail.com on 23 Apr 2013 at 9:31

GoogleCodeExporter commented 8 years ago

Original comment by swatch.c...@gmail.com on 23 Apr 2013 at 9:32

GoogleCodeExporter commented 8 years ago
Issue 102 has been merged into this issue.

Original comment by swatch.c...@gmail.com on 1 May 2013 at 2:58

GoogleCodeExporter commented 8 years ago
Fix at v3.5.4.

Original comment by swatch.c...@gmail.com on 1 May 2013 at 2:59

GoogleCodeExporter commented 8 years ago
Issue 102 has been merged into this issue.

Original comment by swatch.c...@gmail.com on 1 May 2013 at 11:38