PyCharm hangs on #39;scanning files to index#39; background task(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 挂起“扫描文件以索引"后台任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:PyCharm 挂起“扫描文件以索引"后台任务
- ";find_element_by_name(';name';)";和&QOOT;FIND_ELEMENT(BY NAME,';NAME';)";之间有什么区别? 2022-01-01
- YouTube API v3 返回截断的观看记录 2022-01-01
- 我如何卸载 PyTorch? 2022-01-01
- CTR 中的 AES 如何用于 Python 和 PyCrypto? 2022-01-01
- 检查具有纬度和经度的地理点是否在 shapefile 中 2022-01-01
- 如何使用PYSPARK从Spark获得批次行 2022-01-01
- 我如何透明地重定向一个Python导入? 2022-01-01
- 使用公司代理使Python3.x Slack(松弛客户端) 2022-01-01
- 使用 Cython 将 Python 链接到共享库 2022-01-01
- 计算测试数量的Python单元测试 2022-01-01
