|
From: Slava P. <sl...@je...> - 2001-07-14 00:06:30
|
Hi, Firstly, I believe this is a Java bug. Some people have reported that it only happends if CodeAid is installed. As for backups, files are backed up only once per session. I could make this behavior configurable. In the next major release, I am going to write my own document model, because what you describe is one of many problems with the Swing document. Slava On Fri, Jul 13, 2001 at 03:36:33PM -0400, Joe Polanik wrote: > Something very similar happened to me this afternoon, but I was not using > JCompiler. I compile my java code with ant scripts (not the ant plugin). > > All of a sudden jEdit began giving an ArrayIndexOutOfBounds error on simple > cut and paste operations ... and lost the lines being moved. Undo did not > always restore them. > > After closing and reopening JEdit I found that my file was a blank 2K file > (so maybe just checking for 0K files as suggested below might not catch all > these glitches). > > I don't believe the .bak file was accurate. It appeared to have reverted to > a version several hours old. I can't swear to it but I believe I saved my > work several times in the interim. > > Anyway, since I put my source files into the .jar when I compiled, i only > lost 10 - 15 minutes work. > > Ironically, I was trying to write a plugin for jEdit at the time. Spooky. > > Joe > > > FROM: Lou Losee > DATE: 07/13/2001 08:47:39 > SUBJECT: [ jEdit-users ] Re: Future Plans (was:Unexpected JCompiler error) > Saimon Moore wrote: > <snip> > > N.B. On a completely different point, many thanks to the author of Jode. > > He/She saved me a hell of a lot of work. > > This has happened on two previous occasions and I thought I should mention > > it. While using jedit (I've yet to identify any particular action that > > precludes this), the buffer is deleted completely. I'm sorry, I can't give > > much info on this, but it happens quite unexpectedly, and I don't even > > realise until I reopen the file. > > Anyway, Jode saved my ass, since I had the file compiled and was able to > > succesfully decompile with Jode to it's original state. Otherwise, It would > > have cost me 2 days work. On previous occassions, I noticed the 0K size of > > the file and used the backup to restore the file to it's original state. > > But > > this time, I didn't notice at all, and committed the file (along with many > > others to CVS. The previous revision was two days old, so that didn't help, > > but by decompiling, I managed to retrieve all my work. I think this is a > > serious problem, and I'll try to identify the circumstances if this ever > > happens again. > Would it be worth the effort to have JEdit see if it is replacing a > 'valid' > backup with a zero K file and warn the user that 'any existing backup > will > lost? Perhaps as an option. > Lou > <snip> > > > -- > ----------------------------------------------- > jEdit Users' List > jEd...@li... > http://lists.sourceforge.net/lists/listinfo/jedit-users |