eclipse版本:4.3
在eclipse中搜尋時,搜尋完之後有時候會彈出錯誤對話框,錯誤摘錄如下:
resource is out of sync with the file
system......
分析:
這個問題是由于eclipse中檔案不同步引起的。在eclipse中,工程檔案是由eclipse自動掃描添加的,如果在外部修改了工程目錄中的檔案但
又關閉了自動重新整理功能,則會引起檔案不同步,進而搜尋時出現resource is out of sync with the file
system問題(其它功能可能也會如此)。此外,在外部修改eclipse工程中的檔案也有可能引起該問題。
解決方法:
有兩種解決方法:
1)手動重新整理。即在eclipse的工程目錄中,右鍵refresh(或者按下f5)。
2)配置eclipse的選項:
a)eclipse啟動時,重新整理workspace,即勾選:window—>preferences—>general—>startup
and shutdown—>refresh workspace on startup;
b)window—>preferences—>general—>workspace中:勾選選項:refresh using
native hooks or polling和refresh on access;
原文見: