Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How do you stop editors from displaying corrupted files?(Every time I open a file it is corrupted, but it's fine on disk)
How do you stop editors from displaying corrupted files? [message #531747] Wed, 05 May 2010 22:12 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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?
>
Previous Topic:gray solid, non-movable rectangle on top of all sub-windows (hides code text)
Next Topic:auto focus between views and editors?
Goto Forum:
  


Current Time: Wed Jul 23 06:28:40 EDT 2025

Powered by FUDForum. Page generated in 0.04263 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top