Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Loading external changed files
Loading external changed files [message #731673] Sun, 02 October 2011 12:09 Go to next message
batsmile is currently offline batsmileFriend
Messages: 7
Registered: October 2011
Junior Member
Hello,

when I want to open files with eclipse, which are changed (and saved) with another editor after I started eclipse, eclipse shows the old version of the file.

I didn't find any topic about this or help from a google-search or the FAQ. Can anyone explain, how I configure eclipse to show always the current version of the file?



Thanks and have a good day,

bat
Re: Loading external changed files [message #731702 is a reply to message #731673] Sun, 02 October 2011 15:15 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
You need to do a refresh. You can have that be done automatically with
Window->Preferences->General->Workspace using a suitable "Refresh blah
blah" option.


On 02/10/2011 5:09 AM, batsmile wrote:
> Hello,
>
> when I want to open files with eclipse, which are changed (and saved)
> with another editor after I started eclipse, eclipse shows the old
> version of the file.
>
> I didn't find any topic about this or help from a google-search or the
> FAQ. Can anyone explain, how I configure eclipse to show always the
> current version of the file?
>
>
>
> Thanks and have a good day,
>
> bat


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Loading external changed files [message #731725 is a reply to message #731673] Sun, 02 October 2011 18:30 Go to previous messageGo to next message
batsmile is currently offline batsmileFriend
Messages: 7
Registered: October 2011
Junior Member
First of all, thank you for your answer.
Your solution may work (I didn't test it) with files contained in the workspace-folder. But all other files (which are not in the folder) don't refresh on load, even when I checked the option, that you mentioned.
Re: Loading external changed files [message #731757 is a reply to message #731725] Sun, 02 October 2011 23:27 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Eclipse is generally intended to edit and manage things in a workspace.
I noticed that when I open just some text file with the text editor,
when I give focus back to Eclipse it notices the file has changed and
asks if I want to load the new contents even without those options.
Which Eclipse tools are you trying to use where you see a problem?


On 02/10/2011 11:30 AM, batsmile wrote:
> First of all, thank you for your answer.
> Your solution may work (I didn't test it) with files contained in the
> workspace-folder. But all other files (which are not in the folder)
> don't refresh on load, even when I checked the option, that you
> mentioned.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Loading external changed files [message #731875 is a reply to message #731757] Mon, 03 October 2011 11:17 Go to previous messageGo to next message
batsmile is currently offline batsmileFriend
Messages: 7
Registered: October 2011
Junior Member
I'm not quite sure, what you mean with "Eclipse-Tools". I'm using the following version of Eclipse:

Eclipse for PHP Developers
Version: Helios Release
Build id: 20100617-1415
Re: Loading external changed files [message #731944 is a reply to message #731875] Mon, 03 October 2011 14:26 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
So your question is specifically about the behavior of the PHP editor?
You might want to ask on eclipse.tools.pdt if that's the case. None of
what you describe sounds to be a general problem with all Eclipse editors.


On 03/10/2011 4:17 AM, batsmile wrote:
> I'm not quite sure, what you mean with "Eclipse-Tools". I'm using the
> following version of Eclipse:
>
> Eclipse for PHP Developers
> Version: Helios Release
> Build id: 20100617-1415


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Loading external changed files [message #732000 is a reply to message #731944] Mon, 03 October 2011 16:28 Go to previous messageGo to next message
batsmile is currently offline batsmileFriend
Messages: 7
Registered: October 2011
Junior Member
I don't think it's a problem with PDT, because I don't see this plugin to be installed in the "installed software"-option.
Re: Loading external changed files [message #732013 is a reply to message #732000] Mon, 03 October 2011 16:45 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
I don't think your problem is very clear. I've explained all the
options available and I've explained that the text editor works
properly, i.e., notices if the underlying file's timestamp has changed
and prompts whether you want to load the changed contents. Then I
explain that the PDT project is the place to ask questions specific to
PDT; you've told me you have the PHP Develper version of Eclipse so I
know you have PDT installed despite your subsequent claim to the
contrary. Unless you do a better job explaining exactly what editor you
are using and exactly what steps you are following that someone else
might reproduce/see your problem, you're not likely to get any further help.


On 03/10/2011 9:28 AM, batsmile wrote:
> I don't think it's a problem with PDT, because I don't see this plugin
> to be installed in the "installed software"-option.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Loading external changed files [message #732019 is a reply to message #731673] Mon, 03 October 2011 17:35 Go to previous messageGo to next message
batsmile is currently offline batsmileFriend
Messages: 7
Registered: October 2011
Junior Member
You are definitely right. I will try to explain my problem precisely:

I open a file called "index.php" (which is not in the workspace-folder) with eclipse. Then I add some code (like $test = 1;), save the file and close the file, but not eclipse.
Now I use my ftp-program and overwrite the file with the file from an external server. When I open the file from my hdd again with eclipse, eclipse shows me, that the code ($test = 1;) is still in the file, although it is actually not in the file.


I thought the PDT is not installed, because I don't see it in the "already installed"-option. When you say, it must be installed, then it is installed. I just don't know it better.


This is the only plugin (?), that I can find:
Eclipse IDE for PHP Developers
epp.package.php
1.3.0.20100617-0520
Re: Loading external changed files [message #732034 is a reply to message #732019] Mon, 03 October 2011 18:34 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
This sounds a bit impossible. Eclipse doesn't keep a cache of old
contents of previously opened files. Maybe the PHP tools do that, but
Eclipse doesn't. Perhaps you're confused about what's actually in the
file. How do you know its real contents are different from what Eclipse
is showing?


On 03/10/2011 10:35 AM, batsmile wrote:
> You are definitely right. I will try to explain my problem precisely:
>
> I open a file called "index.php" (which is not in the
> workspace-folder) with eclipse. Then I add some code (like $test =
> 1;), save the file and close the file, but not eclipse.
> Now I use my ftp-program and overwrite the file with the file from an
> external server. When I open the file from my hdd again with eclipse,
> eclipse shows me, that the code ($test = 1;) is still in the file,
> although it is actually not in the file.
>
>
> I thought the PDT is not installed, because I don't see it in the
> "already installed"-option. When you say, it must be installed, then
> it is installed. I just don't know it better.
>
>
> This is the only plugin (?), that I can find:
> Eclipse IDE for PHP Developers
> epp.package.php
> 1.3.0.20100617-0520


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Loading external changed files [message #732058 is a reply to message #732034] Mon, 03 October 2011 20:02 Go to previous messageGo to next message
batsmile is currently offline batsmileFriend
Messages: 7
Registered: October 2011
Junior Member
I checked the "real" content of the file with two different editors: The windows text-editor (notepad) and notepad++. They both show the same content of the file.
Re: Loading external changed files [message #733488 is a reply to message #732058] Tue, 04 October 2011 21:29 Go to previous messageGo to next message
batsmile is currently offline batsmileFriend
Messages: 7
Registered: October 2011
Junior Member
My "solution" for this problem: Create a project in the workspace-folder, copy all files I want to edit to this folder and then eclipse always asks to reload if any changes have been made to these files.

Anyway, thank you for your time and help, Ed Merks.

[Updated on: Tue, 04 October 2011 21:31]

Report message to a moderator

Re: Loading external changed files [message #733514 is a reply to message #733488] Tue, 04 October 2011 22:59 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
It's also possible to create a project or folder that's a link to
something out in the file system. You have to used advanced properties
for that when creating it.


On 04/10/2011 2:29 PM, batsmile wrote:
> My "solution" for this problem: Create a project in the
> workspace-folder, copy all files I want to edit to this folder and
> then eclipse always asks to reload if any changes have been made to
> these files.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Loading external changed files [message #735102 is a reply to message #732019] Mon, 10 October 2011 23:02 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

batsmile wrote on Mon, 03 October 2011 13:35
You are definitely right. I will try to explain my problem precisely:

I open a file called "index.php" (which is not in the workspace-folder) with eclipse. Then I add some code (like $test = 1;), save the file and close the file, but not eclipse.
Now I use my ftp-program and overwrite the file with the file from an external server. When I open the file from my hdd again with eclipse, eclipse shows me, that the code ($test = 1;) is still in the file, although it is actually not in the file.


That rather plainly has to be a bug. You should report it using Bugzilla, https://bugs.eclipse.org/bugs/enter_bug.cgi?product=PDT .


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:SSH2 Key Import
Next Topic:Reset Eclipse Screen to Default When First Installed
Goto Forum:
  


Current Time: Fri Apr 19 08:28:48 GMT 2024

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

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

Back to the top