#143 Plugin fails to load properly : bibtex parser ?

open
nobody
None
5
2010-11-08
2010-11-08
Anonymous
No

When calling gedit on a tex file from a terminal, it fails sometimes, with the following traceback. The enclosed files are minimal example that make the latex plugin loading phase crash. It uses the IEEEtran.cls and IEEEabrv.bst latex styles.

2010-11-08 08:42:01,839 DEBUG LaTeXEditor - init(file:///...../draft-v0.tex)
2010-11-08 08:42:01,839 DEBUG LaTeXEditor - Parsing document...
2010-11-08 08:42:01,839 DEBUG IssueView - init
2010-11-08 08:42:01,845 DEBUG IssueView - init finished
2010-11-08 08:42:01,954 INFO LaTeXEditor - LaTeXParser.parse: 0.110000
2010-11-08 08:42:01,954 DEBUG LaTeXEditor - Parsed 36826 bytes of content
2010-11-08 08:42:01,956 ERROR ReferenceExpander - Malformed reference command at 31723
2010-11-08 08:42:01,956 ERROR ReferenceExpander - Malformed reference command at 31819
2010-11-08 08:42:01,961 DEBUG LaTeXOutlineView - set_outline
2010-11-08 08:42:01,961 DEBUG LaTeXOutlineView - init
2010-11-08 08:42:01,967 DEBUG LaTeXValidator - validate
2010-11-08 08:42:02,007 DEBUG LanguageModel - set_newcommands:
2010-11-08 08:42:02,008 DEBUG BibTeXDocumentCache - Cache fault for 'file:///....../IEEEabrv.bib'
Traceback (most recent call last):
File "~/.gnome2/gedit/plugins/GeditLaTeXPlugin/src/base/decorators.py", line 735, in _on_load
self._adjust_editor()
File "~/.gnome2/gedit/plugins/GeditLaTeXPlugin/src/base/decorators.py", line 794, in _adjust_editor
editor_class.__init__(self._editor, self, file)
File "~/.gnome2/gedit/plugins/GeditLaTeXPlugin/src/base/__init__.py", line 428, in __init__
self.init(file, self._window_context)
File "~/.gnome2/gedit/plugins/GeditLaTeXPlugin/src/latex/editor.py", line 111, in init
self.__parse()
File "~/.gnome2/gedit/plugins/GeditLaTeXPlugin/src/latex/editor.py", line 365, in __parse
self.__latex_completion_handler.set_outline(self._outline)
File "~/.gnome2/gedit/plugins/GeditLaTeXPlugin/src/latex/completion.py", line 152, in set_outline
bibtex_document = self._bibtex_document_cache.get_document(bib_file)
File "~/.gnome2/gedit/plugins/GeditLaTeXPlugin/src/bibtex/cache.py", line 105, in get_document
entry = self.Entry(file)
File "~/.gnome2/gedit/plugins/GeditLaTeXPlugin/src/bibtex/cache.py", line 58, in __init__
self.synchronize()
File "~/.gnome2/gedit/plugins/GeditLaTeXPlugin/src/bibtex/cache.py", line 78, in synchronize
self.__document = self.__parser.parse(open(self.__file.path, "r").read(), self.__file, self.__issue_handler)
File "~/.gnome2/gedit/plugins/GeditLaTeXPlugin/src/bibtex/parser.py", line 416, in parse
callables[self._state].__call__(token, file, issue_handler)
TypeError: _on_quoted_string_value() takes exactly 2 arguments (4 given)

Discussion

  •  
    Attachments