eclipse: Resource is out of sync with the file system

Error: 
eclipse: Resource is out of sync with the file system
解决办法:需要手动刷新一下资源管理器。
在eclipse中,工程目录右键,选择F5(refresh)

或者

设置eclipse自动刷新。
通过Window->Preferences->General->Workspace,选中Refresh automatically

这是文件系统不同步的问题,是因为在eclipse之外对工程中的resource进行修改引起的;但是,有时没有在eclipse之外进行修改,也会报类似的错误。
 

eclipse中的项目无法查看源文件,报错:resource is out of sync with the file system。唯一的问题,在eclipse工程之外的地方修改了源文件但是没有刷新。MyEclipse自带帮助文档:
Don't forget to refresh!
Whenever you use external tools to modify workspace files, you must perform a Refresh from within Eclipse to make the workspace aware of the changes.If you get a resource out of sync error in Eclipse it is a sign that there are resources in Eclipse that have been modified outside of Eclipse.
One solution is to perform a refresh (available from a resource's popup menu) on any resources or projects that where modified outside of Eclipse.
There is also a preference to refresh automatically. 但是设置为自动刷新在工程比较大时代价有点大! Window->Preferences->General->Workspace,选中Refresh automatically。

 

eclipse下有个插件,可以将webproject自动部署到tomcat下,下面这个文件同步插件filesync 请参考http://syc001.iteye.com/blog/1157706

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值