myEclipse全局搜索时报错

 

1、全局搜索时出错。

大家都知道,Eclipse可以用Ctrl+ H 进行全局搜索,但今天搜索时出现了一个问题:

Problem Occurred

‘File Search’ has encountered a problem. Problems encountered during text search.

上图:

点击Details>>

可以看到

Problems encountered during text search.
File '/XXX/file.xxx' has been skipped, 

problem while reading: ('Resource is out of sync with the file system: 'XXX/file.xxx'.').
Resource is out of sync with the file system: 'XXX/file.xxx'.

Resource is out of sync with the file system: 

 

说白了就是由于你在Eclipse之外对project进行了修改

解决办法是,选中Project(项目)  摁F5刷新,或者右键Refresh就行。

 

有些人说,刷新后还是有错,这可能的原因是:

你的workplace有多个项目,你只刷新了当前项目,可以一个一个全部刷新过后就好了。

什么?一个一个刷太慢? 

那可以再刚才你点Details>>的详细信息里看到具体哪个项目的文件被Eclipse之外修改了

找到那个项目或那些项目,Refresh即可。

如果项目不多,直接全选所有的项目,然后F5刷新后再搜索即可

 

posted @ 2017-09-29 16:33  戈博折刀  阅读(998)  评论(0编辑  收藏  举报