jetbrains.mps.smodel.IllegalModelAccessError: You can read model only inside read actions

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by slisson
, 1 year ago
You can read model only inside read actions
via GitHub by joswarmer
, 1 year ago
via YouTrack by Unknown author, 1 year ago
via GitHub by danielratiu
, 1 year ago
You can read model only inside read actions
via GitHub by bkolb
, 1 year ago
You can read model only inside read actions
jetbrains.mps.smodel.IllegalModelAccessError: You can read model only inside read actions
at jetbrains.mps.smodel.WorkbenchModelAccess.checkReadAccess(WorkbenchModelAccess.java:473)
at jetbrains.mps.smodel.ModelAccessBase.checkReadAccess(ModelAccessBase.java:38)
at jetbrains.mps.smodel.MPSModuleRepository.getModules(MPSModuleRepository.java:267)
at com.mbeddr.mpsutil.projectview.runtime.ProjectViewManager.install(ProjectViewManager.java:125)
at com.mbeddr.mpsutil.projectview.runtime.plugin.ProjectViewApplicationPlugin_CustomApplicationPlugin.doInit(ProjectViewApplicationPlugin_CustomApplicationPlugin.java:12)
at jetbrains.mps.plugins.custom.BaseCustomApplicationPlugin.init(BaseCustomApplicationPlugin.java:26)
at com.mbeddr.mpsutil.projectview.runtime.plugin.Runtime_ApplicationPlugin.initCustomParts(Runtime_ApplicationPlugin.java:24)
at jetbrains.mps.plugins.applicationplugins.BaseApplicationPlugin.createCustomParts(BaseApplicationPlugin.java:131)
at jetbrains.mps.plugins.applicationplugins.ApplicationPluginManager.createCustomParts(ApplicationPluginManager.java:112)
at jetbrains.mps.plugins.applicationplugins.ApplicationPluginManager.afterPluginsCreated(ApplicationPluginManager.java:74)
at jetbrains.mps.plugins.BasePluginManager.loadPlugins(BasePluginManager.java:88)
at jetbrains.mps.plugins.PluginLoaderRegistry.loadContributors(PluginLoaderRegistry.java:147)
at jetbrains.mps.plugins.PluginLoaderRegistry.access$700(PluginLoaderRegistry.java:71)
at jetbrains.mps.plugins.PluginLoaderRegistry$UpdatingTask.addContributors(PluginLoaderRegistry.java:329)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.