Author: Reille
This blog site: http://blog.csdn.net/reille/, reproduced this blog original article please indicate the source.
This article outlines: Resolves an issue in eclipse where the resource is out of sync with the file system.
Eclipse version: Eclipse SDK 3.7.0
———————————————————————————————————————————————————————————————————
When searching in eclipse, sometimes the error dialog box pops up after the search is complete. The error excerpt is as follows:
Resource is out of sync with the file system ...
Parse:
Sometimes because of the time is urgent reason, so did not go to the tube it, today again encountered it, really looked uncomfortable, so thought the method solves this problem.
This problem is caused by the fact that Eclipse Chinese is not synchronized. In Eclipse, the project files are added by Eclipse Auto-Scan, and if the files in the project directory are modified externally and the auto-refresh feature is turned off, the file will be out of sync, resulting in a search that occurs resource System issues (Other features may also be the case). In addition, it is possible that the issue may be caused by an external failure to modify files in the Eclipse project.
Workaround:
There are two workarounds:
1) Manual refresh. That is, in the project catalog of Eclipse, right-click Refresh (or press F5).
2) Configure Eclipse options:
a) When Eclipse starts, refresh workspace, tick:window->preferences->general-> Startup and Shutdown->refresh workspace on startup;
b) window->preferences->general- >workspace: Tick options: Refresh using native hooks or polling and refresh on access;
My version of Eclipse is: Eclipse SDK 3.7.0