[Bug 360009] Re: plugin only loads when switching tabs, not when opening file

Paul Kishimoto mail at paul.kishimoto.name
Sun Jul 5 22:36:03 UTC 2009


Traceback (most recent call last):
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/__init__.py", line 89, in activate 
    self._window_decorators[window] = GeditWindowDecorator(window)
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/base/decorators.py", line 82, in __init__
    self._init_tab_decorators()
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/base/decorators.py", line 182, in _init_tab_decorators
    decorator = self._create_tab_decorator(tab, init=True)
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/base/decorators.py", line 544, in _create_tab_decorator
    decorator = GeditTabDecorator(self, tab, init)
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/base/decorators.py", line 605, in __init__
    self._adjust_editor()
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/base/decorators.py", line 673, in _adjust_editor
    editor_class.__init__(self._editor, self, file)
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/base/__init__.py", line 358, in __init__
    self.init(file, self._window_context)
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/latex/editor.py", line 100, in init
    self.__parse()
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/latex/editor.py", line 264, in __parse
    self._outline_view.set_outline(self._outline)
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/latex/views.py", line 228, in set_outline
    OutlineConverter().convert(self._store, outline, self._offset_map, self._context.active_editor.edited_file)
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/base/__init__.py", line 977, in active_editor
    return self._window_decorator._active_tab_decorator.editor
AttributeError: 'NoneType' object has no attribute 'editor'

The specific steps I followed to do this:
1. Disable the LaTeX plugin.
2. Exit gedit.
3. Start gedit from terminal.
4. Open a LaTeX document.
5. Click Edit > Preferences, switch to the Plugins tab
6. Check the box next to "Gedit LaTeX Plugin 0.2 rc1". The traceback appears in the terminal output at this point. The toolbar does not appear.

-- 
plugin only loads when switching tabs, not when opening file
https://bugs.launchpad.net/bugs/360009
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list