首页 > 技术文章 > Javascript > Eclipse > problems encountered during text search

backuper 2014-11-13 12:17 原文

Reproduce:

Ctrl + H, Select "File Search", will encounter eclipse kinds of bug/error alert: problems encountered during text search

Reason:

It's because Ctrl + H by default will search disk files, and when the disk files get un-sync with eclipse's project/workspace context, then unexpected error accours.

Manually refresh, using F5 refresh for the workspace will temperary resolve this issue(when you doing Ctrl + H search), but Mac always will generatate hidden un-sync files.

Solution:

Ctrl+ H, Select "File Search", indicate the "file name pattern", for example *.js, *.xml or *.css.  And then select the scope "Workspace".

Then next time it will automatically use this setting.  It works for Mac OS X Yosemite.

推荐阅读