Eclipse "resource is out of sync with the file system"

Mysteriously got the following exception when trying to build an Eclipse project:

"resource is out of sync with the file system"

Although I can't be sure, I think I may have deleted a file outside of Eclipse. To fix the problem, right click the project or edited resource and select "Refresh". Alternatively, you can enable auto-refresh by going to Window->Preferences menu, then in the Preferences dialog box, select General->Workspace. Check the "Refresh automatically" box.

This is for Eclipse 3.1. I don't know about other versions.

2/8/2008 | Comments (1) in Java | Eclipse
Email

Related posts

Comments

Felix mx

Wednesday, October 01, 2008 10:53 PM

After a while trying to correct the error:
Severity and Description Path Resource Location Creation Time Id
Error: Could not set the project description for 'ejbs' because the project description file (.project) is out of sync with the file system. ejbs pom.xml line 1 1218584342734 11367
I deleted the proyect from package explorer without deleting the content and register again and the error is no longer in the problems list.

I don't known why but it correct the problem, I hope this works for you.