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

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

问题描述

我的规格:

Intel Core i5-3470 3,2 GHz / 4 GB Ram / 

我正在使用Windows 64位。 PyCharm 4.0.5

I'm using Windows 64 bit. PyCharm 4.0.5

当我启动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

请告知。

PS我没有没有符号链接要排除在我的项目结构中。

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

推荐答案

我的项目中包含一个文件夹,其中包含10万个文件/文件夹。

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

要解决此问题,请将文件夹从PyCharm中的Project结构中排除。

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 4.0.5挂起“扫描文件以建立索引”后台任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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