java.lang.IllegalStateException

Event outside of a command

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web9988

  • via YouTrack by Unknown author, 1 year ago
    Event outside of a command
  • via YouTrack by Unknown author, 1 year ago
    Event outside of a command
  • via YouTrack by Unknown author, 1 year ago
    Event outside of a command
  • Stack trace

    • java.lang.IllegalStateException: Event outside of a command at jetbrains.mps.smodel.ModelsEventsCollector$SModelDelegateListener.listenerInvoked(ModelsEventsCollector.java:254) at jetbrains.mps.smodel.ModelsEventsCollector$SModelDelegateListener.importRemoved(ModelsEventsCollector.java:154) at jetbrains.mps.smodel.SModel.fireImportRemovedEvent(SModel.java:429) at jetbrains.mps.smodel.SModel.deleteModelImport(SModel.java:727) at jetbrains.mps.extapi.model.SModelDescriptorStub.deleteModelImport(SModelDescriptorStub.java:305) at jetbrains.mps.project.OptimizeImportsHelper.removeFromImports(OptimizeImportsHelper.java:379) at jetbrains.mps.project.OptimizeImportsHelper.optimizeModelImports_internal(OptimizeImportsHelper.java:269) at jetbrains.mps.project.OptimizeImportsHelper.optimizeModelsImports_internal(OptimizeImportsHelper.java:214) at jetbrains.mps.project.OptimizeImportsHelper.optimizeLanguageImports_internal(OptimizeImportsHelper.java:177) at jetbrains.mps.project.OptimizeImportsHelper.optimizeLanguageImports(OptimizeImportsHelper.java:100) at jetbrains.mps.ide.actions.OptimizeModuleImports_Action$1$2.run(OptimizeModuleImports_Action.java:92) at jetbrains.mps.smodel.WriteActionDispatcher.run(WriteActionDispatcher.java:39) at jetbrains.mps.smodel.WorkbenchModelAccess$3.run(WorkbenchModelAccess.java:136) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:855) at jetbrains.mps.smodel.WorkbenchModelAccess.runWriteAction(WorkbenchModelAccess.java:150) at jetbrains.mps.smodel.ModelAccessBase.runWriteAction(ModelAccessBase.java:63) at jetbrains.mps.ide.actions.OptimizeModuleImports_Action$1.run(OptimizeModuleImports_Action.java:87) at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:635) at com.intellij.openapi.progress.impl.CoreProgressManager$9.run(CoreProgressManager.java:384) at com.intellij.openapi.progress.impl.CoreProgressManager$3.run(CoreProgressManager.java:170) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:494) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:443) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:155) at com.intellij.openapi.application.impl.ApplicationImpl.lambda$null$9(ApplicationImpl.java:555) at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:308) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.