From: SourceForge.net <no...@so...> - 2009-01-24 19:20:23
|
Plugin Bugs item #2493691, was opened at 2009-01-08 13:51 Message generated for change (Comment added) made by shlomy You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=565475&aid=2493691&group_id=588 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Matthieu Casanova (kpouer) Assigned to: Shlomy Reinstein (shlomy) Summary: Navigator move to the wrong offset Initial Comment: I got this when trying to go back to a file that was closed. Maybe Navigator didn't wait that jEdit loads the file java.lang.IllegalArgumentException: caret out of bounds: 2097483 at org.gjt.sp.jedit.textarea.TextArea.moveCaretPosition(TextArea.java:2225) at org.gjt.sp.jedit.textarea.TextArea.moveCaretPosition(TextArea.java:2206) at org.gjt.sp.jedit.textarea.TextArea.setCaretPosition(TextArea.java:2185) at ise.plugin.nav.Navigator.setPosition(Navigator.java:276) at ise.plugin.nav.Navigator.goBack(Navigator.java:357) at ise.plugin.nav.NavigatorPlugin.goBack(NavigatorPlugin.java:242) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.gjt.sp.jedit.bsh.Reflect.invokeMethod(Reflect.java:134) at org.gjt.sp.jedit.bsh.Reflect.invokeObjectMethod(Reflect.java:80) at org.gjt.sp.jedit.bsh.Name.invokeMethod(Name.java:855) at org.gjt.sp.jedit.bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75) at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102) at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47) at org.gjt.sp.jedit.bsh.BSHBlock.evalBlock(BSHBlock.java:130) at org.gjt.sp.jedit.bsh.BSHBlock.eval(BSHBlock.java:80) at org.gjt.sp.jedit.bsh.BshMethod.invokeImpl(BshMethod.java:362) at org.gjt.sp.jedit.bsh.BshMethod.invoke(BshMethod.java:258) at org.gjt.sp.jedit.bsh.BshMethod.invoke(BshMethod.java:186) at org.gjt.sp.jedit.BeanShellFacade.runCachedBlock(BeanShellFacade.java:225) at org.gjt.sp.jedit.BeanShell.runCachedBlock(BeanShell.java:441) at org.gjt.sp.jedit.BeanShellAction.invoke(BeanShellAction.java:73) at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:352) at org.gjt.sp.jedit.jEdit$4.invokeAction(jEdit.java:3163) at org.gjt.sp.jedit.jEdit$4.invokeAction(jEdit.java:3145) at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(EditAction.java:220) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) ---------------------------------------------------------------------- >Comment By: Shlomy Reinstein (shlomy) Date: 2009-01-24 21:20 Message: Fixed in SVN rev. 14447. ---------------------------------------------------------------------- Comment By: Shlomy Reinstein (shlomy) Date: 2009-01-24 21:03 Message: This is very simple... The navigator does not handle the jumping correctly. If you have a split view, with two edit panes, and you're currently in the second edit pane (according to the order of the edit panes in the view), and jumping back to a buffer that is the current buffer in the first edit pane (but not the current buffer in the second, where you invoke the back operation), then the navigator will set the first edit pane as the current, instead of changing the buffer in the second edit pane, but will set the caret position in the second edit pane (which still holds the buffer from which you jumped). I'll fix that shortly. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=565475&aid=2493691&group_id=588 |