smallcloudai / refact-intellij

Refact AI: Open-source AI Code assistant with autocompletion, chat, refactoring and more for IntelliJ JetBrains IDEs
https://refact.ai
BSD 3-Clause "New" or "Revised" License
37 stars 13 forks source link

[JB plugin] Internal error: ExecutionException #196

Open Genius-code opened 6 days ago

Genius-code commented 6 days ago

An internal error happened in the IDE plugin.

Message: Unhandled exception in [ComponentManager(ProjectImpl@1018946295), com.intellij.codeWithMe.ClientIdContextElementPrecursor@11901bc9, CoroutineName(com.intellij.internal.statistic.service.fus.collectors.ProjectFUStateUsagesLogger), Dispatchers.Default]

Stack trace

java.util.concurrent.ExecutionException: org.apache.hc.core5.http2.H2StreamResetException: Timeout due to inactivity (30 SECONDS)
    at org.apache.hc.core5.concurrent.BasicFuture.getResult(BasicFuture.java:72)
    at org.apache.hc.core5.concurrent.BasicFuture.get(BasicFuture.java:85)
    at com.smallcloud.refactai.lsp.LSPProcessHolder.fetchCustomization(LSPProcessHolder.kt:269)
    at com.smallcloud.refactai.code_lens.RefactCodeVisionProviderFactory.createProviders(RefactCodeVisionProviderFactory.kt:37)
    at com.intellij.codeInsight.codeVision.CodeVisionProviderFactory$Companion.createAllProviders(CodeVisionProviderFactory.kt:16)
    at com.intellij.codeInsight.codeVision.settings.CodeVisionInlaySettingProvider.createModels(CodeVisionInlaySettingProvider.kt:17)
    at com.intellij.codeInsight.hints.InlayProviderUsageCollector.getMetrics(InlayProviderUsageCollector.kt:128)
    at com.intellij.internal.statistic.service.fus.collectors.ProjectUsagesCollector.collect$lambda$2(ProjectUsagesCollector.kt:81)
    at com.intellij.openapi.progress.CoroutinesKt.blockingContextInner(coroutines.kt:341)
    at com.intellij.openapi.progress.CoroutinesKt$blockingContext$2.invokeSuspend(coroutines.kt:233)
    at com.intellij.openapi.progress.CoroutinesKt$blockingContext$2.invoke(coroutines.kt)
    at com.intellij.openapi.progress.CoroutinesKt$blockingContext$2.invoke(coroutines.kt)
    at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:62)
    at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScope.kt:261)
    at com.intellij.openapi.progress.CoroutinesKt.blockingContext(coroutines.kt:232)
    at com.intellij.internal.statistic.service.fus.collectors.ProjectUsagesCollector.collect$suspendImpl(ProjectUsagesCollector.kt:80)
    at com.intellij.internal.statistic.service.fus.collectors.ProjectUsagesCollector.collect(ProjectUsagesCollector.kt)
    at com.intellij.internal.statistic.service.fus.collectors.ProjectFUStateUsagesLogger$logProjectState$2$1.invokeSuspend(FUStateUsagesLogger.kt:228)
    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: [ComponentManager(ProjectImpl@1018946295), com.intellij.codeWithMe.ClientIdContextElementPrecursor@11901bc9, CoroutineName(com.intellij.internal.statistic.service.fus.collectors.ProjectFUStateUsagesLogger), StandaloneCoroutine{Cancelled}@58df90e8, Dispatchers.Default]
Caused by: org.apache.hc.core5.http2.H2StreamResetException: Timeout due to inactivity (30 SECONDS)
    at org.apache.hc.core5.http2.impl.nio.AbstractH2StreamMultiplexer.onTimeout(AbstractH2StreamMultiplexer.java:558)
    at org.apache.hc.core5.http2.impl.nio.AbstractH2IOEventHandler.timeout(AbstractH2IOEventHandler.java:83)
    at org.apache.hc.core5.http2.impl.nio.ClientH2IOEventHandler.timeout(ClientH2IOEventHandler.java:39)
    at org.apache.hc.core5.reactor.InternalDataChannel.onTimeout(InternalDataChannel.java:169)
    at org.apache.hc.core5.reactor.InternalChannel.checkTimeout(InternalChannel.java:67)
    at org.apache.hc.core5.reactor.SingleCoreIOReactor.checkTimeout(SingleCoreIOReactor.java:241)
    at org.apache.hc.core5.reactor.SingleCoreIOReactor.validateActiveChannels(SingleCoreIOReactor.java:168)
    at org.apache.hc.core5.reactor.SingleCoreIOReactor.doExecute(SingleCoreIOReactor.java:130)
    at org.apache.hc.core5.reactor.AbstractSingleCoreIOReactor.execute(AbstractSingleCoreIOReactor.java:86)
    at org.apache.hc.core5.reactor.IOReactorWorker.run(IOReactorWorker.java:44)
    at java.base/java.lang.Thread.run(Thread.java:1583)

Environment

Additional information