PyCharm indexing goes into infinite loop pycharm 不同的indexing

本文解决了一个PyCharm用户遇到的问题:当PyCharm在一个包含符号链接的目录中进行索引时,陷入了无限循环。文章提供了具体的步骤来排除这个符号链接并阻止PyCharm对其进行索引。

https://stackoverflow.com/questions/24955896/pycharm-indexing-goes-into-infinite-loop

 

5
1

I opened up a directory with PyCharm, and after it was done indexing, I still didn't get code completion suggestions, so I invalidated the cache. When I reopened PyCharm, I noticed that it was indexing

/usr/local/google_appengine/google_appengine/google_appengine/...

so it turns out there's a symlink or alias (not sure which) to itself. So I removed it, invalidated the cache and restarted PyCharm. When PyCharm started, the same problem was back, so it looks like PyCharm put the symlink back. How do I tell pycnarm to use the file system as its source of information?

asked Jul 25 '14 at 12:30
5e4575fdaacc879dc2199490417d170a?s=32&d=identicon&r=PGuploading.4e448015.gif转存失败重新上传取消
bigblind
7,3851010 gold badges5050 silver badges8989 bronze badges

1 Answer

7
 

Open up

Preferences > Project Settings > Project Structure

Select the symlink and exlcude it from the project. This will prevent Pycharm from including and indexing the folder.

answered Aug 14 '14 at 13:54
k4yPU.jpg?s=32&g=1uploading.4e448015.gif转存失败重新上传取消
cbrendanprice
36022 silver badges88 bronze badges
Got a question that you can’t ask on public Stack Overflow?  Learn more about sharing private information with Stack Overflow for Teams.
 

Your Answer

 

PyCharm中的indexing是指对项目进行索引,以提供代码提示和快速导航功能。索引的时间长度取决于项目的规模和项目中包含的文件数量。 如果您在打开PyCharm后发现indexing时间很长,可能有以下几个原因和解决方法: 1. 内存不足:PyCharm IDE默认设置的运行内存可能不够大,可以尝试增加可用的堆内存。在PyCharm中,点击"File"菜单,选择"Settings",在打开的窗口中选择"Appearance & Behavior",再选择"System Settings",在右侧找到"Memory Settings",增加可用的堆内存大小。 2. 导入大型数据集:如果导入数据集时,indexing进度条几乎没有动,可能是由于多次启停导入导致中途停滞。您可以尝试点击PyCharm页面左上角的"File",选择"Invalidate and Restart",然后点击"Invalidate and Restart"来清除之前导入的信息并重新导入数据。这个过程可能需要一段时间,但至少可以看到indexing进度条在缓慢运行。 3. 数据放在工程外面:如果以上方法都无法解决问题,建议将数据放在工程外部,并在代码文件中修改调用地址。这样可以减少索引的文件数量,从而提高indexing的速度。 总之,PyCharmindexing时间很长可能是由于项目规模大或包含大量文件。您可以根据具体情况尝试上述方法来优化indexing的速度。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [Pycharm启动后总 indices... indexing的问题](https://blog.youkuaiyun.com/m0_54256988/article/details/130390018)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* [解决pycharm启动后总是不停的updating indices...indexing的问题](https://download.youkuaiyun.com/download/weixin_38665822/12857578)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值