配备高级 AI 功能和 Windows Copilot 集成的电脑
pycharm中 copilot报错,无法正常启用
Unhandled exception in [Kernel@jn17qf8u7dfcipk4496i, Rete(abortOnError=false, commands=capacity=2147483647,data=[onReceive], reteState=kotlinx.coroutines.flow.StateFlowImpl@4d41cee, dbSource=ReteDbSource(reteState=kotlinx.coroutines.flow.StateFlowImpl@4d41cee)), DbSourceContextElement(kernel Kernel@jn17qf8u7dfcipk4496i), ComponentManager(ProjectImpl@673375803), com.intellij.codeWithMe.ClientIdContextElementPrecursor@1fbcd5ca, CoroutineName(com.github.copilot.agent.session.CopilotAgentSessionManager), Dispatchers.Default]
java.lang.IllegalArgumentException: Invalid URI: mock:///pasted_image_1.png
at com.github.copilot.platform.utils.VirtualFileKt.uriToIoFile(VirtualFile.kt:43)
at com.github.copilot.platform.utils.VirtualFileKt.toVirtualFileByUrl(VirtualFile.kt:52)
at com.github.copilot.agent.message.references.FileReferenceComponent$Companion.from(FileReferenceComponent.kt:58)
at com.github.copilot.agent.message.references.ReferenceListPanel.addFileReference(ReferenceListPanel.kt:40)
at com.github.copilot.agent.message.references.ReferenceListPanel.<init>(ReferenceListPanel.kt:33)
at com.github.copilot.agent.message.contentRender.ReferencesPanel.updateContent(ReferencesRenderer.kt:42)
at com.github.copilot.agent.message.contentRender.ReferencesPanel.<init>(ReferencesRenderer.kt:36)
at com.github.copilot.agent.message.contentRender.ReferencesRenderer.render(ReferencesRenderer.kt:22)
at com.github.copilot.agent.message.contentRender.ReferencesRenderer.render(ReferencesRenderer.kt:14)
at com.github.copilot.agent.message.AbstractMessageComponent.renderContents(AbstractMessageComponent.kt:79)
at com.github.copilot.agent.message.AbstractMessageComponent.initialize(AbstractMessageComponent.kt:39)
at com.github.copilot.agent.message.CopilotAgentMessageComponent.<init>(CopilotAgentMessageComponent.kt:87)
at com.github.copilot.agent.message.CopilotAgentMessageComponent.<init>(CopilotAgentMessageComponent.kt:29)
at com.github.copilot.agent.session.component.CopilotAgentSessionComponent.addResponseMessage(CopilotAgentSessionComponent.kt:183)
at com.github.copilot.agent.session.component.CopilotAgentSessionComponent.addMessage(CopilotAgentSessionComponent.kt:83)
at com.github.copilot.agent.session.component.CopilotAgentSessionComponent.<init>(CopilotAgentSessionComponent.kt:61)
at com.github.copilot.agent.session.CopilotAgentSessionController.<init>(CopilotAgentSessionController.kt:110)
at com.github.copilot.agent.session.CopilotAgentSessionController.<init>(CopilotAgentSessionController.kt:84)
at com.github.copilot.agent.session.CopilotAgentSessionManager.createSessionControllerInstance(CopilotAgentSessionManager.kt:87)
at com.github.copilot.agent.session.CopilotAgentSessionManager.createSessionControllerInstance(CopilotAgentSessionManager.kt:47)
at com.github.copilot.agent.session.AbstractSessionManager.createSessionController(AbstractSessionManager.kt:93)
at com.github.copilot.agent.session.AbstractSessionManager.getOrCreateSessionController(AbstractSessionManager.kt:84)
at com.github.copilot.agent.session.AbstractSessionManager.getOrCreateSessionController(AbstractSessionManager.kt:80)
at com.github.copilot.agent.session.AbstractSessionManager.access$getOrCreateSessionController(AbstractSessionManager.kt:22)
at com.github.copilot.agent.session.AbstractSessionManager$getOrCreateSessionController$1.invokeSuspend(AbstractSessionManager.kt)
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)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [Kernel@jn17qf8u7dfcipk4496i, Rete(abortOnError=false, commands=capacity=2147483647,data=[onReceive], reteState=kotlinx.coroutines.flow.StateFlowImpl@4d41cee, dbSource=ReteDbSource(reteState=kotlinx.coroutines.flow.StateFlowImpl@4d41cee)), DbSourceContextElement(kernel Kernel@jn17qf8u7dfcipk4496i), ComponentManager(ProjectImpl@673375803), com.intellij.codeWithMe.ClientIdContextElementPrecursor@1fbcd5ca, CoroutineName(com.github.copilot.agent.session.CopilotAgentSessionManager), StandaloneCoroutine{Cancelled}@7e0c2aaa, Dispatchers.Default]
```Caused by: java.nio.file.FileSystemNotFoundException: Provider "mock" not installed
at java.base/java.nio.file.Path.of(Path.java:213)
at java.base/java.nio.file.Paths.get(Paths.java:98)
at com.github.copilot.platform.utils.VirtualFileKt.uriToIoFile(VirtualFile.kt:41)
... 30 more