dkandalov / limited-wip

IntelliJ plugin to limit your work-in-progress
https://plugins.jetbrains.com/plugin/7655
111 stars 7 forks source link

AlreadyDisposedException: Cannot create com.intellij.openapi.vcs.ProjectLevelVcsManager #43

Open dkandalov opened 3 years ago

dkandalov commented 3 years ago
com.intellij.serviceContainer.AlreadyDisposedException: Cannot create com.intellij.openapi.vcs.ProjectLevelVcsManager because container is already disposed (container=Project(name=coins, containerState=DISPOSE_COMPLETED, componentStore=/Users/dima/IdeaProjects/coins) (disposed))
    at com.intellij.serviceContainer.ContainerUtilKt.throwAlreadyDisposedError(containerUtil.kt:43)
    at com.intellij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:612)
    at com.intellij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:573)
    at com.intellij.openapi.client.ClientAwareComponentManager.getFromSelfOrCurrentSession(ClientAwareComponentManager.kt:37)
    at com.intellij.openapi.client.ClientAwareComponentManager.getService(ClientAwareComponentManager.kt:22)
    at com.intellij.openapi.vcs.ProjectLevelVcsManager.getInstance(ProjectLevelVcsManager.java:37)
    at com.intellij.openapi.vcs.impl.ContentRevisionCache.getOrLoadAsBytes(ContentRevisionCache.java:172)
    at git4idea.GitContentRevision.getContentAsBytes(GitContentRevision.java:66)
    at git4idea.GitContentRevision.getContent(GitContentRevision.java:55)
    at limitedwip.watchdog.components.ChangeSizeWatcherKt.doCalculateChangeSizeInLines(ChangeSizeWatcher.kt:135)
    at limitedwip.watchdog.components.ChangeSizeWatcherKt.calculateChangeSizeInLines(ChangeSizeWatcher.kt:116)
    at limitedwip.watchdog.components.ChangeSizeWatcher$calculateCurrentChangeListSizeInLines$2.run(ChangeSizeWatcher.kt:68)
    at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:265)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
    at java.base/java.lang.Thread.run(Thread.java:829)