Find usages returning no results
I am not able to get PyCharm's "Find Usages" command to return any results for me. I have opened up the Find Usages page and tried different scopes - All Places, Project Files, Project and Libraries, etc. - but it's not able to find anything. Even for functions that I know are used many times. When I go to my project directory and git grep my_func * I get lots of results. I've tried this for many different functions.
I imagine it's related to this second issue. Many times when I try to find usages I get an error that says: "Cannot search for usages. Position to an element to find usages for, and try again." So the time I define it, it says no other cases and the other cases it gives me an error. I invalidated my caches and restarted the program but that didn't help.
请先登录再写评论。
Please upload your renamed idea.log file from Help | Show Log in... after reproducing the problem to https://uploads.services.jetbrains.com/ and let me know the name of that file.
Is there a way to remove all the personal and company information from the file before I do this?
Only if you do it manually (could use some regex). But we can assure you that we guarantee its privacy if you are worried about other users seeing your file.
I'm using the version ULTIMATE 2019.03 and having kind of the same problem. The use of "Find usages" either through alt + F7 or through Edit | Find | Find Usages always returns no results, even if there are some. Can you please help me ?
Make sure the file is not accidentally excluded in the project structure.
If this is not the case, please submit a support ticket: https://intellij-support.jetbrains.com/hc/en-us/?pycharm
Provide the following info:
- [IDE logs](https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files)
- Project sample and steps to reproduce the issue
Could someone share what the solution was? i'm using 2020.1.1 version of Pycharm Professional and I'm having the same problem. Thanks.