gregsh / Clojure-Kit

Clojure/ClojureScript plugin for IntelliJ-based IDEs
Other
248 stars 21 forks source link

PyCharm crashed upon update to 2022.3.3 #47

Open ivanpajic opened 1 year ago

ivanpajic commented 1 year ago

Clojure-kit plugin caused PyCharm to crash after updating PyCharm from 2022.2 (PY-222.4459.20) to 2022.3 (PY-223.8836.43):

image

Full stacktrace:

2023-03-15 12:02:15,347 [  10721] SEVERE - #c.i.o.a.i.FlushQueue - Cannot create com.intellij.openapi.roots.ProjectRootManager because container is already disposed (container=Project(name=IntelliWeb, containerState=DISPOSE_COMPLETED, componentStore=C:\workspace\IntelliWeb) (disposed))
com.intellij.serviceContainer.AlreadyDisposedException: Cannot create com.intellij.openapi.roots.ProjectRootManager because container is already disposed (container=Project(name=IntelliWeb, containerState=DISPOSE_COMPLETED, componentStore=C:\workspace\IntelliWeb) (disposed))
    at com.intellij.serviceContainer.ContainerUtilKt.throwAlreadyDisposedError(containerUtil.kt:40)
    at com.intellij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:695)
    at com.intellij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:629)
    at com.intellij.openapi.roots.ProjectRootManager.getInstance(ProjectRootManager.java:31)
    at com.intellij.openapi.roots.ex.ProjectRootManagerEx.getInstanceEx(ProjectRootManagerEx.java:13)
    at org.intellij.clojure.tools.ClojureProjectDeps$reindex$1$1.run(tools-deps.kt:97)
    at com.intellij.openapi.application.WriteAction.lambda$run$1(WriteAction.java:86)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteActionWithClass(ApplicationImpl.java:968)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:994)
    at com.intellij.openapi.application.WriteAction.run(WriteAction.java:85)
    at org.intellij.clojure.tools.ClojureProjectDeps$reindex$1.run(tools-deps.kt:96)
    at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:209)
    at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:21)
    at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:191)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:838)
    at com.intellij.openapi.application.impl.ApplicationImpl$3.run(ApplicationImpl.java:454)
    at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:74)
    at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:114)
    at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:36)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:779)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:730)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:724)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:749)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:909)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:756)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$5(IdeEventQueue.java:437)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:787)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:436)
    at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)
    at com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:615)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:434)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:838)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:480)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
2023-03-15 12:02:15,349 [  10723] SEVERE - #c.i.o.a.i.FlushQueue - PyCharm 2022.3.3  Build #PY-223.8836.43
2023-03-15 12:02:15,349 [  10723] SEVERE - #c.i.o.a.i.FlushQueue - JDK: 17.0.6; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2023-03-15 12:02:15,349 [  10723] SEVERE - #c.i.o.a.i.FlushQueue - OS: Windows 11
2023-03-15 12:02:15,350 [  10724] SEVERE - #c.i.o.a.i.FlushQueue - Plugin to blame: Clojure-Kit version: 2020.3.1

After disabling Clojure-Kit plugin everything works as expected. Original issue: https://youtrack.jetbrains.com/issue/IDEA-315505