开发者社区 > 通义灵码 > AI编码助手 > 正文

phpstrom在使用通义灵码时出现错误

Update answer error.

java.lang.reflect.InvocationTargetException
at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1379)
at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1354)
at java.desktop/javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1480)
at com.alibabacloud.intellij.cosy.chat.processor.ChatAnswerProcessor.doTyping(ChatAnswerProcessor.java:161)
at com.alibabacloud.intellij.cosy.chat.processor.ChatAnswerProcessor.lambda$updateAnswer$1(ChatAnswerProcessor.java:115)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.IllegalArgumentException: Illegal group reference
at java.base/java.util.regex.Matcher.appendExpandedReplacement(Matcher.java:1067)
at java.base/java.util.regex.Matcher.appendReplacement(Matcher.java:997)
at com.alibabacloud.intellij.cosy.util.FileUtil.detectFileUrl(FileUtil.java:423)
at com.alibabacloud.intellij.cosy.ui.search.component.markdown.TextMarkdownComponent.buildText(TextMarkdownComponent.java:148)
at com.alibabacloud.intellij.cosy.ui.search.component.markdown.TextMarkdownComponent.updateText(TextMarkdownComponent.java:154)
at com.alibabacloud.intellij.cosy.ui.search.component.markdown.MarkdownStreamPanel.renderBlocks(MarkdownStreamPanel.java:162)
at com.alibabacloud.intellij.cosy.ui.search.component.markdown.MarkdownStreamPanel.renderComponent(MarkdownStreamPanel.java:124)
at com.alibabacloud.intellij.cosy.ui.search.component.markdown.MarkdownStreamPanel.append(MarkdownStreamPanel.java:112)
at com.alibabacloud.intellij.cosy.ui.search.generate.GenerateAnswerPanel.appendText(GenerateAnswerPanel.java:373)
at com.alibabacloud.intellij.cosy.ui.search.generate.GenerateContentForm.pushGenerate(GenerateContentForm.java:812)
at com.intellij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:649)
at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:625)
at com.intellij.util.messages.impl.MessageBusImplKt.deliverMessage(MessageBusImpl.kt:399)
at com.intellij.util.messages.impl.MessageBusImplKt.pumpWaiting(MessageBusImpl.kt:378)
at com.intellij.util.messages.impl.MessageBusImplKt.access$pumpWaiting(MessageBusImpl.kt:1)
at com.intellij.util.messages.impl.MessagePublisher.invoke(MessageBusImpl.kt:437)
at jdk.proxy7/jdk.proxy7.$Proxy190.push(Unknown Source)
at com.alibabacloud.intellij.cosy.chat.processor.ChatAnswerProcessor.lambda$doTyping$2(ChatAnswerProcessor.java:162)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:308)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:779)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:730)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:724)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:749)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:918)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:766)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:450)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:791)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:449)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)
at com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:624)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:447)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:881)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:493)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)

展开
收起
1591624300342190 2024-06-13 15:10:49 70 0
1 条回答
写回答
取消 提交回答
  • 北京阿里云ACE会长

    调用 Matcher.appendReplacement 或 Matcher.appendExpandedReplacement 时抛出的。确保在使用这些方法之前,正则表达式的 Pattern 对象正确地编译了,并且 Matcher 对象正确地找到了匹配项。

    如果你能够访问到 com.alibabacloud.intellij.cosy 包的源代码,可以在 FileUtil.detectFileUrl 方法中添加断点或日志记录

    2024-06-14 08:34:00
    赞同 展开评论 打赏
问答分类:

基于通义大模型的 AI 编码辅助工具,支持代码智能生成、单元测试生成、问题排查、研发智能问答等功能,为开发者带来高效、流畅的编码体验。

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载