PyCharm updates index on specific actions when not necessary
Hello everyone.
I've been noticing that PyCharm re-runs indexing while I make minimal changes to the code. It wouldn't be such an issue if it wasn't happening in some cases every 10-15 seconds.
Lately, I came across a concrete case where I can make it update index with no changes to the code whatsoever, simply by placing the cursor on a specific line. Here's that case:
class OrderView(APIView):
permission_classes = [permissions.IsAuthenticated]
def get(self, request, order_id):
user = request.user
...
As I was working on this view, I've noticed that every time I place my cursor on the `user = request.user` line, PyCharm decides to update the entire index, which loads my CPU for over 20 seconds. I'm pretty sure my CPU (while not being the most advanced by now) is fully capable of handling that kind of load, the fact that PyCharm runs indexing while there was no change in code doesn't feel right.
Please sign in to leave a comment.
Forgot to add, enabling or disabling shared index doesn't make any difference.
Could you please provide the following:
1. Add the following lines to **Help | Diagnostic Tools | Debug Log Settings...**:
```
#com.jetbrains.python.sdk.PythonSdkUpdater$Trigger
```
(keep the # character)
2. Reproduce the issue and provide logs from **Help | Collect Logs and Diagnostic Data**
3. Please also provide a screenshot of the indexing progress bar triggered by moving the cursor.
Since I can't upload logs directly, here's the link to them: [PyCharm logs]
Here is the screenshot:
Could you please disable all custom/downloaded plugins and check if the issue persists?
```
Custom plugins: [Nyan Progress Bar (1.14), Prettify Python (2022.1), CPU Usage Indicator (1.14), Pylint (0.14.0), Docker (223.8617.59), Rainbow CSV (2.0.2), Settings Repository (223.8214.6), Hiberbee Theme (2023.1.30.410), Requirements (2022.4.1), Rainbow Brackets (2023.2.6), .env files support (2022.3), Atom Material Icons (85.1.0)]
```
You can disable custom plugins either manually, or by starting the IDE with `disableNonBundledPlugins` option from the terminal.
[How to start IDE from the terminal](https://intellij-support.jetbrains.com/hc/en-us/articles/360011901879-How-to-start-IDE-from-the-command-line)