Pretty Print erases file

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Barbara
Posts: 1
Joined: Thu Feb 10, 2005 4:44 am

Pretty Print erases file

Post by Barbara »

Hi,

I started using oXygen 5.0 a month ago and upgraded to 5.1 a week ago. I work on a Dell Xeon with XP. At the moment I'm cutting and pasting a bunch of text from html files into an XML file, so I click Pretty Print regularly. Every half hour or so, when I click Pretty Print, it takes forever, and then, instead of pretty printing, it erases all but the first line of code and I get an error message: "premature end of file." I can usually revert to the last saved version of the file, close the program, reopen, and continue. But that's hardly ideal.

Plus, one time, when I saw that the program was getting hung up on pretty printing, I tried to just close it. It asked if I wanted to save. I said yes because the entire 8000+ lines of the file were visible at that point. But what got saved was just that first line!

Has anyone else had this problem/anything similar? I think the problem started when I upgraded to 5.1, but I'm not sure. Before that the program would just get slower and slower, until I had to close and reopen after 3-4 hours.
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi Barbara,

The problems may be related with an OutOfMemoryError that can appear because of these frequent formattting actions. The problem is the undo support that keeps track of your document changes and on a formatting action it stores a lot of information.
We will consider adding an option like clear undo history on save for instance. We are also discussing other possible approaches to solve this problem in the future.
A workaround will be to close and reopen the document (you should not need to close and reopen the application) or to avoid performing a lot of formatting actions on a large file.

Best Regards,
George
Post Reply