java.lang.IllegalStateException: Facet should be available
at com.intellij.workspaceModel.ide.impl.legacyBridge.facet.FacetEntityChangeListener.processChangeEvents(FacetEntityChangeListener.kt:157)
at com.intellij.workspaceModel.ide.impl.legacyBridge.facet.FacetEntityChangeListener.access$processChangeEvents(FacetEntityChangeListener.kt:38)
at com.intellij.workspaceModel.ide.impl.legacyBridge.facet.FacetEntityChangeListener$WorkspaceModelListener.changed(FacetEntityChangeListener.kt:82)
at com.intellij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:831)
at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:775)
at com.intellij.util.messages.impl.MessageBusImplKt.executeOrAddToQueue(MessageBusImpl.kt:596)
at com.intellij.util.messages.impl.MessagePublisher.publish$intellij_platform_core(MessageBusImpl.kt:567)
at com.intellij.util.messages.impl.MessagePublisher.invoke(MessageBusImpl.kt:544)
at jdk.proxy2/jdk.proxy2.$Proxy43.changed(Unknown Source)
at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl.onChanged$lambda$1$0(WorkspaceModelImpl.kt:512)
at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl.logErrorOnEventHandling(WorkspaceModelImpl.kt:552)
at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl.onChanged(WorkspaceModelImpl.kt:511)
at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl.access$onChanged(WorkspaceModelImpl.kt:62)
at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl$replaceProjectModel$1$2.invoke(WorkspaceModelImpl.kt:455)
at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl$replaceProjectModel$1$2.invoke(WorkspaceModelImpl.kt:455)
at com.intellij.platform.workspace.storage.impl.VersionedEntityStorageImpl.replace(VersionedEntityStorageImpl.kt:266)
at com.intellij.workspaceModel.ide.impl.WorkspaceModelImpl.replaceProjectModel(WorkspaceModelImpl.kt:455)
at com.intellij.workspaceModel.ide.impl.jps.serialization.JpsProjectModelSynchronizer.applyLoadedEntities$applyLoadedChanges(JpsProjectModelSynchronizer.kt:245)
at com.intellij.workspaceModel.ide.impl.jps.serialization.JpsProjectModelSynchronizer.applyLoadedEntities$applyChangesWithRetry$lambda$1(JpsProjectModelSynchronizer.kt:270)
at com.intellij.openapi.application.rw.PlatformReadWriteActionSupport$runWriteAction$2$1.invokeSuspend$lambda$0(PlatformReadWriteActionSupport.kt:199)
at com.intellij.platform.locking.impl.NestedLocksThreadingSupport$proceedWithSuspendWriteLockAcquisitionFromWriteIntent$2.invokeSuspend(NestedLocksThreadingSupport.kt:1037)
at com.intellij.platform.locking.impl.NestedLocksThreadingSupport$proceedWithSuspendWriteLockAcquisitionFromWriteIntent$2.invoke(NestedLocksThreadingSupport.kt)
at com.intellij.platform.locking.impl.NestedLocksThreadingSupport$proceedWithSuspendWriteLockAcquisitionFromWriteIntent$2.invoke(NestedLocksThreadingSupport.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndspatched(Undispatched.kt:67)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:43)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:165)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
at com.intellij.platform.locking.impl.NestedLocksThreadingSupport.runWriteAction(NestedLocksThreadingSupport.kt:1748)
at com.intellij.openapi.application.rw.PlatformReadWriteActionSupport$runWriteAction$2$1.invokeSuspend(PlatformReadWriteActionSupport.kt:198)
at com.intellij.openapi.application.rw.PlatformReadWriteActionSupport$runWriteAction$2$1.invoke(PlatformReadWriteActionSupport.kt)
at com.intellij.openapi.application.rw.PlatformReadWriteActionSupport$runWriteAction$2$1.invoke(PlatformReadWriteActionSupport.kt)
at com.intellij.openapi.application.rw.PlatformReadWriteActionSupport$executeWriteActionWithPossibleRetry$2.invokeSuspend(PlatformReadWriteActionSupport.kt:226)
at com.intellij.openapi.application.rw.PlatformReadWriteActionSupport$executeWriteActionWithPossibleRetry$2.invoke(PlatformReadWriteActionSupport.kt)
at com.intellij.openapi.application.rw.PlatformReadWriteActionSupport$executeWriteActionWithPossibleRetry$2.invoke(PlatformReadWriteActionSupport.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndspatched(Undispatched.kt:67)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:43)
at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScope.kt:286)
at com.intellij.openapi.application.rw.PlatformReadWriteActionSupport.executeWriteActionWithPossibleRetry(PlatformReadWriteActionSupport.kt:222)
at com.intellij.openapi.application.rw.PlatformReadWriteActionSupport.access$executeWriteActionWithPossibleRetry(PlatformReadWriteActionSupport.kt:45)
at com.intellij.openapi.application.rw.PlatformReadWriteActionSupport$runWriteAction$2.invokeSuspend(PlatformReadWriteActionSupport.kt:197)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:34)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:124)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:610)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:1188)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:775)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:762)
related: #189 #197
no idea why these crashes only sometimes occur
Exceptions