Home » Eclipse Projects » Target Management » locally updated image file not updated on remote site
locally updated image file not updated on remote site [message #989163] |
Tue, 04 December 2012 17:56  |
Eclipse User |
|
|
|
Hello Everyone,
First of all, let me be honest, I'm a relatively new user of Eclipse and RSE.
I have run into an issue where an image file is opened by double clicking on the file in RSE, edited using paint or some other image editor, and then saved. However, the file on the remote site does not get updated with the edited local copy.
Double clicking the image file again, opens up the local version from the workspace temp files. Even after a restart of eclipse, or a disconnect and reconnect of the remote system.
I can however, drag the file from the temp workspace, drop it onto the remote folder, and be prompted to overwrite the existing file, which works as expected. The file on the remote site is overwritten. As well, I can rename, copy and delete files without issue, so I don't think its a permission problem.
Is there something that I am missing, that will automatically update the remote file?
Using latest Eclipse Juno 4.2.1, RSE runtime 3.4.1.201209191030-7L7IFBY83omx__z0RFpKdWB-r5MS, connecting to a Ubuntu 12.04 webserver, using SSH.
|
|
|
Re: locally updated image file not updated on remote site [message #989176 is a reply to message #989163] |
Tue, 04 December 2012 20:07   |
Eclipse User |
|
|
|
Robert Lewis wrote on Tue, 04 December 2012 17:56Hello Everyone,
First of all, let me be honest, I'm a relatively new user of Eclipse and RSE.
I have run into an issue where an image file is opened by double clicking on the file in RSE, edited using paint or some other image editor, and then saved. However, the file on the remote site does not get updated with the edited local copy.
Double clicking the image file again, opens up the local version from the workspace temp files. Even after a restart of eclipse, or a disconnect and reconnect of the remote system.
I can however, drag the file from the temp workspace, drop it onto the remote folder, and be prompted to overwrite the existing file, which works as expected. The file on the remote site is overwritten. As well, I can rename, copy and delete files without issue, so I don't think its a permission problem.
Is there something that I am missing, that will automatically update the remote file?
Using latest Eclipse Juno 4.2.1, RSE runtime 3.4.1.201209191030-7L7IFBY83omx__z0RFpKdWB-r5MS, connecting to a Ubuntu 12.04 webserver, using SSH.
I'm no RSE expert (barely used it, in fact), but I can offer some educated speculation about what's happening.
Eclipse maintains its own representation of file system resources (the Resources API); in general, file changes that are done by external processes are not automatically detected by Eclipse. Now, bearing in mind the fact that RSE is (most likely) relying on notifications from Eclipse's internal resources API in order to push files to the remote system, it might just be that Eclipse (and hence, RSE) is not aware that the file has been touched.
To test this theory, try right-click on the file or it's containing folder in Eclipse, and select Refresh. If y theory is correct, that will trigger Eclipse's Resources infrastructure to see that the file has been changed and therefore notify RSE, which will then push the file to the remote system.
If this does indeed prove to be correct, you can just manually do the Refresh on folders/files after you've modified them in an external app. Alternatively, there is a Preferences setting that will force Eclipse to monitor file system changes constantly; you can find it under Preferences > General > Workspace > Refresh Using Native Hooks.
|
|
| | | |
Re: locally updated image file not updated on remote site [message #991197 is a reply to message #991184] |
Mon, 17 December 2012 11:59  |
Eclipse User |
|
|
|
When using RSE to edit files, a hidden project is created to store cached
files downloaded from the server (this is the RemoteSystemTempFiles
project). To test whether this is the issue, you shouldn't have to create a
new project - just unhide the existing project and try refreshing it.
"Robert Lewis" <forums-noreply@xxxxxxxx> wrote in message
news:kanfup$bse$1@xxxxxxxxe.org...
> Thanks for the feedback David,
>
> I'll have to create a project to test this. I was just doing some quick
> modifications directly on the remote file system, when I ran into this.
|
|
|
Goto Forum:
Current Time: Fri May 16 12:31:10 EDT 2025
Powered by FUDForum. Page generated in 0.03724 seconds
|