Skip to content

Unhandled exception: com.intellij.model.SideEffectGuard$SideEffectNotAllowedException: Side effect not allowed: INVOKE_LATER #7839

Closed

Description

@chezsmithy

Before submitting your bug report

Relevant environment info

- OS: MacOS
- Continue version: 1.0.43
- IDE version: IntelliJ CE 2025.2.1
- Model: Sonnet 4
- config:
  

  
  OR link to agent in Continue hub:

Description

Unhandled exception in Dispatchers.Main

java.lang.Throwable: Control-flow exceptions (e.g. this class com.intellij.model.SideEffectGuard$SideEffectNotAllowedException) should never be logged. Instead, these should have been rethrown if caught.
	at com.intellij.openapi.diagnostic.Logger.ensureNotControlFlow(Logger.java:504)
	at com.intellij.idea.IdeaLogger.error(IdeaLogger.java:176)
	at com.intellij.openapi.diagnostic.Logger.error(Logger.java:426)
	at com.intellij.openapi.application.impl.CoroutineExceptionHandlerImpl.handleException(CoroutineExceptionHandlerImpl.kt:28)
	at kotlinx.coroutines.internal.CoroutineExceptionHandlerImpl_commonKt.handleUncaughtCoroutineException(CoroutineExceptionHandlerImpl.common.kt:34)
	at kotlinx.coroutines.CoroutineExceptionHandlerKt.handleCoroutineException(CoroutineExceptionHandler.kt:31)
	at kotlinx.coroutines.StandaloneCoroutine.handleJobException(Builders.common.kt:194)
	at kotlinx.coroutines.JobSupport.finalizeFinishingState(JobSupport.kt:222)
	at kotlinx.coroutines.JobSupport.tryMakeCompletingSlowPath(JobSupport.kt:946)
	at kotlinx.coroutines.JobSupport.tryMakeCompleting(JobSupport.kt:894)
	at kotlinx.coroutines.JobSupport.makeCompletingOnce$kotlinx_coroutines_core(JobSupport.kt:859)
	at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:99)
	at kotlinx.coroutines.intrinsics.CancellableKt.dispatcherFailure(Cancellable.kt:62)
	at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable(Cancellable.kt:75)
	at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:358)
	at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:134)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:52)
	at kotlinx.coroutines.BuildersKt.launch(Unknown Source)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch$default(Builders.common.kt:43)
	at kotlinx.coroutines.BuildersKt.launch$default(Unknown Source)
	at com.github.continuedev.continueintellijextension.listeners.DocumentChangeTracker.handleDocumentChange(DocumentChangeTracker.kt:45)
	at com.github.continuedev.continueintellijextension.listeners.DocumentChangeTracker.documentChanged(DocumentChangeTracker.kt:24)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at com.intellij.util.EventDispatcher.dispatchVoidMethod(EventDispatcher.java:120)
	at com.intellij.util.EventDispatcher.lambda$doCreateMulticaster$1(EventDispatcher.java:85)
	at jdk.proxy2/jdk.proxy2.$Proxy101.documentChanged(Unknown Source)
	at com.intellij.openapi.editor.impl.DocumentImpl.lambda$changedUpdate$6(DocumentImpl.java:962)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeNonCancelableSection$3(CoreProgressManager.java:290)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:705)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$computeInNonCancelableSection$4(CoreProgressManager.java:298)
	at com.intellij.openapi.progress.Cancellation.computeInNonCancelableSection(Cancellation.java:135)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computeInNonCancelableSection(CoreProgressManager.java:298)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeNonCancelableSection(CoreProgressManager.java:289)
	at com.intellij.openapi.editor.impl.DocumentImpl.changedUpdate(DocumentImpl.java:959)
	at com.intellij.openapi.editor.impl.DocumentImpl.updateText(DocumentImpl.java:865)
	at com.intellij.openapi.editor.impl.DocumentImpl.replaceString(DocumentImpl.java:704)
	at com.intellij.openapi.editor.impl.DocumentImpl.replaceString(DocumentImpl.java:635)
	at com.intellij.psi.impl.PsiToDocumentSynchronizer.doCommitTransaction(PsiToDocumentSynchronizer.java:211)
	at com.intellij.psi.impl.PsiToDocumentSynchronizer.lambda$commitTransaction$1(PsiToDocumentSynchronizer.java:187)
	at com.intellij.psi.impl.PsiToDocumentSynchronizer.lambda$doSync$0(PsiToDocumentSynchronizer.java:105)
	at com.intellij.psi.impl.PsiToDocumentSynchronizer.performAtomically(PsiToDocumentSynchronizer.java:123)
	at com.intellij.psi.impl.PsiToDocumentSynchronizer.doSync(PsiToDocumentSynchronizer.java:105)
	at com.intellij.psi.impl.PsiToDocumentSynchronizer.commitTransaction(PsiToDocumentSynchronizer.java:187)
	at com.intellij.pom.core.impl.PomModelImpl.commitTransaction(PomModelImpl.java:193)
	at com.intellij.pom.core.impl.PomModelImpl.lambda$runTransaction$1(PomModelImpl.java:149)
	at com.intellij.psi.impl.DebugUtil.performPsiModification(DebugUtil.java:548)
	at com.intellij.pom.core.impl.PomModelImpl.lambda$runTransaction$2(PomModelImpl.java:101)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeNonCancelableSection$3(CoreProgressManager.java:290)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:756)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:712)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$computeInNonCancelableSection$4(CoreProgressManager.java:298)
	at com.intellij.openapi.progress.Cancellation.computeInNonCancelableSection(Cancellation.java:139)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computeInNonCancelableSection(CoreProgressManager.java:298)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeNonCancelableSection(CoreProgressManager.java:289)
	at com.intellij.pom.core.impl.PomModelImpl.runTransaction(PomModelImpl.java:90)
	at com.intellij.psi.impl.source.tree.ChangeUtil.prepareAndRunChangeAction(ChangeUtil.java:145)
	at com.intellij.psi.impl.source.tree.CompositeElement.addChild(CompositeElement.java:606)
	at com.intellij.psi.impl.source.tree.CompositeElement.addChildren(CompositeElement.java:702)
	at com.intellij.psi.impl.source.codeStyle.CodeEditUtil.addChildren(CodeEditUtil.java:53)
	at com.intellij.psi.impl.source.tree.CompositeElement.addInternal(CompositeElement.java:470)
	at com.intellij.psi.impl.source.PsiFileImpl.addAfter(PsiFileImpl.java:919)
	at org.jetbrains.kotlin.idea.codeInsight.intentions.shared.ConvertBlockCommentToLineCommentIntention.applyTo(ConvertBlockCommentToLineCommentIntention.kt:39)
	at org.jetbrains.kotlin.idea.codeInsight.intentions.shared.ConvertBlockCommentToLineCommentIntention.applyTo(ConvertBlockCommentToLineCommentIntention.kt:13)
	at org.jetbrains.kotlin.idea.codeinsight.api.classic.intentions.SelfTargetingIntention.applyTo(SelfTargetingIntention.kt:59)
	at org.jetbrains.kotlin.idea.codeinsight.api.classic.intentions.SelfTargetingIntention.invoke(SelfTargetingIntention.kt:133)
	at com.intellij.codeInsight.intention.IntentionAction.generatePreview(IntentionAction.java:116)
	at com.intellij.codeInsight.intention.impl.config.IntentionActionWrapper.generatePreview(IntentionActionWrapper.java:89)
	at com.intellij.codeInsight.intention.impl.IntentionActionWithTextCaching$MyIntentionAction.generatePreview(IntentionActionWithTextCaching.java:264)
	at com.intellij.codeInsight.intention.impl.preview.IntentionPreviewComputable.invokePreview$lambda$3$lambda$2$lambda$1(IntentionPreviewComputable.kt:121)
	at com.intellij.model.SideEffectGuard$Companion.computeWithAllowedSideEffectsBlocking(SideEffectGuard.kt:42)
	at com.intellij.model.SideEffectGuard$Companion.computeWithoutSideEffects(SideEffectGuard.kt:27)
	at com.intellij.codeInsight.intention.impl.preview.IntentionPreviewComputable.invokePreview$lambda$3$lambda$2(IntentionPreviewComputable.kt:120)
	at com.intellij.psi.impl.source.PostprocessReformattingAspectImpl.lambda$postponeFormattingInside$2(PostprocessReformattingAspectImpl.java:137)
	at com.intellij.psi.impl.source.PostprocessReformattingAspectImpl.postponeFormattingInside(PostprocessReformattingAspectImpl.java:146)
	at com.intellij.psi.impl.source.PostprocessReformattingAspectImpl.postponeFormattingInside(PostprocessReformattingAspectImpl.java:136)
	at com.intellij.codeInsight.intention.impl.preview.IntentionPreviewComputable.invokePreview$lambda$3(IntentionPreviewComputable.kt:119)
	at com.intellij.codeInsight.intention.preview.IntentionPreviewUtils.previewSession(IntentionPreviewUtils.java:132)
	at com.intellij.codeInsight.intention.impl.preview.IntentionPreviewComputable.invokePreview(IntentionPreviewComputable.kt:118)
	at com.intellij.codeInsight.intention.impl.preview.IntentionPreviewComputable.generatePreview(IntentionPreviewComputable.kt:87)
	at com.intellij.codeInsight.intention.impl.preview.IntentionPreviewComputable.tryCreateDiffContent(IntentionPreviewComputable.kt:63)
	at com.intellij.codeInsight.intention.impl.preview.IntentionPreviewComputable.call(IntentionPreviewComputable.kt:46)
	at com.intellij.codeInsight.intention.impl.IntentionHintComponent$IntentionPopup.lambda$getPreviewHandler$4(IntentionHintComponent.java:869)
	at com.intellij.codeInsight.intention.impl.preview.PreviewHandler.lambda$new$0(PreviewHandler.java:55)
	at com.intellij.codeInsight.intention.impl.preview.IntentionPreviewPopupUpdateProcessor$updatePopup$5.invokeSuspend$lambda$0(IntentionPreviewPopupUpdateProcessor.kt:119)
	at com.intellij.openapi.application.rw.InternalReadAction.insideReadAction(InternalReadAction.kt:111)
	at com.intellij.openapi.application.rw.InternalReadAction.tryReadCancellable$lambda$4(InternalReadAction.kt:101)
	at com.intellij.openapi.application.rw.CancellableReadActionKt.cancellableReadActionInternal$lambda$3$lambda$2$lambda$1(cancellableReadAction.kt:32)
	at com.intellij.platform.locking.impl.NestedLocksThreadingSupport.tryRunReadAction(NestedLocksThreadingSupport.kt:826)
	at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1221)
	at com.intellij.openapi.application.rw.CancellableReadActionKt.cancellableReadActionInternal$lambda$3$lambda$2(cancellableReadAction.kt:30)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtilService.runActionAndCancelBeforeWrite(ProgressIndicatorUtilService.java:73)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runActionAndCancelBeforeWrite(ProgressIndicatorUtils.java:152)
	at com.intellij.openapi.application.rw.CancellableReadActionKt.cancellableReadActionInternal(cancellableReadAction.kt:28)
	at com.intellij.openapi.application.rw.InternalReadAction.tryReadCancellable(InternalReadAction.kt:100)
	at com.intellij.openapi.application.rw.InternalReadAction.tryReadAction(InternalReadAction.kt:86)
	at com.intellij.openapi.application.rw.InternalReadAction.readLoop(InternalReadAction.kt:73)
	at com.intellij.openapi.application.rw.InternalReadAction.access$readLoop(InternalReadAction.kt:15)
	at com.intellij.openapi.application.rw.InternalReadAction$runReadAction$6.invokeSuspend(InternalReadAction.kt:52)
	at com.intellij.openapi.application.rw.InternalReadAction$runReadAction$6.invoke(InternalReadAction.kt)
	at com.intellij.openapi.application.rw.InternalReadAction$runReadAction$6.invoke(InternalReadAction.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:44)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:166)
	at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
	at com.intellij.openapi.application.rw.InternalReadAction.runReadAction(InternalReadAction.kt:50)
	at com.intellij.openapi.application.rw.PlatformReadWriteActionSupport.executeReadAction(PlatformReadWriteActionSupport.kt:39)
	at com.intellij.openapi.application.ReadWriteActionSupport.executeReadAction$default(ReadWriteActionSupport.kt:15)
	at com.intellij.openapi.application.CoroutinesKt.constrainedReadAction(coroutines.kt:66)
	at com.intellij.openapi.application.CoroutinesKt.readAction(coroutines.kt:33)
	at com.intellij.codeInsight.intention.impl.preview.IntentionPreviewPopupUpdateProcessor$updatePopup$5.invokeSuspend(IntentionPreviewPopupUpdateProcessor.kt:118)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:613)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:1189)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:778)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:765)
