#84 \include does not search texmf paths

v0.2
open
7
2009-11-10
2009-07-28
Anonymous
No

Loading a file foo.tex in gedit with latex plugin fails if foo.tex contains a line
e.g.
\include{bob}
where bob.tex is in e.g. /home/user/texmf/...
The plugin does not load.

console output is

WARNING:resources:File not found: /usr/share/gedit-2/plugins/GeditLaTeXPlugin/glade/new_document_template_dialog.glade
WARNING:resources:File not found: /usr/share/gedit-2/plugins/GeditLaTeXPlugin/glade/save_as_template_dialog.glade
Traceback (most recent call last):
File "/home/schiffi/.gnome2/gedit/plugins/GeditLaTeXPlugin/src/base/decorators.py", line 650, in _on_load
self._adjust_editor()
File "/home/schiffi/.gnome2/gedit/plugins/GeditLaTeXPlugin/src/base/decorators.py", line 707, in _adjust_editor
editor_class.__init__(self._editor, self, file)
File "/home/schiffi/.gnome2/gedit/plugins/GeditLaTeXPlugin/src/base/__init__.py", line 403, in __init__
self.init(file, self._window_context)
File "/home/schiffi/.gnome2/gedit/plugins/GeditLaTeXPlugin/src/latex/editor.py", line 105, in init
self.__parse()
File "/home/schiffi/.gnome2/gedit/plugins/GeditLaTeXPlugin/src/latex/editor.py", line 277, in __parse
expander.expand(self._document, self._file, self, self.charset)
File "/home/schiffi/.gnome2/gedit/plugins/GeditLaTeXPlugin/src/latex/expander.py", line 56, in expand
self._expand(documentNode)
File "/home/schiffi/.gnome2/gedit/plugins/GeditLaTeXPlugin/src/latex/expander.py", line 83, in _expand
fragment = self._document_cache.get_document(File(filename), self._charset, self._issue_handler)
File "/home/schiffi/.gnome2/gedit/plugins/GeditLaTeXPlugin/src/latex/cache.py", line 134, in get_document
entry = self.Entry(file, charset)
File "/home/schiffi/.gnome2/gedit/plugins/GeditLaTeXPlugin/src/latex/cache.py", line 74, in __init__
self.synchronize()
File "/home/schiffi/.gnome2/gedit/plugins/GeditLaTeXPlugin/src/latex/cache.py", line 95, in synchronize
self.__mtime = self.__file.mtime
File "/home/schiffi/.gnome2/gedit/plugins/GeditLaTeXPlugin/src/base/__init__.py", line 1192, in mtime
return os.path.getmtime(self.path)
File "/usr/lib/python2.6/genericpath.py", line 54, in getmtime
return os.stat(filename).st_mtime
OSError: [Errno 2] No such file or directory: '/home/schiffi/Dokumente/Dissertation/abk.tex'
ERROR:LaTeXCompletionHandler:Not found: file:///home/schiffi/Dokumente/Dissertation/literatur.bib

Of course the file does not exists in that directory as described above.

Discussion

  • Michael Zeising

    Michael Zeising - 2009-11-10
    • priority: 5 --> 7
    • assigned_to: nobody --> m_zeising
    • summary: Error loading .tex file which includes files from texmf tree --> \include does not search texmf paths
     
  • Michael Zeising

    Michael Zeising - 2009-11-10

    Thanks for posting!

     

Log in to post a comment.