现在的位置: 首页 > 综合 > 正文

Eclipse-”File Search” has encounter a problem

2013年08月21日 ⁄ 综合 ⁄ 共 365字 ⁄ 字号 评论关闭

在eclipse中使用搜索功能,发生错误:

"File Search" has encounter a problem

仔细看了一下自动跳出的错误日志(Error Log),发现:

.......Resource is out of sync with the file system

或者提示“file not found”之类的信息

原因:eclipse中的文件和workspace中文件不一致。(自己在workspace中用改了某个文件,即在eclipse工程之外的地方修改了源文件但是没有刷新)

解决方法:

方法1 在工程目录右键 Refresh

方法2 设置eclipse自动刷新(Window->Preferences->General->Workspace,选中Refresh automatically)

注:推荐使用方法1,方法2设置为自动刷新在工程比较大时代价有点大。

抱歉!评论已关闭.