How do I stop Eclipse from worrying about everything? [message #523730] |
Mon, 29 March 2010 05:56 |
Adam Nielsen Messages: 15 Registered: July 2009 |
Junior Member |
|
|
Hi all,
I've been forced to work on a project hosted on a remote machine, and Eclipse is being such a pain about it!
Every time I try to open a file instead of just opening it, it tells me "Resource 'xxx' is out of sync with file system", and I have to go over, click the right mouse button on the file, choose Refresh, see that nothing at all happens, then try to open it again and this time it works! The next time I want to open that file or another one, I get the same error again and have to go through the same convoluted process, just to open a file! What's the point of that error? I don't see how it's useful - why can't Eclipse just open the file?
I've already posted another thread about the other issues, every time I want to save a file I get a popup and I have to click "yes I want to overwrite the file", and every time I switch to another app and back to Eclipse it warns me that the file has been changed (well duh, I just saved it through Eclipse.) Unfortunately someone decided these were really brilliant ideas and didn't bother to implement a way to switch them off (don't want people working *too* efficiently I guess.) Eclipse is just trying to be too smart for its own good, and is failing miserably.
I know these issues stem from the system clocks being out of sync, but both machines are NTP sync'd to the same time server - they are less than a second out. You'd think that sort of precision would be more than enough, but apparently Eclipse measures file update times down to the nanosecond...
If anyone can help me figure out how to get rid of these infuriating popups I'd be forever in your debt. As you can probably tell, they're currently driving me 'round the bend!
|
|
|
Re: How do I stop Eclipse from worrying about everything? [message #523822 is a reply to message #523730] |
Mon, 29 March 2010 09:08 |
Ed Merks Messages: 33252 Registered: July 2009 |
Senior Member |
|
|
Adam,
Comments below.
Adam Nielsen wrote:
> Hi all,
>
> I've been forced to work on a project hosted on a remote machine, and
> Eclipse is being such a pain about it!
>
> Every time I try to open a file instead of just opening it, it tells
> me "Resource 'xxx' is out of sync with file system", and I have to go
> over, click the right mouse button on the file, choose Refresh, see
> that nothing at all happens, then try to open it again and this time
> it works! The next time I want to open that file or another one, I
> get the same error again and have to go through the same convoluted
> process, just to open a file! What's the point of that error? I
> don't see how it's useful - why can't Eclipse just open the file?
Eclipse keeps track of the expected time stamp of each resource so if
you change it from outside of Eclipse, Eclipse will know about it and
will be able to update the workspace along with kicking off builds and
things like that to get everything back in sync.
>
> I've already posted another thread about the other issues, every time
> I want to save a file I get a popup and I have to click "yes I want to
> overwrite the file", and every time I switch to another app and back
> to Eclipse it warns me that the file has been changed (well duh, I
> just saved it through Eclipse.) Unfortunately someone decided these
> were really brilliant ideas and didn't bother to implement a way to
> switch them off (don't want people working *too* efficiently I
> guess.) Eclipse is just trying to be too smart for its own good, and
> is failing miserably.
You have a file system that's completely incapable of maintain
consistent time stamps.
>
> I know these issues stem from the system clocks being out of sync, but
> both machines are NTP sync'd to the same time server - they are less
> than a second out. You'd think that sort of precision would be more
> than enough, but apparently Eclipse measures file update times down to
> the nanosecond... :(
Being only a little bit in sync is like being a little pregnant.
>
> If anyone can help me figure out how to get rid of these infuriating
> popups I'd be forever in your debt. As you can probably tell, they're
> currently driving me 'round the bend!
You could try Window->Preferences->General->Workspace->Refresh
Automatically. You might consider using a real version control system
instead of sharing files across a network.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02934 seconds