Caused by: com.intellij.model.SideEffectGuard$SideEffectNotAllowedException: Side effect not allowed: INVOKE_LATER
	at com.intellij.model.SideEffectGuard$Companion.checkSideEffectAllowed(SideEffectGuard.kt:21)
	at com.intellij.model.SideEffectGuard.checkSideEffectAllowed(SideEffectGuard.kt)
	at com.intellij.openapi.application.impl.LaterInvocator.invokeLater(LaterInvocator.java:83)
	at com.intellij.openapi.application.impl.ApplicationImpl.dispatchCoroutineOnEDT(ApplicationImpl.java:427)
	at com.intellij.openapi.application.impl.EdtCoroutineDispatcher.dispatch(EdtCoroutineDispatcher.kt:47)
	at kotlinx.coroutines.internal.DispatchedContinuationKt.safeDispatch(DispatchedContinuation.kt:254)
	at kotlinx.coroutines.internal.DispatchedContinuationKt.resumeCancellableWith(DispatchedContinuation.kt:318)
	at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable(Cancellable.kt:26)
	... 102 more
	Suppressed: com.intellij.util.ExceptionUtilRt$RethrownStack: Rethrown at
		at com.intellij.util.ExceptionUtilRt.addRethrownStackAsSuppressed(ExceptionUtilRt.java:43)
		at com.intellij.util.ExceptionUtilRt.rethrowUnchecked(ExceptionUtilRt.java:17)
		at com.intellij.util.ExceptionUtil.rethrowUnchecked(ExceptionUtil.java:131)
		at com.intellij.util.ExceptionUtil.rethrow(ExceptionUtil.java:146)
		at com.intellij.idea.IdeaLogger.error(IdeaLogger.java:180)
		at com.intellij.openapi.diagnostic.Logger.error(Logger.java:426)
		at com.intellij.openapi.application.impl.CoroutineExceptionHandlerImpl.handleException(CoroutineExceptionHandlerImpl.kt:28)
		at kotlinx.coroutines.internal.CoroutineExceptionHandlerImpl_commonKt.handleUncaughtCoroutineException(CoroutineExceptionHandlerImpl.common.kt:34)
		at kotlinx.coroutines.CoroutineExceptionHandlerKt.handleCoroutineException(CoroutineExceptionHandler.kt:31)
		at kotlinx.coroutines.StandaloneCoroutine.handleJobException(Builders.common.kt:194)
		at kotlinx.coroutines.JobSupport.finalizeFinishingState(JobSupport.kt:222)
		at kotlinx.coroutines.JobSupport.tryMakeCompletingSlowPath(JobSupport.kt:946)
		at kotlinx.coroutines.JobSupport.tryMakeCompleting(JobSupport.kt:894)
		at kotlinx.coroutines.JobSupport.makeCompletingOnce$kotlinx_coroutines_core(JobSupport.kt:859)
		at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:99)
		at kotlinx.coroutines.intrinsics.CancellableKt.dispatcherFailure(Cancellable.kt:62)
		at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable(Cancellable.kt:75)
		... 102 more
	Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelled}@2673f535, Dispatchers.Main]

