How do you stop editors from displaying corrupted files? [message #531747] |
Wed, 05 May 2010 22:12  |
Eclipse User |
|
|
|
Hi all,
I've discovered that occasionally the Eclipse editor decides to corrupt a file it is loading. Either a large chunk is missing from the middle of the file, or part of an unrelated file is appended onto the end of it.
I initially thought the files were actually corrupted, but they're fine on disk if I open them outside of Eclipse. These are PHP files, but even if I right click on the file and choose Open With | Text Editor (instead of the PHP editor) the file is still corrupted. If I save the file then the corrupted version is written to disk.
Restarting Eclipse still shows the corrupted file (it's exactly the same corruption each time, as if Eclipse has cached it somewhere and it's only loading the cached copy.) The only way I have figured out to restore it is to modify the file externally, then Eclipse asks me whether I would like to reload the file and when I do, it is restored.
This is now the second time it has happened (on a different file but in the same project) so I'm wondering whether it's a known issue? Help | About says: Version: 3.5.1 Build id: M20090917-0800.
Any ideas?
|
|
|
Re: How do you stop editors from displaying corrupted files? [message #539917 is a reply to message #531747] |
Mon, 14 June 2010 05:30  |
Eclipse User |
|
|
|
Adam Nielsen wrote:
> Hi all,
>
> I've discovered that occasionally the Eclipse editor decides to
> corrupt a file it is loading. Either a large chunk is missing from
> the middle of the file, or part of an unrelated file is appended onto
> the end of it.
>
> I initially thought the files were actually corrupted, but they're
> fine on disk if I open them outside of Eclipse. These are PHP files,
> but even if I right click on the file and choose Open With | Text
> Editor (instead of the PHP editor) the file is still corrupted. If I
> save the file then the corrupted version is written to disk.
>
> Restarting Eclipse still shows the corrupted file (it's exactly the
> same corruption each time, as if Eclipse has cached it somewhere and
> it's only loading the cached copy.) The only way I have figured out
> to restore it is to modify the file externally, then Eclipse asks me
> whether I would like to reload the file and when I do, it is restored.
>
> This is now the second time it has happened (on a different file but
> in the same project) so I'm wondering whether it's a known issue?
Never heard of this. Please file a bug report against Platform Text
( https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform) if you
can reproduce.
Dani
> Help | About says: Version: 3.5.1 Build id: M20090917-0800.
>
> Any ideas?
>
|
|
|
Powered by
FUDForum. Page generated in 0.03566 seconds