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

GitHub | joswarmer | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Refactoring (extract method) raises exception inside shape definitions

    GitHub | 8 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