To reproduce

Appears to occur during load of the configuration.

Log output

Activity

  1. added
    ide:jetbrains
    kind:bug
    os:mac
    on Sep 18, 2025
  2. chezsmithy commented on Sep 18, 2025

    @chezsmithy
    ContributorAuthor
  3. Patrick-Erichsen commented on Sep 19, 2025

    @Patrick-Erichsen
    Contributor

    cc @exigow here - another related issue to latest IntelliJ CE

  4. donbing007 commented on Sep 24, 2025

    @donbing007
    • OS: Ubunut 20.04.6 LTS
    • Continue version: 1.0.43
    • IDE version: IntelliJ CE 2025.2
    • Model: Qwen2.5-Coder

    Same error here with my config. After it happens, Continue freezes completely and I need to restart the IDE.

  5. github-actions commented on Dec 24, 2025

    @github-actions
    Contributor

    This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.

  6. alper-teke commented on Jan 7, 2026

    @alper-teke

    I guess this issue has been closed since nobody reacted for some time. This happened to a colleague today. Similar error reported in #8035

  7. pimkrebbers commented on Jan 8, 2026

    @pimkrebbers

    I'm also still experiencing this issue in IntelliJ IDEA 2025.3.1 (Build #IU-253.29346.138, built on December 18, 2025) with Continue 1.0.55 so if this could be resolved that would be great.

  8. Thelm76 commented on Jan 14, 2026

    @Thelm76

    Same this issue keeps occuring on my IntelliJ Ultimate (2025.3.1.1) with continue plugin (1.0.55)

    I'm on MacOS Tahoe 26.2 with M4 pro chip.

    stacktrace

    Unhandled exception in Dispatchers.Main, interactive mode: false
    
    kotlinx.coroutines.CompletionHandlerException: Exception in completion handler ChildContinuation@195a69b7[job@77e778e8] for StandaloneCoroutine{Cancelling}@77e778e8
    	at kotlinx.coroutines.JobSupport.notifyCancelling(JobSupport.kt:1608)
    	at kotlinx.coroutines.JobSupport.tryMakeCancelling(JobSupport.kt:826)
    	at kotlinx.coroutines.JobSupport.makeCancelling(JobSupport.kt:786)
    	at kotlinx.coroutines.JobSupport.cancelImpl$kotlinx_coroutines_core(JobSupport.kt:702)
    	at kotlinx.coroutines.JobSupport.cancelInternal(JobSupport.kt:663)
    	at kotlinx.coroutines.JobSupport.cancel(JobSupport.kt:648)
    	at kotlinx.coroutines.Job$DefaultImpls.cancel$default(Job.kt:192)
    	at com.github.continuedev.continueintellijextension.listeners.DocumentChangeTracker.handleDocumentChange(DocumentChangeTracker.kt:32)
    	at com.github.continuedev.continueintellijextension.listeners.DocumentChangeTracker.documentChanged(DocumentChangeTracker.kt:24)
    	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
    	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
    	at com.intellij.util.EventDispatcher.dispatchVoidMethod(EventDispatcher.java:120)
    	at com.intellij.util.EventDispatcher.lambda$doCreateMulticaster$1(EventDispatcher.java:85)
    	at jdk.proxy2/jdk.proxy2.$Proxy110.documentChanged(Unknown Source)
    	at com.intellij.openapi.editor.impl.DocumentImpl.lambda$changedUpdate$6(DocumentImpl.java:974)
    	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeNonCancelableSection$3(CoreProgressManager.java:325)
    	at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:741)
    	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$computeInNonCancelableSection$4(CoreProgressManager.java:333)
    	at com.intellij.openapi.progress.Cancellation.computeInNonCancelableSection(Cancellation.java:144)
    	at com.intellij.openapi.progress.impl.CoreProgressManager.computeInNonCancelableSection(CoreProgressManager.java:333)
    	at com.intellij.openapi.progress.impl.CoreProgressManager.executeNonCancelableSection(CoreProgressManager.java:324)
    	at com.intellij.openapi.editor.impl.DocumentImpl.changedUpdate(DocumentImpl.java:971)
    	at com.intellij.openapi.editor.impl.DocumentImpl.updateText(DocumentImpl.java:873)
    	at com.intellij.openapi.editor.impl.DocumentImpl.replaceString(DocumentImpl.java:709)
    	at com.intellij.openapi.editor.impl.DocumentImpl.replaceString(DocumentImpl.java:640)
    	at com.intellij.psi.impl.PsiToDocumentSynchronizer.doCommitTransaction(PsiToDocumentSynchronizer.java:235)
    	at com.intellij.psi.impl.PsiToDocumentSynchronizer.lambda$commitTransaction$1(PsiToDocumentSynchronizer.java:211)
    	at com.intellij.psi.impl.PsiToDocumentSynchronizer.lambda$doSync$0(PsiToDocumentSynchronizer.java:107)
    	at com.intellij.psi.impl.PsiToDocumentSynchronizer.performAtomically(PsiToDocumentSynchronizer.java:125)
    	at com.intellij.psi.impl.PsiToDocumentSynchronizer.doSync(PsiToDocumentSynchronizer.java:107)
    	at com.intellij.psi.impl.PsiToDocumentSynchronizer.commitTransaction(PsiToDocumentSynchronizer.java:211)
    	at com.intellij.pom.core.impl.PomModelImpl.commitTransaction(PomModelImpl.java:193)
    	at com.intellij.pom.core.impl.PomModelImpl.lambda$runTransaction$1(PomModelImpl.java:149)
    	at com.intellij.psi.impl.DebugUtil.performPsiModification(DebugUtil.java:570)
    	at com.intellij.pom.core.impl.PomModelImpl.lambda$runTransaction$2(PomModelImpl.java:101)
    	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeNonCancelableSection$3(CoreProgressManager.java:325)
    	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:792)
    	at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:748)
    	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$computeInNonCancelableSection$4(CoreProgressManager.java:333)
    	at com.intellij.openapi.progress.Cancellation.computeInNonCancelableSection(Cancellation.java:150)
    	at com.intellij.openapi.progress.impl.CoreProgressManager.computeInNonCancelableSection(CoreProgressManager.java:333)
    	at com.intellij.openapi.progress.impl.CoreProgressManager.executeNonCancelableSection(CoreProgressManager.java:324)
    	at com.intellij.pom.core.impl.PomModelImpl.runTransaction(PomModelImpl.java:90)
    	at com.intellij.psi.impl.source.tree.ChangeUtil.prepareAndRunChangeAction(ChangeUtil.java:145)
    	at com.intellij.psi.impl.source.tree.CompositeElement.replaceChild(CompositeElement.java:654)
    	at com.intellij.psi.impl.source.codeStyle.CodeEditUtil.replaceChild(CodeEditUtil.java:162)
    	at com.intellij.psi.impl.source.tree.CompositeElement.replaceChildInternal(CompositeElement.java:478)
    	at com.intellij.psi.impl.source.tree.java.ExpressionPsiElement.replaceChildInternal(ExpressionPsiElement.java:20)
    	at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl.bindToClass(PsiJavaCodeReferenceElementImpl.java:672)
    	at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl.bindToElement(PsiJavaCodeReferenceElementImpl.java:560)
    	at com.intellij.codeInsight.daemon.impl.quickfix.ImportClassFixBase.bindReference(ImportClassFixBase.java:511)
    	at com.intellij.codeInsight.daemon.impl.quickfix.ImportClassFix.bindReference(ImportClassFix.java:46)
    	at com.intellij.codeInsight.daemon.impl.quickfix.ImportClassFix.generatePreview(ImportClassFix.java:58)
    	at com.intellij.codeInsight.intention.impl.IntentionActionWithTextCaching$MyIntentionAction.generatePreview(IntentionActionWithTextCaching.java:264)
    	at com.intellij.codeInsight.intention.impl.preview.IntentionPreviewComputable.invokePreview$lambda$0$0$0(IntentionPreviewComputable.kt:133)
    	at com.intellij.model.SideEffectGuard$Companion.computeWithAllowedSideEffectsBlocking$lambda$0(SideEffectGuard.kt:42)
    	at com.intellij.concurrency.ThreadContext.installThreadContext(threadContext.kt:305)
    	at com.intellij.model.SideEffectGuard$Companion.computeWithAllowedSideEffectsBlocking(SideEffectGuard.kt:41)
    	at com.intellij.model.SideEffectGuard$Companion.computeWithoutSideEffects(SideEffectGuard.kt:27)
    	at com.intellij.codeInsight.intention.impl.preview.IntentionPreviewComputable.invokePreview$lambda$0$0(IntentionPreviewComputable.kt:132)
    	at com.intellij.psi.impl.source.PostprocessReformattingAspectImpl.lambda$postponeFormattingInside$2(PostprocessReformattingAspectImpl.java:137)
    	at com.intellij.psi.impl.source.PostprocessReformattingAspectImpl.postponeFormattingInside(PostprocessReformattingAspectImpl.java:146)
    	at com.intellij.psi.impl.source.PostprocessReformattingAspectImpl.postponeFormattingInside(PostprocessReformattingAspectImpl.java:136)
    	at com.intellij.codeInsight.intention.impl.preview.IntentionPreviewComputable.invokePreview$lambda$0(IntentionPreviewComputable.kt:131)
    	at com.intellij.codeInsight.intention.preview.IntentionPreviewUtils.previewSession(IntentionPreviewUtils.java:132)
    	at com.intellij.codeInsight.intention.impl.preview.IntentionPreviewComputable.invokePreview(IntentionPreviewComputable.kt:130)
    	at com.intellij.codeInsight.intention.impl.preview.IntentionPreviewComputable.generatePreview(IntentionPreviewComputable.kt:99)
    	at com.intellij.codeInsight.intention.impl.preview.IntentionPreviewComputable.tryCreateDiffContent(IntentionPreviewComputable.kt:75)
    	at com.intellij.codeInsight.intention.impl.preview.IntentionPreviewComputable.call(IntentionPreviewComputable.kt:58)
    	at com.intellij.codeInsight.intention.impl.IntentionHintComponent$IntentionPopup.lambda$getPreviewHandler$4(IntentionHintComponent.java:869)
    	at com.intellij.codeInsight.intention.impl.preview.PreviewHandler.lambda$new$0(PreviewHandler.java:57)
    	at com.intellij.codeInsight.intention.impl.preview.IntentionPreviewPopupUpdateProcessor$updatePopup$5.invokeSuspend$lambda$0(IntentionPreviewPopupUpdateProcessor.kt:119)
    	at com.intellij.openapi.application.rw.InternalReadAction.insideReadAction(InternalReadAction.kt:111)
    	at com.intellij.openapi.application.rw.InternalReadAction.tryReadCancellable$lambda$0(InternalReadAction.kt:101)
    	at com.intellij.openapi.application.rw.CancellableReadActionKt.cancellableReadActionInternal$lambda$0$0$0(cancellableReadAction.kt:32)
    	at com.intellij.platform.locking.impl.NestedLocksThreadingSupport.tryRunReadAction(NestedLocksThreadingSupport.kt:902)
    	at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1237)
    	at com.intellij.openapi.application.rw.CancellableReadActionKt.cancellableReadActionInternal$lambda$0$0(cancellableReadAction.kt:30)
    	at com.intellij.openapi.progress.util.ProgressIndicatorUtilService.runActionAndCancelBeforeWrite(ProgressIndicatorUtilService.java:73)
    	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runActionAndCancelBeforeWrite(ProgressIndicatorUtils.java:152)
    	at com.intellij.openapi.application.rw.CancellableReadActionKt.cancellableReadActionInternal$lambda$0(cancellableReadAction.kt:28)
    	at com.intellij.concurrency.ThreadContext.installThreadContext(threadContext.kt:305)
    	at com.intellij.concurrency.ThreadContext.installThreadContext$default(threadContext.kt:303)
    	at com.intellij.openapi.application.rw.CancellableReadActionKt.cancellableReadActionInternal(cancellableReadAction.kt:24)
    	at com.intellij.openapi.application.rw.InternalReadAction.tryReadCancellable(InternalReadAction.kt:100)
    	at com.intellij.openapi.application.rw.InternalReadAction.tryReadAction(InternalReadAction.kt:86)
    	at com.intellij.openapi.application.rw.InternalReadAction.readLoop(InternalReadAction.kt:73)
    	at com.intellij.openapi.application.rw.InternalReadAction.access$readLoop(InternalReadAction.kt:15)
    	at com.intellij.openapi.application.rw.InternalReadAction$runReadAction$6.invokeSuspend(InternalReadAction.kt:52)
    	at com.intellij.openapi.application.rw.InternalReadAction$runReadAction$6.invoke(InternalReadAction.kt)
    	at com.intellij.openapi.application.rw.InternalReadAction$runReadAction$6.invoke(InternalReadAction.kt)
    	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:44)
    	at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:166)
    	at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
    	at com.intellij.openapi.application.rw.InternalReadAction.runReadAction(InternalReadAction.kt:50)
    	at com.intellij.openapi.application.rw.PlatformReadWriteActionSupport.executeReadAction(PlatformReadWriteActionSupport.kt:66)
    	at com.intellij.openapi.application.ReadWriteActionSupport.executeReadAction$default(ReadWriteActionSupport.kt:15)
    	at com.intellij.openapi.application.CoroutinesKt.constrainedReadAction(coroutines.kt:60)
    	at com.intellij.openapi.application.CoroutinesKt.readAction(coroutines.kt:27)
    	at com.intellij.codeInsight.intention.impl.preview.IntentionPreviewPopupUpdateProcessor$updatePopup$5.invokeSuspend(IntentionPreviewPopupUpdateProcessor.kt:118)
    	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:34)
    	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
    	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:610)
    	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runDefaultDispatcherTask(CoroutineScheduler.kt:1194)
    	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:906)
    	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:775)
    	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:762)
    	Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@77e778e8, Dispatchers.Main]
    Caused by: kotlinx.coroutines.DispatchException: Coroutine dispatcher Dispatchers.Main threw an exception, context = [StandaloneCoroutine{Cancelling}@77e778e8, Dispatchers.Main]
    	at kotlinx.coroutines.internal.DispatchedContinuationKt.safeDispatch(DispatchedContinuation.kt:256)
    	at kotlinx.coroutines.DispatchedTaskKt.dispatch(DispatchedTask.kt:145)
    	at kotlinx.coroutines.CancellableContinuationImpl.dispatchResume(CancellableContinuationImpl.kt:470)
    	at kotlinx.coroutines.CancellableContinuationImpl.cancel(CancellableContinuationImpl.kt:214)
    	at kotlinx.coroutines.CancellableContinuationImpl.parentCancelled$kotlinx_coroutines_core(CancellableContinuationImpl.kt:221)
    	at kotlinx.coroutines.ChildContinuation.invoke(CancellableContinuationImpl.kt:698)
    	at kotlinx.coroutines.JobSupport.notifyCancelling(JobSupport.kt:1604)
    	... 106 more
    Caused by: com.intellij.model.SideEffectGuard$SideEffectNotAllowedException: Side effect not allowed: INVOKE_LATER
    	at com.intellij.model.SideEffectGuard$Companion.checkSideEffectAllowed(SideEffectGuard.kt:21)
    	at com.intellij.model.SideEffectGuard.checkSideEffectAllowed(SideEffectGuard.kt)
    	at com.intellij.openapi.application.impl.LaterInvocator.invokeLater(LaterInvocator.java:98)
    	at com.intellij.openapi.application.impl.ApplicationImpl.dispatchCoroutineOnEDT(ApplicationImpl.java:433)
    	at com.intellij.openapi.application.impl.EdtCoroutineDispatcher.dispatch(EdtCoroutineDispatcher.kt:48)
    	at kotlinx.coroutines.internal.DispatchedContinuationKt.safeDispatch(DispatchedContinuation.kt:254)
    	... 112 more
    

    @tingwai @chezsmithy can someone reopen this?

  9. Anachronism1840 commented on Feb 6, 2026

    @Anachronism1840

    Same issue:

    • IntelliJ Ultimate 2025.3.2 (Build #IU-253.30387.90, built on January 22, 2026)
    • Continue plugin v1.0.59
    • Ubuntu 24.04.3

    Happens every time I use my IDE, no matter if I am using the plugin or not.

    Would be happy if we could reopen the issue, and if someone could tackle it.

    Best wishes,
    Ana

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ide:jetbrainskind:bugos:macstale

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions