解决eclipse: Resource is out of sync with the file system 报错问题

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;

 

原文见:http://supershll.blog.163.com/blog/static/37070436201310129945358/

解决eclipse: Resource is out of sync with the file system 报错问题,古老的榕树,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。