KronicDeth / intellij-elixir

Elixir plugin for JetBrain's IntelliJ Platform (including Rubymine)
Other
1.83k stars 153 forks source link

Read access is allowed from inside read-action (or EDT) only (see com.intellij.openapi.application.Application.runReadAction()), Current thread: Thread[ApplicationImpl pooled thread 40,4,main] 67271379 (EventQueue.isDispatchThread()=false), SystemEventQueueThread: Thread[AWT-EventQueue-0,6,main] 837990138 at com.intellij.openapi.application.impl.ApplicationImpl.assertReadAccessAllowed(ApplicationImpl.java:1004) #3246

Closed alexnogueirasilva closed 1 year ago

alexnogueirasilva commented 1 year ago

System

Plugin Version: 15.0.1 Application: PhpStorm (2023.1.2) Operating System: Linux (6.2.6-76060206-generic)

Event

Exception

Stacktrace

java.lang.Throwable: Read access is allowed from inside read-action (or EDT) only (see com.intellij.openapi.application.Application.runReadAction()) ``` java.lang.Throwable: Read access is allowed from inside read-action (or EDT) only (see com.intellij.openapi.application.Application.runReadAction()) Current thread: Thread[ApplicationImpl pooled thread 40,4,main] 67271379 (EventQueue.isDispatchThread()=false) SystemEventQueueThread: Thread[AWT-EventQueue-0,6,main] 837990138 at com.intellij.openapi.diagnostic.Logger.error(Logger.java:202) at com.intellij.openapi.application.impl.ApplicationImpl.assertReadAccessAllowed(ApplicationImpl.java:1004) at com.intellij.workspaceModel.core.fileIndex.impl.WorkspaceFileIndexDataImpl.ensureIsUpToDate(WorkspaceFileIndexDataImpl.kt:127) at com.intellij.workspaceModel.core.fileIndex.impl.WorkspaceFileIndexDataImpl.getFileInfo(WorkspaceFileIndexDataImpl.kt:70) at com.intellij.workspaceModel.core.fileIndex.impl.WorkspaceFileIndexImpl.getFileInfo(WorkspaceFileIndexImpl.kt:220) at com.intellij.workspaceModel.core.fileIndex.impl.WorkspaceFileIndexImpl.findFileSetWithCustomData(WorkspaceFileIndexImpl.kt:205) at com.intellij.openapi.roots.impl.ProjectFileIndexImpl.getContentRootForFile(ProjectFileIndexImpl.java:219) at com.intellij.openapi.roots.impl.ProjectFileIndexImpl.getContentRootForFile(ProjectFileIndexImpl.java:213) at org.elixir_lang.formatter.MixFormatExternalFormatProcessor$Companion.workingDirectory(MixFormatExternalFormatProcessor.kt:77) at org.elixir_lang.formatter.MixFormatExternalFormatProcessor$Companion.access$workingDirectory(MixFormatExternalFormatProcessor.kt:70) at org.elixir_lang.formatter.MixFormatExternalFormatProcessor.format$lambda$7$lambda$6(MixFormatExternalFormatProcessor.kt:45) at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:252) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699) ```
my4ng commented 1 year ago

Can confirm the same error on Intellij IDEA Ultimate 2023.1.2, Pop!_OS 22.04 LTS (Linux 6.2.6) when attempting to reformat code with (Ctrl+Alt+L).

KronicDeth commented 1 year ago

Duplicate of https://github.com/KronicDeth/intellij-elixir/issues/3189