PyCharm packages_v2.json very large

There is a huge file /Users/julian/Library/Caches/JetBrains/PyCharm2022.3/python_packages/packages_v2.json

This is nearly 100GB, which is a fifth of my hard drive. Is it possible to reduce this file, or delete it and let it rebuild?

Thanks.

Julian

21 comments
Comment actions Permalink

Found the answer here . Invalidating the caches reduced the size of the file from 100GB to 6.8MB! It would be nice if PyCharm kept an eye on this file and prompted to reload it when it got too big.

Julian

2
Comment actions Permalink

I believe there is an issue with the IDE. My packages_v2.json file just jumped to a size of 988GB

1
Comment actions Permalink

The same problem! My `packages_v2.json` - 106GB

>cd ~/Library/Caches/JetBrains/PyCharm2022.3/python_packages && du -sk ./* | sort -nr
111234272    ./packages_v2.json
7828    ./pypi-cache.json
1
Comment actions Permalink

I also got the same problem, my mac ran out of space and found that this file was the culprit

```
~/Library/Caches/JetBrains/PyCharm2022.3/python_packages ❯ du -sh *
637G    packages_v2.json
7.6M    pypi-cache.json

```

 

Doing the "invalidate caches & restart" didn't do anything.

3
Comment actions Permalink

i think the main thread is here: https://youtrack.jetbrains.com/issue/PY-57156/Gigantic-file-.cache-JetBrains-CLion2022.3-pythonpackages-packagesv2.json

I was able to fix the issue by doing the "Download pre-built shared indexes" step, and immediately after, all 305GB taken up by packages_v2.json was freed.

0
Comment actions Permalink

When I did "invalidate caches & restart", I then needed to empty the bin before I got my space back.

Julian

0
Comment actions Permalink

I am seeing this as well. My packages_v2.json is 300GB. I can't open PyCharm to clear the cache via the menu. I have 100GB left on my drive and it is not enough. I will look at the other solutions. Thanks for the help

0
Comment actions Permalink

Mine got to 651GB 😱

0
Comment actions Permalink

Mine got to 718 GB.That's too bad.

2
Comment actions Permalink

I just deleted mine in the end. Nothing else seemed make it smaller

1
Comment actions Permalink

Guys, any solution to this so far? After deleting the file (invalidating caches does nothing to this file) and restarting PyCharm, the file is recreated again. So actually I'm unable to use PyCharm now (it eats all the disk remaining space so then everything starts crashing...)

 

if there's any difference: I don't have a community version, I'm using professional version

1
Comment actions Permalink

460 GB for me, my only option was to delete it... I am not sure how is it generated and how to limit its growth, so I'll keep an eye on it.

2
Comment actions Permalink
The issue will be fixed in 2022.3.1

I'm sorry for the inconvenience.
7
Comment actions Permalink

300GB+ for me, crashed my laptop :\

0
Comment actions Permalink

This keeps happening on my system as well. Any chance we can get a hotfix sooner rather than later?

0
Comment actions Permalink

Filesize 1,56 TB of total 2 TB. Mac no longer properly usable.

I will downgrade to 2022.2.3

 

0
Comment actions Permalink

I uninstalled pycharm, deleted all the .cache files(Linux Ubuntu 22.04) from JetBrains, removed them from my trash bin and installed version 2022.2.4. until they fix the issue. 

It works fine now.

0
Comment actions Permalink

Happened here as well with a 136 GB file in 2022.3 on Win10 . Invalidating caches and restarting didn't work - it just made the problem worse (then PyCharm started hitting pagefile and locked up my system). File seems to just contain repeating package names. 

This is a huge bug!

For me, it happened to me after updating my plugins and restarting the IDE.

0
Comment actions Permalink
Just to remind everyone the bug will be fixed in 2022.3.1

You can download 2022.3.1 Release Candidate right now from https://youtrack.jetbrains.com/articles/PY-A-23004355
0
Comment actions Permalink

Andrey Resler I first had this happen today, on 2022.3.1

0
Comment actions Permalink

Vilim Lendvaj could you please create a separate issue in https://youtrack.jetbrains.com/issues/PY and attach your idea.log file from Help | Show Log in...?
We'll investigate asap.

0

Please sign in to leave a comment.