From: SourceForge.net <no...@so...> - 2003-01-25 12:19:25
|
Bugs item #674549, was opened at 2003-01-25 13:23 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=674549&group_id=588 Category: editor core Group: normal bug Status: Open Resolution: None Priority: 5 Submitted By: Sz.K. (szkaroly) Assigned to: Nobody/Anonymous (nobody) Summary: Abbreviation: newline gives error in "before caret"(4.1pre8) Initial Comment: The following abbreviation causes jEdit to give errors and the editor stops working: == Text to insert before caret: == <?php ========================== == Text to insert after caret: ==== ?> ========================== (There is a newline after 'php'.) When expanding this abbrev., the fallowing errors are output to the console: [error] Exception while sending buffer event: [error] java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1 [error] at org.gjt.sp.jedit.Buffer.getLineStartOffset(Unknown Source) [error] at org.gjt.sp.jedit.Buffer.getLineText(Unknown Source) [error] at org.gjt.sp.jedit.textarea.ChunkCache.lineToChunkList(Unknown Source) [error] at org.gjt.sp.jedit.textarea.ChunkCache.lineToChunkList(Unknown Source) [error] at org.gjt.sp.jedit.textarea.ChunkCache.getLineInfosForPhysicalLine(Unknown Source) [error] at org.gjt.sp.jedit.textarea.JEditTextArea.scrollTo(Unknown Source) [error] at org.gjt.sp.jedit.textarea.JEditTextArea.scrollToCaret(Unknown Source) [error] at org.gjt.sp.jedit.textarea.JEditTextArea$1.run(Unknown Source) [error] at org.gjt.sp.jedit.textarea.JEditTextArea$BufferChangeHandler.transactionComplete(Unknown Source) [error] at org.gjt.sp.jedit.Buffer.fireTransactionComplete(Unknown Source) [error] at org.gjt.sp.jedit.Buffer.endCompoundEdit(Unknown Source) [error] at org.gjt.sp.jedit.Abbrevs.expandAbbrev(Unknown Source) [error] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [error] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [error] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [error] at java.lang.reflect.Method.invoke(Method.java:324) [error] at bsh.Reflect.invokeMethod(Unknown Source) [error] at bsh.Reflect.invokeStaticMethod(Unknown Source) [error] at bsh.Name.invokeMethod(Unknown Source) [error] at bsh.BSHMethodInvocation.eval(Unknown Source) [error] at bsh.BSHPrimaryExpression.eval(Unknown Source) [error] at bsh.BSHBlock.eval(Unknown Source) [error] at bsh.BshMethod.invokeDeclaredMethod(Unknown Source) [error] at bsh.BshMethod.invoke(Unknown Source) [error] at org.gjt.sp.jedit.BeanShell.runCachedBlock(Unknown Source) [error] at org.gjt.sp.jedit.BeanShellAction.invoke(Unknown Source) [error] at org.gjt.sp.jedit.gui.InputHandler.invokeAction(Unknown Source) [error] at org.gjt.sp.jedit.gui.DefaultInputHandler.keyPressed(Unknown Source) [error] at org.gjt.sp.jedit.textarea.JEditTextArea.processKeyEvent(Unknown Source) [error] at java.awt.Component.processEvent(Component.java:4902) [error] at java.awt.Container.processEvent(Container.java:1566) [error] at java.awt.Component.dispatchEventImpl(Component.java:3598) [error] at java.awt.Container.dispatchEventImpl(Container.java:1623) [error] at java.awt.Component.dispatchEvent(Component.java:3439) [error] at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1688) [error] at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:593) [error] at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:765) [error] at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:698) [error] at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:559) [error] at java.awt.Component.dispatchEventImpl(Component.java:3468) [error] at java.awt.Container.dispatchEventImpl(Container.java:1623) [error] at java.awt.Window.dispatchEventImpl(Window.java:1585) [error] at java.awt.Component.dispatchEvent(Component.java:3439) [error] at java.awt.EventQueue.dispatchEvent(EventQueue.java:450) [error] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197) [error] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) [error] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144) [error] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136) [error] at java.awt.EventDispatchThread.run(EventDispatchThread.java:99) ... This happens with all abbrevs. that has one ore more newline in the "before caret" section. The "after" part works normal. Error happens in text or php (etc, all) modes. System: jEdit 4.1pre8 (same on pre 7, but no problem with pre6) Gentoo linux 1.4(beta) [2.4.19] Sun JDK 1.4.1.01 / Blackdown JDK 1.4.1_beta (same error in both) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=674549&group_id=588 |