Github copilot plugin fails with IntelliJ idea Ultimate edition 2024.2
When using the Github copilot chat I'm getting a “HTTP 302 Found”
This is from the idea.log file:
#c.i.s.ComponentManagerImpl - ink.organics.pojo2json.parser.POJO2JSONParserFactory <clinit> requests ink.organics.pojo2json.parser.SettingsState instance. Class initialization must not depend on services. Consider using instance of the service on-demand instead.
java.lang.Throwable: ink.organics.pojo2json.parser.POJO2JSONParserFactory <clinit> requests ink.organics.pojo2json.parser.SettingsState instance. Class initialization must not depend on services. Consider using instance of the service on-demand instead.
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:376)
at com.intellij.serviceContainer.ComponentManagerImplKt.checkOutsideClassInitializer(ComponentManagerImpl.kt:1588)
at com.intellij.serviceContainer.ComponentManagerImplKt.getOrCreateInstanceBlocking(ComponentManagerImpl.kt:1557)
at com.intellij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:746)
at com.intellij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:690)
at ink.organics.pojo2json.parser.SettingsState.getInstance(SettingsState.java:39)
at ink.organics.pojo2json.parser.POJO2JSONParser.<init>(POJO2JSONParser.java:44)
at ink.organics.pojo2json.parser.POJO2JSONParserFactory.<clinit>(POJO2JSONParserFactory.java:5)
at ink.organics.pojo2json.POJO2JSONAction.<init>(POJO2JSONAction.java:21)
at ink.organics.pojo2json.EditorPopupMenuAction.<init>(EditorPopupMenuAction.java:11)
at com.intellij.serviceContainer.ComponentManagerImpl.findConstructorAndInstantiateClass(ComponentManagerImpl.kt:900)
at com.intellij.serviceContainer.ComponentManagerImpl.doInstantiateClass(ComponentManagerImpl.kt:909)
at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClass(ComponentManagerImpl.kt:894)
at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClass(ComponentManagerImpl.kt:935)
…etc
SEVERE - #c.i.s.ComponentManagerImpl - IntelliJ IDEA 2024.2 Build #IU-242.20224.300
SEVERE - #c.i.s.ComponentManagerImpl - JDK: 21.0.3; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
SEVERE - #c.i.s.ComponentManagerImpl - OS: Windows 11
SEVERE - #c.i.s.ComponentManagerImpl - Plugin to blame: POJO to JSON version: 2.0.6
INFO - STDOUT - Do not use URL connection as JarURLConnection
INFO - org.reflections.Reflections - Reflections took 33 ms to scan 1 urls, producing 7 keys and 17 values
INFO - #c.i.c.ComponentStoreImpl - Registering unknown macros a.b.c in component DatabaseSettings
WARN - #com.github.weisj.jsvg.parser.NodeMap - unsupported namedview
WARN - org.apache.velocity.deprecation - configuration key 'resource.loader' has been deprecated in favor of 'resource.loaders'
WARN - org.apache.velocity.deprecation - configuration key 'includes.resource.loader.instance' has been deprecated in favor of 'resource.loader.includes.instance'
SEVERE - #c.i.o.a.i.ActionUpdater - VcsGroupsActionGroup#presentation@MainMenu (com.intellij.openapi.vcs.actions.VcsGroupsActionGroup), actionId=VcsGroups, text='Git'
java.lang.IllegalStateException: read job must've been cancelled
at com.intellij.openapi.application.rw.CancellableReadActionKt.cancellableReadActionInternal(cancellableReadAction.kt:37)
…etc
SEVERE - #c.i.o.a.i.ActionUpdater - Last Action: GotoTest
SEVERE - #c.i.o.a.i.ActionUpdater - Current Command: Create Test
SEVERE - #c.i.o.a.i.ActionUpdater - NonEmptyActionGroup#children@MainMenu (NonEmptyActionGroup), actionId=BuildMenu, text='Build'
java.lang.IllegalStateException: read job must've been cancelled
at com.intellij.openapi.application.rw.CancellableReadActionKt.cancellableReadActionInternal(cancellableReadAction.kt:37)
at com.intellij.openapi.application.rw.InternalReadAction.tryReadCancellable(InternalReadAction.kt:93)
at com.intellij.openapi.application.rw.InternalReadAction.tryReadAction(InternalReadAction.kt:77)
at com.intellij.openapi.application.rw.InternalReadAction.readLoop(InternalReadAction.kt:64)
at com.intellij.openapi.application.rw.InternalReadAction.access$readLoop(InternalReadAction.kt:15)
at com.intellij.openapi.application.rw.InternalReadAction$runReadAction$3.invokeSuspend(InternalReadAction.kt:35)
at com.intellij.openapi.application.rw.InternalReadAction$runReadAction$3.invoke(InternalReadAction.kt)
at com.intellij.openapi.application.rw.InternalReadAction$runReadAction$3.invoke(InternalReadAction.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:62)
at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScope.kt:261)
at com.intellij.openapi.application.rw.InternalReadAction.runReadAction(InternalReadAction.kt:34)
at com.intellij.openapi.application.rw.PlatformReadWriteActionSupport.executeReadAction(PlatformReadWriteActionSupport.kt:38)
INFO - #copilot - [fetchCompletions] request.response: [https://copilot-proxy.githubusercontent.com/v1/engines/copilot-codex/completions] took 627 ms
INFO - #copilot - [streamChoices] solution 0 returned. finish reason: [stop]
INFO - #copilot - [streamChoices] request done: headerRequestId: [7ad14d3f-6cef-4bc7-af4b-d94d5c09c26e] model deployment ID: [d057-20240807150047]
INFO - #git4idea.commands.GitHandler - [my-project-svc] git -c credential.helper= -c core.quotepath=false -c log.showSignature=false add --ignore-errors -A -- src/test/java/com/xxx/service/MyTest.java
WARN - #com.github.copilot.chat.user.GitHubUserIconService - failed to download user icon
javax.imageio.IIOException: Can't get input stream from URL!
at java.desktop/javax.imageio.ImageIO.read(ImageIO.java:1407)
at com.github.copilot.chat.user.GitHubUserIconService.downloadUserIcon(GitHubUserIconService.kt:81)
at com.github.copilot.chat.user.GitHubUserIconService.getUserIcon$lambda$5(GitHubUserIconService.kt:60)
at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport$executeOnPooledThread$1.run(AnyThreadWriteThreadingSupport.kt:134)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
at com.intellij.util.concurrency.ContextCallable.call(ContextCallable.java:32)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at com.intellij.util.concurrency.ContextRunnable.run(ContextRunnable.java:27)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:735)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:732)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:732)
at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.io.FileNotFoundException: https://github.com/myuser_dnbgit.png
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1994)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1599)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:223)
at java.base/java.net.URL.openStream(URL.java:1325)
at java.desktop/javax.imageio.ImageIO.read(ImageIO.java:1405)
... 14 more
INFO - #copilot - [fetcher] Request to <https://api.githubcopilot.com/models> failed, attempting fallback. FetchError: The pending stream has been canceled (caused by: self-signed certificate in certificate chain)
at fetch (C:\snapshot\copilot-client\node_modules\@adobe\helix-fetch\src\fetch\index.js:99:11)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at cachingFetch (C:\snapshot\copilot-client\node_modules\@adobe\helix-fetch\src\fetch\index.js:288:16)
at Xee.fetch (C:\snapshot\copilot-client\lib\src\network\helix.ts:96:22)
at Qee.fetch (C:\snapshot\copilot-client\agent\src\network\fallbackFetcher.ts:32:20)
at fetchCapiUrl (C:\snapshot\copilot-client\lib\src\conversation\capiFetchUtilities.ts:16:12)
at SK.fetchMetadata (C:\snapshot\copilot-client\lib\src\conversation\modelMetadata.ts:77:26)
at SK.getMetadata (C:\snapshot\copilot-client\lib\src\conversation\modelMetadata.ts:71:13)
at IK.getMetadata (C:\snapshot\copilot-client\lib\src\conversation\modelMetadata.ts:185:42)
at kK.getFirstMatchingModelMetadata (C:\snapshot\copilot-client\lib\src\conversation\modelConfigurations.ts:83:32) {
type: 'system',
_name: 'FetchError',
code: 'ERR_HTTP2_STREAM_CANCEL',
errno: undefined,
erroredSysCall: undefined
}
INFO - #copilot - [fetcher] Fallback fetch succeeded, switching to editor fetcher.
WARN - #copilot - [default] Failed to fetch models from CAPI { status: 302, statusText: 'Found' }
WARN - #copilot - [chat] Error processing turn b8a4d573-30e3-41fa-8e27-04189fd76799 FetchResponseError: HTTP 302 Found
at SK.fetchMetadata (C:\snapshot\copilot-client\lib\src\conversation\modelMetadata.ts:83:19)
at SK.getMetadata (C:\snapshot\copilot-client\lib\src\conversation\modelMetadata.ts:71:13)
at IK.getMetadata (C:\snapshot\copilot-client\lib\src\conversation\modelMetadata.ts:185:42)
at kK.getFirstMatchingModelMetadata (C:\snapshot\copilot-client\lib\src\conversation\modelConfigurations.ts:83:32)
at kK.getFirstMatchingChatModelConfiguration (C:\snapshot\copilot-client\lib\src\conversation\modelConfigurations.ts:98:31)
at kK.getBestChatModelConfig (C:\snapshot\copilot-client\lib\src\conversation\modelConfigurations.ts:59:33)
at QJ.toPrompt (C:\snapshot\copilot-client\lib\src\conversation\prompt\conversationPromptEngine.ts:56:36)
at MJ.fetchPromptContext (C:\snapshot\copilot-client\lib\src\conversation\prompt\metaPrompt.ts:47:28)
at BJ.collectContext (C:\snapshot\copilot-client\lib\src\conversation\prompt\conversationContextCollector.ts:54:39)
at eQ.collectContext (C:\snapshot\copilot-client\lib\src\conversation\turnProcessor.ts:282:31) {
code: 'HTTP302'
}
请先登录再写评论。
Same here.
PHPStorm version 2024.2, Build #PS-242.20224.361, built on August 10, 2024.
This exception is thrown immediately after launching PHPStorm.
Stacktrace: