在eclipse中使用搜索功能,发生错误:eclipse
"File Search" has encounter a problemspa
仔细看了一下自动跳出的错误日志(Error Log),发现:日志
.......Resource is out of sync with the file systemorm
或者提示“file not found”之类的信息ip
缘由:eclipse中的文件和workspace中文件不一致。(本身在workspace中用改了某个文件,即在eclipse工程以外的地方修改了源文件可是没有刷新)it
解决方法:cli
方法1 在工程目录右键 Refreshfile
方法2 设置eclipse自动刷新(Window->Preferences->General->Workspace,选中Refresh automatically)搜索
注:推荐使用方法1,方法2设置为自动刷新在工程比较大时代价有点大。方法