romaindalichamp / TerminalTabTailor

Intellij Plugin to rename automatically the tabs
https://plugins.jetbrains.com/plugin/23903-terminal-tab-tailor
Apache License 2.0
8 stars 0 forks source link

Unhandled exception in Dispatchers.Default #23

Open jobace78 opened 6 days ago

jobace78 commented 6 days ago

Hi,

When a terminal is open (usually first time only), IDEA (IntelliJ IDEA 2024.2.3) shows this exception:

Unhandled exception in Dispatchers.Default

com.intellij.openapi.diagnostic.RuntimeExceptionWithAttachments: Access is allowed from Event Dispatch Thread (EDT) only; see https://jb.gg/ij-platform-threading for details
Current thread: Thread[#3751,DefaultDispatcher-worker-19,5,main] 1265183949 (EventQueue.isDispatchThread()=false)
SystemEventQueueThread: Thread[#65,AWT-EventQueue-0,6,main] 1890636488
    at com.intellij.util.concurrency.ThreadingAssertions.createThreadAccessException(ThreadingAssertions.java:177)
    at com.intellij.util.concurrency.ThreadingAssertions.throwThreadAccessException(ThreadingAssertions.java:172)
    at com.intellij.util.concurrency.ThreadingAssertions.assertEventDispatchThread(ThreadingAssertions.java:63)
    at com.intellij.ide.impl.DataManagerImpl.getDataContext(DataManagerImpl.java:287)
    at com.intellij.openapi.wm.impl.content.SingleContentSupplier$Companion.getSupplierFrom(SingleContentSupplier.kt:110)
    at com.intellij.openapi.wm.impl.content.SingleContentSupplier$Companion.getSupplierFrom(SingleContentSupplier.kt:107)
    at com.intellij.openapi.wm.impl.content.SingleContentLayout.getSupplier(SingleContentLayout.kt:85)
    at com.intellij.openapi.wm.impl.content.SingleContentLayout.tryUpdateContentView(SingleContentLayout.kt:102)
    at com.intellij.openapi.wm.impl.content.SingleContentLayout.update(SingleContentLayout.kt:73)
    at com.intellij.openapi.wm.impl.content.ToolWindowContentUi.update(ToolWindowContentUi.java:363)
    at com.intellij.openapi.wm.impl.content.ToolWindowContentUi$1$1.propertyChange(ToolWindowContentUi.java:121)
    at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
    at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
    at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
    at com.intellij.ui.content.impl.ContentImpl.setDisplayName(ContentImpl.java:110)
    at com.terminaltabtailor.manager.TerminalTabNamesManager$Companion.renameNewTab(TerminalTabNamesManager.kt:169)
    at com.terminaltabtailor.manager.TerminalTabNamesManager$Companion.renameNewTab(TerminalTabNamesManager.kt:91)
    at com.terminaltabtailor.manager.TerminalTabNamesManager$Companion$openTabInTerminal$1$1$1$1$1.invokeSuspend(TerminalTabNamesManager.kt:44)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    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)
    Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelled}@6debfa94, Dispatchers.Default]
romaindalichamp commented 2 hours ago

Hi jobace78,

Do you have the latest version of the plugin ?

Thank you for creating the issue,

Romain