libin6505

 

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刷新后再搜索即可

 

分类:

技术点:

相关文章:

  • 2021-04-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
  • 2022-01-30
猜你喜欢
  • 2021-06-16
  • 2021-11-30
  • 2021-11-30
  • 2021-07-31
  • 2022-01-01
  • 2021-12-09
相关资源
相似解决方案