You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
javax.swing.text.BadLocationException: Position not represented by view
Environments
Plugin version: 3.5.6
IntelliJ IDEA 2023.1.4 (Ultimate Edition)
Build #IU-231.9225.16, built on July 12, 2023
Runtime version: 17.0.7+10-b829.16 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Operating system: macOS 14.0
Last action id: null
Stack Trace
java.lang.RuntimeException: javax.swing.text.BadLocationException: Position not represented by view
at com.intellij.openapi.editor.textarea.TextComponentScrollingModel.scrollToCaret(TextComponentScrollingModel.java:42)
at cn.yiiguxing.plugin.translate.action.TranslateAndReplaceAction$Companion.replaceText$lambda$4$lambda$3(TranslateAndReplaceAction.kt:346)
at com.intellij.openapi.application.WriteAction.lambda$run$1(WriteAction.java:87)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteActionWithClass(ApplicationImpl.java:944)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:970)
at com.intellij.openapi.application.WriteAction.run(WriteAction.java:86)
at cn.yiiguxing.plugin.translate.action.TranslateAndReplaceAction$Companion.replaceText$lambda$4(TranslateAndReplaceAction.kt:340)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:219)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:174)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:164)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:150)
at cn.yiiguxing.plugin.translate.action.TranslateAndReplaceAction$Companion.replaceText(TranslateAndReplaceAction.kt:337)
at cn.yiiguxing.plugin.translate.action.TranslateAndReplaceAction$Companion$showListPopup$step$1.onChosen(TranslateAndReplaceAction.kt:381)
at cn.yiiguxing.plugin.translate.action.TranslateAndReplaceAction$Companion$showListPopup$step$1.onChosen(TranslateAndReplaceAction.kt:379)
at com.intellij.ui.popup.list.ListPopupImpl._handleSelect(ListPopupImpl.java:476)
at com.intellij.ui.popup.list.ListPopupImpl.handleSelect(ListPopupImpl.java:426)
at com.intellij.ui.popup.list.ListPopupImpl$MyMouseListener.mouseReleased(ListPopupImpl.java:680)
at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:298)
at java.desktop/java.awt.Component.processMouseEvent(Component.java:6656)
at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3385)
at com.intellij.ui.popup.list.ListPopupImpl$MyList.processMouseEvent(ListPopupImpl.java:745)
at java.desktop/java.awt.Component.processEvent(Component.java:6421)
at java.desktop/java.awt.Container.processEvent(Container.java:2266)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5026)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4854)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4575)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2804)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4854)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:790)
at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:739)
at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:731)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:763)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:761)
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:760)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:667)
at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.kt:615)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:570)
at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:68)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:349)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:348)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:787)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:348)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:343)
at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:995)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:113)
at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:995)
at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$4(IdeEventQueue.kt:343)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:829)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:385)
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)
Caused by: javax.swing.text.BadLocationException: Position not represented by view
at java.desktop/javax.swing.text.CompositeView.modelToView(CompositeView.java:277)
at java.desktop/javax.swing.text.BoxView.modelToView(BoxView.java:485)
at java.desktop/javax.swing.text.CompositeView.modelToView(CompositeView.java:267)
at java.desktop/javax.swing.text.BoxView.modelToView(BoxView.java:485)
at java.desktop/javax.swing.text.CompositeView.modelToView(CompositeView.java:267)
at java.desktop/javax.swing.text.BoxView.modelToView(BoxView.java:485)
at java.desktop/javax.swing.text.CompositeView.modelToView(CompositeView.java:267)
at java.desktop/javax.swing.text.BoxView.modelToView(BoxView.java:485)
at java.desktop/javax.swing.plaf.basic.BasicTextUI$RootView.modelToView(BasicTextUI.java:1613)
at java.desktop/javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1108)
at java.desktop/javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1085)
at java.desktop/javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1061)
at java.desktop/javax.swing.text.JTextComponent.modelToView(JTextComponent.java:1392)
at com.intellij.openapi.editor.textarea.TextComponentScrollingModel.scrollToCaret(TextComponentScrollingModel.java:38)
... 63 more
The text was updated successfully, but these errors were encountered:
[Auto Generated Report]-=387FEA2E34A8FEB60BC2190C9BC49425=-
Description
javax.swing.text.BadLocationException: Position not represented by view
Environments
IntelliJ IDEA 2023.1.4 (Ultimate Edition)
Build #IU-231.9225.16, built on July 12, 2023
Runtime version: 17.0.7+10-b829.16 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Operating system: macOS 14.0
Last action id: null
Stack Trace
The text was updated successfully, but these errors were encountered: