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

评论操作 固定链接

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
评论操作 固定链接

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

1
评论操作 固定链接

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
评论操作 固定链接

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.

2
评论操作 固定链接

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
评论操作 固定链接

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

Julian

0
评论操作 固定链接

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
评论操作 固定链接

Mine got to 651GB 😱

0
评论操作 固定链接

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

2
评论操作 固定链接

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

1
评论操作 固定链接

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
评论操作 固定链接

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
评论操作 固定链接
The issue will be fixed in 2022.3.1

I'm sorry for the inconvenience.
7
评论操作 固定链接

300GB+ for me, crashed my laptop :\

0
评论操作 固定链接

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

0
评论操作 固定链接

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

I will downgrade to 2022.2.3

 

0
评论操作 固定链接

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
评论操作 固定链接

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
评论操作 固定链接
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
评论操作 固定链接

Andrey Resler I first had this happen today, on 2022.3.1

0
评论操作 固定链接

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

请先登录再写评论。