views:

28

answers:

2

I am having problem with my Eclipse PDT version. I keeps opening older version of a file until I close it and open it again.

So what is happening. I edit a file with Eclipse - test.php. I close it. Then I compare it (test.ph) with another one in WinMerge, save the changes and when I open the file again in Eclipse it is still the same as it was before I changed it in WinMerge. I have to close the Eclipse and start it again to be able to open the file with it latest modifications.

I have noticed the same problem when I am opening a file downloaded from FileZilla. I have a local copy of the file that is online opened in Eclipse, then someone changed the file online. I right click -> "View/edit" from FileZilla, choosing to overide the old local file with the one online, but then I see the old file again, without the changes. I am sure that there are changes cause when I downlaod the file somewhere and open it , I see them.

Is there something like a cache in the Eclipse that may prevents me from viewing the latest changes. I seems that is happens only when the changes were made outside/not usign Eclipse. Any ideas?

A: 

Yes, Eclipse likes caching a lot... one of the reasons I hate it.

You should be able to have Eclipse auto-refresh your files in the Preferences window in the Window menu (type Refresh to show up the relevant pages). In my not so recent version of Eclipse, I have to put checkmarks on these:

  • Refresh workspace on startup (in Startup and Shutdown)
  • Refresh automatically (in Workspace)
Archimedix
Could this also be the reason for this problem? http://stackoverflow.com/questions/3577010/possible-problem-in-eclipse-usage-with-svn
Yasen Zhelev
I also noticed that this happens with files that are not part of any project - they are not part of my workspace. I still find it annoying!!! It also happens with file from my working space when I do not open them from the PHP explorer in Eclipse but directly from the Windows Explorer, which is also strange.
Yasen Zhelev
A: 

Is there any way to open a file outside the project without it being cached and to be able to reopen it and see the actual code?

This is a huge disadvantage of the Eclipse. I do not know how things like this could be left the way they are?

Yasen Zhelev