Describe the bug (*)
A clear and concise description of what the bug is.
java.lang.IllegalStateException: 'runBlockingCancellable' is forbidden in the Write Action because it may start a long-running computation. This can cause UI freezes.
Consider running this 'runBlockingCancellable' under a read action outside your Write Action'
at com.intellij.openapi.progress.CoroutinesKt.assertBackgroundThreadAndNoWriteAction(coroutines.kt:606)
at com.intellij.openapi.progress.CoroutinesKt.runBlockingCancellable(coroutines.kt:150)
at com.intellij.openapi.progress.CoroutinesKt.runBlockingMaybeCancellable(coroutines.kt:214)
at com.intellij.platform.eel.provider.EelProviderUtil.toEelApiBlocking(EelProvider.kt:195)
at com.intellij.openapi.vfs.impl.local.LocalFileSystemEelUtil.readWholeFileIfNotTooLargeWithEel(util.kt:81)
at com.intellij.openapi.vfs.impl.local.LocalFileSystemBase.readIfNotTooLarge(LocalFileSystemBase.java:447)
at com.intellij.openapi.vfs.impl.local.LocalFileSystemImpl.readContent(LocalFileSystemImpl.java:484)
at com.intellij.openapi.vfs.impl.local.LocalFileSystemImpl.lambda$new$1(LocalFileSystemImpl.java:79)
at com.intellij.openapi.vfs.DiskQueryRelay.lambda$new$0(DiskQueryRelay.java:56)
at com.intellij.openapi.vfs.DiskQueryRelay.accessDiskWithCheckCanceled(DiskQueryRelay.java:71)
at com.intellij.openapi.vfs.impl.local.LocalFileSystemImpl.contentsToByteArray(LocalFileSystemImpl.java:378)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.contentsToByteArray(PersistentFSImpl.java:986)
at com.intellij.openapi.vfs.newvfs.impl.VirtualFileImpl.contentsToByteArray(VirtualFileImpl.java:136)
at com.intellij.openapi.vfs.newvfs.impl.VirtualFileImpl.contentsToByteArray(VirtualFileImpl.java:125)
at com.intellij.openapi.fileEditor.impl.LoadTextUtil.loadText(LoadTextUtil.java:599)
at com.intellij.openapi.fileEditor.impl.LoadTextUtil.loadText(LoadTextUtil.java:577)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerBase.loadText(FileDocumentManagerBase.java:116)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerBase.getDocument(FileDocumentManagerBase.java:65)
at com.intellij.openapi.fileEditor.FileDocumentManager.getDocument(FileDocumentManager.java:62)
at com.intellij.psi.AbstractFileViewProvider.getDocument(AbstractFileViewProvider.java:182)
at com.intellij.psi.impl.file.PsiDirectoryImpl.add(PsiDirectoryImpl.java:456)
at com.magento.idea.magento2plugin.actions.generation.generator.util.FileFromTemplateGenerator.createFile(FileFromTemplateGenerator.java:115)
at com.magento.idea.magento2plugin.actions.generation.generator.util.FileFromTemplateGenerator.lambda$generate$0(FileFromTemplateGenerator.java:64)
at com.intellij.openapi.application.impl.AppImplKt$runnableUnitFunction$1.invoke(appImpl.kt:124)
at com.intellij.openapi.application.impl.AppImplKt$runnableUnitFunction$1.invoke(appImpl.kt:124)
at com.intellij.platform.locking.impl.NestedLocksThreadingSupport.runWriteActionBlocking(NestedLocksThreadingSupport.kt:997)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1161)
at com.magento.idea.magento2plugin.actions.generation.generator.util.FileFromTemplateGenerator.lambda$generate$1(FileFromTemplateGenerator.java:73)
at com.intellij.openapi.command.impl.CoreCommandProcessor.lambda$executeCommand$1(CoreCommandProcessor.java:143)
at com.intellij.openapi.command.impl.CoreCommandProcessor.runCommandTask(CoreCommandProcessor.java:409)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:158)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:81)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:69)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:47)
at com.magento.idea.magento2plugin.actions.generation.generator.util.FileFromTemplateGenerator.generate(FileFromTemplateGenerator.java:61)
at com.magento.idea.magento2plugin.actions.generation.generator.util.FindOrCreateDiXml.execute(FindOrCreateDiXml.java:61)
at com.magento.idea.magento2plugin.actions.generation.generator.PluginDiXmlGenerator.generate(PluginDiXmlGenerator.java:65)
at com.magento.idea.magento2plugin.actions.generation.dialog.CreateAPluginDialog.onWriteActionOK(CreateAPluginDialog.java:180)
at com.intellij.openapi.application.WriteAction.lambda$run$3(WriteAction.java:70)
at com.intellij.openapi.application.impl.AppImplKt$rethrowCheckedExceptions$2.invoke(appImpl.kt:126)
at com.intellij.platform.locking.impl.NestedLocksThreadingSupport.runWriteActionBlocking(NestedLocksThreadingSupport.kt:997)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1183)
at com.intellij.openapi.application.WriteAction.run(WriteAction.java:69)
at com.magento.idea.magento2plugin.actions.generation.dialog.AbstractDialog.executeOnOk(AbstractDialog.java:119)
at com.magento.idea.magento2plugin.actions.generation.dialog.AbstractDialog.onOK(AbstractDialog.java:134)
at com.magento.idea.magento2plugin.actions.generation.dialog.AbstractDialog.doOKAction(AbstractDialog.java:144)
at com.intellij.openapi.ui.DialogWrapper$OkAction.doAction(DialogWrapper.java:2126)
at com.intellij.openapi.ui.DialogWrapper$DialogWrapperAction.actionPerformed(DialogWrapper.java:2077)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2314)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:407)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279)
at java.desktop/java.awt.Component.processMouseEvent(Component.java:6631)
at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3400)
at java.desktop/java.awt.Component.processEvent(Component.java:6396)
at java.desktop/java.awt.Container.processEvent(Container.java:2260)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5008)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2318)
at java.de
To Reproduce (*)
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior (*)
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Please complete the following information: (*)
- OS: Windows 11.0
- PhpStorm/Intellij version: 2026.1.1
- Plugin Version: 2026.2.0
Additional context
Add any other context about the problem here.
Describe the bug (*)
A clear and concise description of what the bug is.
To Reproduce (*)
Steps to reproduce the behavior:
Expected behavior (*)
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Please complete the following information: (*)
Additional context
Add any other context about the problem here.