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)
调用 Matcher.appendReplacement 或 Matcher.appendExpandedReplacement 时抛出的。确保在使用这些方法之前,正则表达式的 Pattern 对象正确地编译了,并且 Matcher 对象正确地找到了匹配项。
如果你能够访问到 com.alibabacloud.intellij.cosy 包的源代码,可以在 FileUtil.detectFileUrl 方法中添加断点或日志记录
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。