#89 AttributeError when accessing preferences

v0.2
open
7
2009-11-10
2009-11-04
Anonymous
No

Hello everyone,
since a system update (Ubuntu 9.10) which also updates python stuff, there are not symbols shown in the sidebar. I started gedit from console an get the following output if I select the symbols tab. (Python 2.6.4 installed)

Traceback (most recent call last):
File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/base/__init__.py", line 83, in _on_expose_event
self._do_init()
File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/base/__init__.py", line 87, in _do_init
self.init(self._context)
File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/latex/views.py", line 105, in init
self.__load_collection(SymbolCollection())
File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/latex/views.py", line 108, in __load_collection
self.__expanded_groups = set(self.__preferences.get("ExpandedSymbolGroups", "").split(","))
AttributeError: 'NoneType' object has no attribute 'split'

Discussion

  • Strange, because

    self.__preferences.get("ExpandedSymbolGroups", "")

    can never return None. Can you have a look what the value for ExpandedSymbolGroups in your preferences.xml is?

     
    • labels: 1165133 --> Plugin Base
    • priority: 5 --> 7
    • assigned_to: nobody --> m_zeising
     
    • summary: No Symbols shown in the sidebar --> AttributeError when accessing preferences