Error when we open a deleted file (or a missing file)

Bug #78447 reported by Mathieu Virbel
4
Affects Status Importance Assigned to Milestone
PIDA
Won't Fix
High
Ali Afshar

Bug Description

  File /usr/local/lib/python2.4/site-packages/pida-0.4.3-py2.4.egg/pida/services/filemanager.py, line 553, in cb_single_view_file_activated
    filename=filename)
  File /usr/local/lib/python2.4/site-packages/pida-0.4.3-py2.4.egg/pida/core/boss.py, line 79, in call_command
    return group.call(commandname=commandname, **kw)
  File /usr/local/lib/python2.4/site-packages/pida-0.4.3-py2.4.egg/pida/core/service.py, line 150, in call
    result = self.__call_command(command, **kw)
  File /usr/local/lib/python2.4/site-packages/pida-0.4.3-py2.4.egg/pida/core/service.py, line 158, in __call_command
    return command(**kw)
  File /usr/local/lib/python2.4/site-packages/pida-0.4.3-py2.4.egg/pida/core/command.py, line 72, in __call__
    return self.__callback(**kw)
  File /usr/local/lib/python2.4/site-packages/pida-0.4.3-py2.4.egg/pida/services/buffermanager.py, line 221, in cmd_open_file
    self.__add_document(document)
  File /usr/local/lib/python2.4/site-packages/pida-0.4.3-py2.4.egg/pida/services/buffermanager.py, line 391, in __add_document
    self.plugin_view.add_document(document)
  File /usr/local/lib/python2.4/site-packages/pida-0.4.3-py2.4.egg/pida/services/buffermanager.py, line 88, in add_document
    self.__buffertree.add_item(document, key=document.unique_id)
  File /usr/local/lib/python2.4/site-packages/pida-0.4.3-py2.4.egg/pida/pidagtk/tree.py, line 274, in add_item
    row = [key, titem, self.__get_markup(item)]
  File /usr/local/lib/python2.4/site-packages/pida-0.4.3-py2.4.egg/pida/pidagtk/tree.py, line 292, in __get_markup
    unmangled[k] = getattr(item, k)
  File /usr/local/lib/python2.4/site-packages/pida-0.4.3-py2.4.egg/pida/core/document.py, line 299, in get_markup
    s = self.markup_string % self.__build_markup_dict()
  File /usr/local/lib/python2.4/site-packages/pida-0.4.3-py2.4.egg/pida/core/document.py, line 308, in __build_markup_dict
    markup_dict[attr] = getattr(self, attr)
  File /usr/local/lib/python2.4/site-packages/pida-0.4.3-py2.4.egg/pida/core/document.py, line 324, in get_project_relative_path
    return relpath(self.filename, self.__project.source__directory)
  File /usr/local/lib/python2.4/site-packages/pida-0.4.3-py2.4.egg/pida/core/document.py, line 60, in relpath
    raise OSError, 'Target does not exist: '+target
OSError: Target does not exist: /home/tito/code/fw-kork/src/sld_conf/webd.h

Ali Afshar (aafshar)
Changed in pida:
importance: Undecided → High
status: Unconfirmed → Confirmed
Revision history for this message
aconbere (aconbere) wrote :

It seems this would be best be handled either silently (by removing the reference in the file manager) or by marking the file in the file manager as somehow missing. Preferably the latter. Maybe I'm not reading the bug properly in this bug tracker, but it doesn't look like there has been any discussion on how to handle this error yet.

Revision history for this message
Ali Afshar (aafshar) wrote :

Gamin support in 0.5 mostly fixes this. Apart from that...don't open non-existent files :D

Changed in pida:
assignee: nobody → aafshar
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.