Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access is allowed from Event Dispatch Thread (EDT) only #1055

Open
deadshot465 opened this issue Dec 6, 2024 · 0 comments
Open

Access is allowed from Event Dispatch Thread (EDT) only #1055

deadshot465 opened this issue Dec 6, 2024 · 0 comments

Comments

@deadshot465
Copy link

When trying to open a Rebar3 project from existing sources, I encountered the following error after clicking Create Project:

com.intellij.openapi.diagnostic.RuntimeExceptionWithAttachments: Access is allowed from Event Dispatch Thread (EDT) only; If you access or modify model on EDT consider wrapping your code in WriteIntentReadAction  or ReadAction; see https://jb.gg/ij-platform-threading for details
Current thread: Thread[#22,DefaultDispatcher-worker-5,5,main] 1877428179 (EventQueue.isDispatchThread()=false)
SystemEventQueueThread: Thread[#53,AWT-EventQueue-0,6,main] 908641337
	at com.intellij.util.concurrency.ThreadingAssertions.createThreadAccessException(ThreadingAssertions.java:218)
	at com.intellij.util.concurrency.ThreadingAssertions.throwThreadAccessException(ThreadingAssertions.java:209)
	at com.intellij.util.concurrency.ThreadingAssertions.assertEventDispatchThread(ThreadingAssertions.java:78)
	at com.intellij.openapi.ui.DialogWrapper.<init>(DialogWrapper.java:238)
	at com.intellij.ui.messages.AlertDialog.<init>(AlertMessagesManager.kt:103)
	at com.intellij.ui.messages.AlertMessagesManager.showMessageDialog(AlertMessagesManager.kt:67)
	at com.intellij.ui.messages.MessagesServiceImpl.showMessageDialog(MessagesServiceImpl.java:54)
	at com.jetbrains.rdserver.ui.BackendMessagesService.showMessageDialog(BackendMessagesService.kt:33)
	at com.intellij.openapi.ui.messages.MessagesService.showMessageDialog$default(MessagesService.kt:36)
	at com.intellij.openapi.ui.MessageDialogBuilder$YesNoCancel.show(MessageDialogBuilder.kt:141)
	at com.intellij.openapi.ui.MessageDialogBuilder$YesNoCancel.guessWindowAndAsk(MessageDialogBuilder.kt:133)
	at com.intellij.openapi.ui.Messages.showYesNoCancelDialog(Messages.java:771)
	at org.intellij.erlang.rebar.importWizard.RebarProjectImportBuilder.validate(RebarProjectImportBuilder.java:191)
	at com.intellij.ide.impl.NewProjectUtilKt.createProjectFromWizardImpl(NewProjectUtil.kt:219)
	at com.intellij.ide.impl.NewProjectUtilKt$createProjectFromWizardImpl$1.invokeSuspend(NewProjectUtil.kt)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.UndispatchedCoroutine.afterResume(CoroutineContext.kt:277)
	at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:99)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)

It doesn't happen with 2024.2.5, but 2024.2.5 also seems to have problem detecting SDKs even if I set the path already.
Is this a known bug?

  • Rebar3: rebar 3.24.0 on Erlang/OTP 27 Erts 15.1.2
  • IntelliJ IDEA Ultimate: 2024.3 (Build #IU-243.21565.193, built on November 13, 2014)
  • Erlang Plugin: 0.11.1243
  • OS: macOS Sequoia 15.1.1 on Apple M3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant