I think we could also investigate why the file is empty. Maybe it would be best to save a temporary file and then "mv" the file to the actual location. This problem has been already dealt with with most text editing applications (I think vim does the mv - or did, I'm not sure -). There are articles around the web on this matter. Example: http://bitworking.org/news/390/text-editor-saving-routines On Fri, May 14, 2010 at 12:49:13PM -0000, Lionel Dricot wrote: > Indeed, we should have an automated backup solutions for tag.xml. If the > tag.xml cannot be loaded, then the backup should be used. > > Maybe there's also some point in the code where we keep the file opened > without reason ? > > > There's already a backup code available in tools/cleanxml.py > > ** Summary changed: > > - Program crashes on start (tags.xml size is 0) > + tags.xml is sometimes deleted > > ** Changed in: gtg > Status: Incomplete => Confirmed > > ** Changed in: gtg > Importance: Undecided => Critical > > -- > tags.xml is sometimes deleted > https://bugs.launchpad.net/bugs/579189 > You received this bug notification because you are subscribed to Getting > Things GNOME!. > > Status in Getting Things GNOME!: Confirmed > > Bug description: > Getting Things Gnome! 0.2.4 > LinuxMint 7. > > yu...@ynix ~ $ /home/yuriy/YuriyInstalledSoft/gtg-0.2.4/gtg > Error parsing XML file /home/yuriy/.local/share/gtg/tags.xml: no element > found: line 1, column 0 > > The size of tags.xml file is 0. It is empty. > Fortunately I have had backup of my config files and restored tags.xml. > >
-- tags.xml is sometimes deleted https://bugs.launchpad.net/bugs/579189 You received this bug notification because you are a member of Gtg contributors, which is subscribed to Getting Things GNOME!. Status in Getting Things GNOME!: Confirmed Bug description: Getting Things Gnome! 0.2.4 LinuxMint 7. yu...@ynix ~ $ /home/yuriy/YuriyInstalledSoft/gtg-0.2.4/gtg Error parsing XML file /home/yuriy/.local/share/gtg/tags.xml: no element found: line 1, column 0 The size of tags.xml file is 0. It is empty. Fortunately I have had backup of my config files and restored tags.xml. _______________________________________________ Mailing list: https://launchpad.net/~gtg Post to : [email protected] Unsubscribe : https://launchpad.net/~gtg More help : https://help.launchpad.net/ListHelp

