PyCharm 挂起“扫描文件以索引"后台任务 [英] PyCharm hangs on 'scanning files to index' background task

查看:64
本文介绍了PyCharm 挂起“扫描文件以索引"后台任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我启动 PyCharm 时,它会启动 扫描文件以索引 后台任务并挂起约 1 小时/永远.它有时会完成并继续更新索引任务.它持续约 3 小时/永远.虽然这些进程正在运行,但很难使用 PyCharm 甚至其他一些程序.PyCharm 从 ~200MB 开始,在这些任务结束时占用 ~1GB 内存.

When I launch PyCharm it starts scanning files to index background task and hangs for ~1 hour/forever. From time to time it finishes and proceeds with updating indices task. It lasts for ~3 hours/forever. While these processes are running it is very hard to use PyCharm and even some other programs. PyCharm starts from ~200MB and took ~1GB of memory at the end of these tasks.

在我的笔记本电脑上,情况更糟.PyCharm 在 30 秒内启动并准备好工作.我正在我的 PC/笔记本电脑上做同样的项目.

On my laptop, which is much worse. PyCharm launches in 30 seconds and ready to work. I'm working on the same project on my PC/Laptop.

我使用的是 Windows 64 位.PyCharm 4.0.5

I'm using Windows 64 bit. PyCharm 4.0.5

附言我的项目结构中没有要排除的符号链接.

P.S. I don't have symlinks to exclude in my Project Structure.

推荐答案

我的项目包含一个文件夹,里面有大约 100k 个文件/文件夹.这使得索引速度太慢了.

My project contained a folder that had like 100k files/folders inside. This was making indexing way too slow.

要解决此问题,请从 PyCharm 的项目结构中排除该文件夹.

To fix this, exclude the folder from Project structure in PyCharm.

File - Settings - Project: yourprojectname - Project Structure - Right click on folder and press "Excluded"

这篇关于PyCharm 挂起“扫描文件以索引"后台任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