最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】PyCharm一直在重新indexing建立索引

PyCharm crifan 16895浏览 0评论

PyCharm,突然无缘无故的,一直在indexing

导致系统卡死

最底部的 一直在  indexing 和 updating indexes:

对应顶部,点击 👀出现:

而且indexing

完毕后,Mac的Dock的图标就跳出来,提示完成了:

但是另外的一个PyCharm项目就没有问题。

就是这个Flask的pipenv的虚拟环境的Python项目,有问题。

以为是 .ignore插件 不兼容导致的,所以去点击禁止了此插件,但问题依旧。

删除了.idea后,重新创建项目,问题依旧。

有时候 就突然好了。

但是过了会,又一直在indexing了。。。

pycharm always indexing

Constant indexing… something… over and over? – IDEs Support (IntelliJ Platform) | JetBrains

试试:

FILE | invalidate caches and restart seems to have fixed it. Easy and works for me!

Endless re-indexing – IDEs Support (IntelliJ Platform) | JetBrains

stop Indexing please!!!!!!! – IDEs Support (IntelliJ Platform) | JetBrains

重启PyCharm后,弹出Plugin Error

<code>Plugin 'com.vladsch.idea.multimarkdown' failed to initialize and will be disabled.  Please restart PyCharm.

java.util.ConcurrentModificationException
    at java.util.HashMap$HashIterator.nextNode(HashMap.java:1437)
    at java.util.HashMap$KeyIterator.next(HashMap.java:1461)
    at com.vladsch.idea.multimarkdown.highlighter.MultiMarkdownHighlighterColors.migrateAttributes(MultiMarkdownHighlighterColors.java:215)
    at com.vladsch.idea.multimarkdown.MultiMarkdownPlugin.initComponent(MultiMarkdownPlugin.kt:136)
    at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:497)
    at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:119)
    at com.intellij.openapi.application.impl.ApplicationImpl.a(ApplicationImpl.java:447)
    at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:157)
    at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:543)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:488)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:94)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:144)
    at com.intellij.openapi.application.impl.ApplicationImpl.createComponents(ApplicationImpl.java:454)
    at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:103)
    at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:406)
    at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:392)
    at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:203)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.intellij.idea.MainImpl$1$1.a(MainImpl.java:65)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
    at java.awt.EventQueue.access$500(EventQueue.java:98)
    at java.awt.EventQueue$3.run(EventQueue.java:715)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:346)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

</code>

然后启动失败。

再去试试

终于启动了,然后开始重新,至少可以看得到进度的index了:

但是占用CPU太高了:

等了一段时间,indexing完毕后,最后终于正常了:

CPU终于降下来了。

【总结】

此处PyCharm出了bug,一直,时不时的indexing,且永不停止。

办法:

File-》Invalidate Caches/Restart

再重启PyCharm,即可。

转载请注明:在路上 » 【已解决】PyCharm一直在重新indexing建立索引

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
89 queries in 0.199 seconds, using 22.10MB memory