Gedit (3.4.1) gives the error below while saving a BibTex file (Ubuntu 12.04). The saving works fine, apart from the error popping up.
'bibtex-error' Traceback (most recent call last): File "/usr/lib/gedit/plugins/latex/util.py", line 116, in decorated_function return function(*args, **kw) File "/usr/lib/gedit/plugins/latex/bibtex/editor.py", line 141, in __parse self.remove_markers("bibtex-error") File "/usr/lib/gedit/plugins/latex/editor.py", line 493, in remove_markers type_record = self._marker_types[marker_type] KeyError: 'bibtex-error'
How to fix it?
- open
/usr/lib/gedit/plugins/latex/bibtex/views.py
- change the line
-
to+
# add grouping controls to toolbar - self._item_none = Gtk.RadioMenuItem.new_with_label(None, _("No Grouping")) + self._item_none = Gtk.RadioMenuItem.new_with_label([], _("No Grouping")) self._item_type = Gtk.RadioMenuItem.new_with_label((self._item_none,), _("Group by Type")) self._item_author = Gtk.RadioMenuItem.new_with_label((self._item_none,), _("Group by Author")) self._item_year = Gtk.RadioMenuItem.new_with_label((self._item_none,), _("Group by Year"))