Intellij find in path always shows no occurrences

Whenever I use Intellij to search in the last few days, I get no results. I do not know what I changed to create this script or what broke.

even if I search within the scope and include only one folder with one file, the search tool still cannot find anything.

For example, I am looking for β€œstatus” in the whole project. [! [enter image description here] [1]] [1]. It should return 1000 results. If I restrict * .java files and search the "Directory" using a directory that contains only one Java file with "status" entries, intellij still cannot find it.

If I do a local search ( Ctrl+ f), I can find anything I want in the current open file.

Has anyone encountered this problem before?

thanks

+6
source share
3 answers

It seems I need to go to file-> Disable cache and restart. Maybe this will help someone with the same problem!

+21
source

As cianBuckley replied, sometimes this is due to corrupt caches; File -> Invalidate Caches / Restartwill solve it.

This is not so for me. My search results were empty because the option Recursivelywas disabled:

Recursive option

+1
source

, , , .

.

  1. Ctrl + Shift + f .

  2. , Top-Right of Find in Path

Find in path with File Mask checked

enter image description here

0
source

Source: https://habr.com/ru/post/1607606/


All Articles