Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » error "resource is out of sync with the file system"
error "resource is out of sync with the file system" [message #327298] Tue, 15 April 2008 11:11 Go to next message
Eclipse UserFriend
Originally posted by: mwisse.hs-harz.de

Hello,

I already suffer for a while from a stupid problem.

We use eclipse in a network environment under linux with Java and
C-Projects. These projects are stored on mounted samba shares on an IRIX
machine.

While saving changes and compiling mostly an error message "The file ...
has been changed on the file system. Do you want to overwrite the
changes?" appears. After pressing the "Yes" button it is possible to
continue working for a while. After repeating this for some times an other
error message "Resource is out of sync with the file system" appears.
After F5 (Refreshing) it begins again with the messages "The file ... has
been ...".

If I select in "Preferences->Workspace": "Refresh automatically" than it
is impossible to continue working after error "Resource is out of sync
...".

This behavior occurs with java and c/c++-Projects.

I know such errors were discussed here sometimes, but I couldn't find a
solution for me. I found, that it could have to do with a timestamp
problem in samba, but I can't see a problem with the timestamp:

[m97@buslab10 src]$ ls -la --full-time
insgesamt 4
drwxr-xr-x 2 m97 ai 0 2008-04-15 12:02:58.000000000 +0200 .
drwxr-xr-x 3 m97 ai 0 2008-04-15 12:42:10.000000000 +0200 ..
-rwxr--r-- 1 m97 ai 454 2008-04-15 12:59:15.000000000 +0200 test.cpp
[m97@buslab10 src]$ date
Di Apr 15 12:59:45 CEST 2008
[m97@buslab10 src]$

If someone could explain me, how the eclipse mechanism for verifying if
the file has changed on the filesystem, works, I could search on.

Is it possible to turn off this file verification?

Or does anybody see a problem above?

Thanks and regards
Michael
Re: error "resource is out of sync with the file system" [message #327311 is a reply to message #327298] Tue, 15 April 2008 13:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Michael,

I've seen this type of issue reported before with mounted file systems.
Eclipse caches an expected time stamp for each resource and if the file
system reports a different time stamp from the expected one, Eclipse
assumes the file has changed. So it sounds a little like the mounted
file system is reporting time stamps inconsistently, i.e, repeated
requests for the time stamp of an unmodified file don't return the same
value...


Michael wrote:
> Hello,
>
> I already suffer for a while from a stupid problem.
> We use eclipse in a network environment under linux with Java and
> C-Projects. These projects are stored on mounted samba shares on an
> IRIX machine.
> While saving changes and compiling mostly an error message "The file
> ... has been changed on the file system. Do you want to overwrite the
> changes?" appears. After pressing the "Yes" button it is possible to
> continue working for a while. After repeating this for some times an
> other error message "Resource is out of sync with the file system"
> appears. After F5 (Refreshing) it begins again with the messages "The
> file ... has been ...".
>
> If I select in "Preferences->Workspace": "Refresh automatically" than
> it is impossible to continue working after error "Resource is out of
> sync ..".
>
> This behavior occurs with java and c/c++-Projects.
>
> I know such errors were discussed here sometimes, but I couldn't find
> a solution for me. I found, that it could have to do with a timestamp
> problem in samba, but I can't see a problem with the timestamp:
>
> [m97@buslab10 src]$ ls -la --full-time
> insgesamt 4
> drwxr-xr-x 2 m97 ai 0 2008-04-15 12:02:58.000000000 +0200 .
> drwxr-xr-x 3 m97 ai 0 2008-04-15 12:42:10.000000000 +0200 ..
> -rwxr--r-- 1 m97 ai 454 2008-04-15 12:59:15.000000000 +0200 test.cpp
> [m97@buslab10 src]$ date
> Di Apr 15 12:59:45 CEST 2008
> [m97@buslab10 src]$
>
> If someone could explain me, how the eclipse mechanism for verifying
> if the file has changed on the filesystem, works, I could search on.
>
> Is it possible to turn off this file verification?
>
> Or does anybody see a problem above?
>
> Thanks and regards
> Michael
>
>
>
>
>
Re: error "resource is out of sync with the file system" [message #329153 is a reply to message #327298] Sat, 14 June 2008 10:35 Go to previous message
Eclipse UserFriend
Originally posted by: thunderaxiom.gmail.com

Michael skrev den 15-04-2008 13:11:
> Hello,
>
> I already suffer for a while from a stupid problem.
> We use eclipse in a network environment under linux with Java and
> C-Projects. These projects are stored on mounted samba shares on an IRIX
> machine.

Are all machines synchronized with NTP?

--
Thorbjørn
Previous Topic:Run as ... issue
Next Topic:eclipse RC3
Goto Forum:
  


Current Time: Wed Nov 06 00:47:49 GMT 2024

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

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

Back to the top