[Bugs] #4750 Develop UNSP: Develop - create empty file is saved in logs directory

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Sat Mar 29 19:43:03 EDT 2014


#4750: Develop - create empty file is saved in logs directory
---------------------------------------------+--------------------------
       Reporter:  tonyforster                |       Owner:  godiard
           Type:  defect                     |      Status:  new
       Priority:  Unspecified by Maintainer  |   Milestone:  Unspecified
      Component:  Develop                    |     Version:  Unspecified
       Severity:  Unspecified                |    Keywords:
Distribution/OS:  Unspecified                |  Bug Status:  Unconfirmed
---------------------------------------------+--------------------------
\
\
 Created an empty file 'blank.txt', it did not appear in the left pane and
 I could not find it in the file system.

 On resuming Develop (after a restart), the left pane is not displayed. I
 then found the blank file in the previous sessions logs directory.

 Two issues:
 create empty file should be within the target Activities directory not
 logs, (regardless of the view in the left pane, I am not sure what it was
 showing at that time)

 Develop should recover from a missing file without corrupting the UI

 Traceback (most recent call last):
   File "/usr/lib/python2.7/site-packages/sugar3/activity/activity.py",
 line 538, in __canvas_map_cb
     self.read_file(self._jobject.file_path)
   File "/home/olpc/Activities/Develop.activity/develop_app.py", line 477,
 in read_file
     self.load_file(filename)
   File "/home/olpc/Activities/Develop.activity/develop_app.py", line 349,
 in load_file
     self.editor.load_object(full_path, filename)
   File "/home/olpc/Activities/Develop.activity/sourceview_editor.py", line
 117, in load_object
     page = GtkSourceview2Page(full_path)
   File "/home/olpc/Activities/Develop.activity/sourceview_editor.py", line
 331, in __init__
     self.load_text()
   File "/home/olpc/Activities/Develop.activity/sourceview_editor.py", line
 353, in load_text
     _file = file(self.full_path)
 IOError: [Errno 2] No such file or directory:
 u'/home/olpc/.sugar/default/logs/blank.txt'
\
\
\

--
Ticket URL: <http://bugs.sugarlabs.org/ticket/4750>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list