Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Auto Generated]Plugin error occurred: javax.swing.text.BadLocationException: Position not represented by view #5084

Closed
intellij-translation-plugin-bot opened this issue Jan 13, 2024 · 0 comments
Labels
auto generated report 🤖 This is an automatically generated report bug/crash 💥 Uh-oh! fixed 🛠 Fixed
Milestone

Comments

@intellij-translation-plugin-bot

⚠️[Auto Generated Report]-=387FEA2E34A8FEB60BC2190C9BC49425=-

Description

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
@YiiGuxing YiiGuxing added auto generated report 🤖 This is an automatically generated report bug/crash 💥 Uh-oh! labels Jan 13, 2024
YiiGuxing added a commit that referenced this issue Mar 12, 2024
@YiiGuxing YiiGuxing added this to the v3.6.0 milestone Mar 12, 2024
@YiiGuxing YiiGuxing added the fixed 🛠 Fixed label Mar 12, 2024
@YiiGuxing YiiGuxing modified the milestones: v3.6.0, v3.5.7 Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto generated report 🤖 This is an automatically generated report bug/crash 💥 Uh-oh! fixed 🛠 Fixed
Projects
None yet
Development

No branches or pull requests

2 participants