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

GitHub | joswarmer | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Refactoring (extract method) raises exception inside shape definitions

    GitHub | 6 months ago | joswarmer
    jetbrains.mps.smodel.IllegalModelAccessError: You can read model only inside read actions

    Root Cause Analysis

    1. jetbrains.mps.smodel.IllegalModelAccessError

      You can read model only inside read actions

      at jetbrains.mps.smodel.WorkbenchModelAccess.checkReadAccess()
    2. JetBrains mps
      ModelAccessBase.checkReadAccess
      1. jetbrains.mps.smodel.WorkbenchModelAccess.checkReadAccess(WorkbenchModelAccess.java:483)
      2. jetbrains.mps.smodel.ModelAccessBase.checkReadAccess(ModelAccessBase.java:38)
      2 frames
    3. jetbrains.mps.extapi
      SModuleBase.assertCanRead
      1. jetbrains.mps.extapi.module.SModuleBase.assertCanRead(SModuleBase.java:245)
      1 frame
    4. JetBrains mps
      VisibilityUtil.isVisible
      1. jetbrains.mps.project.AbstractModule.getScope(AbstractModule.java:672)
      2. jetbrains.mps.project.dependency.VisibilityUtil.isVisible(VisibilityUtil.java:32)
      2 frames