Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#121 activation of the plugin fails

v0.2
open-accepted
9
2011-03-28
2010-05-29
Anonymous
No

On startup some errors occur:
2010-05-29 17:41:01,642 DEBUG resources - Initializing resource locating
2010-05-29 17:41:01,767 ERROR Environment - /etc/texmf/texmf.cnf not found, using default search paths ['/usr/share/texmf-texlive', '/home/marc/texmf']
2010-05-29 17:41:01,866 DEBUG Preferences - <value key='BibtexExtensions'> not found
2010-05-29 17:41:01,885 DEBUG JobManager - Created JobManager instance 158842380
2010-05-29 17:41:01,901 DEBUG GeditLaTeXPlugin - activate
2010-05-29 17:41:01,901 DEBUG WindowContext - init
/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/base/decorators.py:232: GtkWarning: gtk_accel_label_set_accel_closure: assertion `gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed
menu.add(gtk_action.create_menu_item())
2010-05-29 17:41:01,935 DEBUG GeditWindowDecorator - _init_tab_decorators: initialized 0 decorators
2010-05-29 17:41:01,993 DEBUG GeditWindowDecorator - active_tab_changed
2010-05-29 17:41:01,993 DEBUG GeditTabDecorator - Created <GeditLaTeXPlugin.src.base.decorators.GeditTabDecorator object at 0x9791eac>
2010-05-29 17:41:01,993 DEBUG GeditWindowDecorator - ---------- ADJUST: None
2010-05-29 17:41:01,995 DEBUG GeditWindowDecorator - No window-scope views for this extension
2010-05-29 17:41:01,995 DEBUG GeditWindowDecorator - _set_selected_bottom_view: 0
2010-05-29 17:41:01,995 DEBUG GeditWindowDecorator - _set_selected_side_view: 3
2010-05-29 17:41:01,999 DEBUG GeditWindowDecorator - tab_added
2010-05-29 17:41:02,000 WARNING GeditWindowDecorator - There is already a decorator for tab <gedit.Tab object at 0x9797a54 (GeditTab at 0x990e828)>

when trying to edit a latex file, no menu etc. is shown and you get this on console:
(gedit:20261): GtkSourceView-WARNING **: no color named 'white'
2010-05-29 17:41:29,176 DEBUG GeditTabDecorator - loaded
2010-05-29 17:41:29,187 DEBUG GeditTabDecorator - _adjust_editor: URI has changed
2010-05-29 17:41:29,188 DEBUG LaTeXCompletionHandler - init
2010-05-29 17:41:29,188 DEBUG LanguageModelFactory - Pickled object found: /home/marc/.gnome2/gedit/plugins/GeditLaTeXPlugin/latex.pkl
2010-05-29 17:41:29,306 DEBUG CompletionDistributor - init
2010-05-29 17:41:29,308 DEBUG WindowContext - Created view LaTeXOutlineView
2010-05-29 17:41:29,308 DEBUG WindowContext - Created view IssueView
2010-05-29 17:41:29,308 DEBUG LaTeXEditor - init(file:///tmp/a.tex)
2010-05-29 17:41:29,309 DEBUG LaTeXEditor - Parsing document...
2010-05-29 17:41:29,309 DEBUG IssueView - init
2010-05-29 17:41:29,311 DEBUG IssueView - init finished
2010-05-29 17:41:29,312 INFO LaTeXEditor - LaTeXParser.parse: 0.000000
2010-05-29 17:41:29,312 DEBUG LaTeXEditor - Parsed 0 bytes of content
2010-05-29 17:41:29,312 DEBUG LaTeXEditor - Document is not a master
2010-05-29 17:41:29,312 DEBUG LaTeXOutlineView - set_outline
2010-05-29 17:41:29,312 DEBUG LaTeXOutlineView - init
2010-05-29 17:41:29,318 DEBUG PropertyFile - File file:///tmp/.a.tex.properties.xml not found, creating empty one
Traceback (most recent call last):
File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/base/decorators.py", line 735, in _on_load
self._adjust_editor()
File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/base/decorators.py", line 794, in _adjust_editor
editor_class.__init__(self._editor, self, file)
File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/base/__init__.py", line 428, in __init__
self.init(file, self._window_context)
File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/latex/editor.py", line 111, in init
self.__parse()
File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/latex/editor.py", line 344, in __parse
master_file = self.__master_file
File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/typecheck/__init__.py", line 1365, in fake_function
return fake_function.__check_result(func, result)
File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/typecheck/__init__.py", line 1488, in __check_return
raise TypeCheckError("Return value: ", return_vals, e)
GeditLaTeXPlugin.src.typecheck.TypeCheckError: Return value: for None, expected <class 'GeditLaTeXPlugin.src.base.File'>, got <type 'NoneType'>

Discussion

  • As far as I can tell, this doesn't happen on _gedit_ startup, but when a .tex file is opened.

    Moreover, when that happens:
    - the plugin toolbar, which should appear, doesn't, and
    - the user is asked for a master document - even if the opened one is standalone.

    If I switch to another tab and back to that one, now the toolbar shows up, and everything's fine.

     
    • priority: 5 --> 9
    • assigned_to: nobody --> m_zeising
    • status: open --> open-accepted