首页 > 代码库 > Javascript > Eclipse > problems encountered during text search
Javascript > Eclipse > problems encountered during text search
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.
Javascript > Eclipse > problems encountered during text search