Package: gedit-latex-plugin
Version: 0.2rc2-2
Severity: normal

Hi,
I've got an python error which prevents the plugin to work properly. 
It occurs when I create a tex file (from terminal : gedit lala.tex) and
set the masterfile (to the already existing truc.tex, for example).

% gedit lala.tex             
sys:1: GtkWarning: gtk_action_set_sensitive: assertion `GTK_IS_ACTION (action)' 
failed
Traceback (most recent call last):
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/base/decorators.py", line 
650, in _on_load
    self._adjust_editor()
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/base/decorators.py", line 
707, in _adjust_editor
    editor_class.__init__(self._editor, self, file)
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/base/__init__.py", line 
403, in __init__
    self.init(file, self._window_context)
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/latex/editor.py", line 
105, in init
    self.__parse()
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/latex/editor.py", line 
305, in __parse
    master_content = open(master_file.path).read()
IOError: [Errno 2] Aucun fichier ou dossier de ce type: ''

So the latex environment won't load.
But if I *save lala.tex* and close gedit, and then if I redo a "gedit 
lala.tex", all's going right, the LaTeX bar appears etc...
It seems to be a little messy with the paths (I was thinking of something 
related to urlparse ?)

If I don't save the file, I get somthing like that at the second run of 'gedit 
lala.tex" :

Traceback (most recent call last):
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/base/decorators.py", line 
650, in _on_load
    self._adjust_editor()
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/base/decorators.py", line 
707, in _adjust_editor
    editor_class.__init__(self._editor, self, file)
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/base/__init__.py", line 
403, in __init__
    self.init(file, self._window_context)
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/latex/editor.py", line 
105, in init
    self.__parse()
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/latex/editor.py", line 
310, in __parse
    expander.expand(self._document, master_file, self, self.charset)
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/latex/expander.py", line 
56, in expand
    self._expand(documentNode)
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/latex/expander.py", line 
83, in _expand
    fragment = self._document_cache.get_document(File(filename), self._charset, 
self._issue_handler)
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/latex/cache.py", line 
134, in get_document
    entry = self.Entry(file, charset)
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/latex/cache.py", line 74, 
in __init__
    self.synchronize()
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/latex/cache.py", line 95, 
in synchronize
    self.__mtime = self.__file.mtime
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/base/__init__.py", line 
1193, in mtime
    return os.path.getmtime(self.path)
  File "/usr/lib/python2.5/posixpath.py", line 143, in getmtime
    return os.stat(filename).st_mtime
OSError: [Errno 2] Aucun fichier ou dossier de ce type: '/home/nox/lala.tex'

... Wich doesnt seem to be really important (maybe not avoidable)

Please let me know how and if you need more debugging information -- I saw the 
logging module in the code but i couldnt manage activating debugging mode :/

Thanks.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (2, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gedit-latex-plugin depends on:
ii  gedit                         2.28.1-1   official text editor of the GNOME 
ii  python                        2.5.4-2    An interactive high-level object-o
ii  python-dbus                   0.83.0-1   simple interprocess messaging syst
ii  python-support                1.0.4      automated rebuilding support for P
ii  rubber                        1.1-2.2    an automated system for building L

Versions of packages gedit-latex-plugin recommends:
ii  python-enchant             1.5.3-1       spellchecking library for Python
ii  texlive                    2007.dfsg.2-4 TeX Live: A decent selection of th

gedit-latex-plugin suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to