Collecting references when renaming function parameters takes very long.

I use the refactor feature to rename function parameters quite often since it also renames all occurrences in the function itself. Recently, the “collecting references…” and “updating usages…” processes take ages to complete, about a minute each. Makes this feature very frustrating to use. I already tried clearing cashes and restarting. What could I do to fix this?

0
1 comment

I found a solution.

The problem was that I added a folder containing multiple image dataset to my project root for easy access in the project view. Pycharm was probably searching through these folders containing thousands of image files looking for code usages. I fixed the issue by right-clicking this dataset folder and selecting Mark directory as > Excluded

0

Please sign in to leave a comment.