Indexing and Code Inspection stuck in loops

Answered

This i've run into 2 issues that may or may not be related.

When I open pycharm the loading indexes never stops. This results in me not having access to the File menu. All other menus work. I've let it sit idle for 30 min or so with no luck in it finishing loading indexes. During this time Inspections are not running. The only way to get it to stop is to pause the process (this reenables access to the File menu), I then Invalidate Caches. The window will close but not the task, I have to go to task manager and end it myself. 

When I restart PyCharm indexes will load but then in the top right corner “Analyzing. . .” will not finish. If I begin a statement such as print( it will mark it as an error before I finish the statement. Once I close the parenthesis it will not eliminate the error as the error has now been fixed. Writing a program now becomes a never ending list of errors that dont exist. 

I know they dont exist bc this occurs with even the simplest of program and when I run anything it still works properly. 

If I enter “Power Save Mode” errors are not marked but of course that means code is not being inspected. 

This is just an endless loop of the two possible errors. I've uploaded logs for both problems, the never ending indexing and the never ending inspection. 

Upload id: 2024_10_24_Lk5kM6RnmCjPFQFFJtEZPi (files: pycharm-logs-20241023-1936463299975490500720926.zip, pycharm-logs-20241023-19395015596679039594335073.zip)

0
2 comments

Hi Ellen Owens,

I see numerous errors like below logs:

2024-10-23 19:37:49,085 [   9464] SEVERE - #c.i.u.i.i.s.VfsAwareMapReduceIndex - C:\Users\Ellen\AppData\Local\JetBrains\PyCharm2024.2\index\hashfragmentindex\.perFileVersion\indexed_versions\indexed_versions: The process cannot access the file because it is being used by another process

followed by 

2024-10-23 19:37:51,182 [  11561]   INFO - #c.i.u.i.FileBasedIndexImpl - Requesting index rebuild for: FrameworkDetectionIndex
com.intellij.util.io.CorruptedException: PersistentEnumerator storage corrupted C:\Users\Ellen\AppData\Local\JetBrains\PyCharm2024.2\index\frameworkdetectionindex\.perFileVersion\indexed_versions\indexed_versions

Is there any other process accessing files in the cache directory, like an antivirus for example? If so, would it help to add all Pycharm related directories to exclusions?

 

0

HI Mikhail Tarabrikov,

Yeah I think that was it. I disabled the av and it works again! Thanks!

0

Please sign in to leave a comment.