Author: reille
This blog website: http://blog.csdn.net/reille/, to download original blogsArticleIndicate the source.
Summary of this article: solve the problem of resource is out of sync with the file system in eclipse.
Eclipse version: Eclipse SDK 3.7.0
-------------------------------------------------------------------
When searching in eclipse, an error dialog box is displayed after searching. The error excerpt is as follows:
Resource is out of sync with the file system ......
Analysis:
Sometimes, because of time constraints, I don't care about it. Today I met it again, but it was really uncomfortable. So I thought of a solution to this problem!
This problem occurs because files in eclipse are not synchronized. In eclipse, project files are automatically scanned and added by eclipse. If files in the project directory are modified externally but the automatic refresh function is disabled, the files are not synchronized, in this case, the resource is out of sync with the file system problem occurs during the search (this may be true for other functions ). In addition, files in the Eclipse project that are not modified externally may also cause this problem.
Solution:
There are two solutions:
1) manually refresh. In the Eclipse project directory, right-click Refresh (or press F5 ).
2) Configure eclipse options:
A) When eclipse is started, refresh the workspace. Select WINDOW> preferences> General> startup and shutdown> refresh workspace on startup;
B) window-> preferences-> General-> Workspace: Select refresh using native hooks or polling and refresh on access;
My eclipse version is: Eclipse SDK 3.7.0