PyCharm not finding files anymore
Answered
When I use search for files using the Search Everywhere feature (pressing double shift), PyCharm won't display files anymore. Only directories are displayed in the search results. Search class names or symbols still works.
I checked the scope of the search and it includes all places and no filters are disabled. The problem arrises on all projects and rebuilding the index is not a solution.
Has anyone encountered this problem and how can I fix this?
Please sign in to leave a comment.
Hi,
Could you share a screenshot showing the problem?
Do you use 3rd party plugins?
Hello Sergey
The only non-bundled plugin is the Vue.js plugin by Jetbrains.
This screenshot is when searching using 'Search everywhere' - Files for a file that is open (also visible under recent files). As you can see the file can be found.
The next screenshot is when search for a file that is not open, but it exists:
Try File | Invalidate Caches / Restart...
Has it helped?
This did fix the issue! Strangely I thought I had already tried this.
Thank you for your help Sergey!
Even in april 2021 this solution still works!
Hello, the 20201.1.1 includes a permanent fix, please feel free to update.
I have never been able to use this feature, (and this includes trying it on 3 different computers). It only provides results within the current open project, but does not provide results in files outside of the current open file. It also does not even display the names of existing PyCharm files that I search for.
I tried the invalidate cache/restart, but that did not help. I opened a ticket for this but thought maybe someone else has been just as frustrated and maybe had another solution that worked?