#132 ✓resolved
Roger

java.lang.ArrayIndexOutOfBoundsException in updateHighlightedLine

Reported by Roger | January 25th, 2010 @ 09:20 PM

how to reproduce:
highlight "all current text (several lines of it)"
hit delete

caught java.lang.ArrayIndexOutOfBoundsException in updateHighlightedLine
*** Warning BadLocationExceptionorg.eclipse.jface.text.BadLocationException

    at org.eclipse.jface.text.TreeLineTracker.fail(TreeLineTracker.java:1061)
    at org.eclipse.jface.text.TreeLineTracker.lineByOffset(TreeLineTracker.java:271)
    at org.eclipse.jface.text.TreeLineTracker.getLineNumberOfOffset(TreeLineTracker.java:1143)
    at org.eclipse.jface.text.AbstractLineTracker.getLineNumberOfOffset(AbstractLineTracker.java:161)
    at org.eclipse.jface.text.AbstractDocument.getLineOfOffset(AbstractDocument.java:881)
    at com.redcareditor.mate.Parser.getLineAtOffset(Parser.java:129)
    at com.redcareditor.mate.Parser.getParsedUpto(Parser.java:101)
    at com.redcareditor.mate.Parser.parseLine(Parser.java:338)
    at com.redcareditor.mate.Parser.parseRange(Parser.java:255)
    at com.redcareditor.mate.Parser.processChanges(Parser.java:235)
    at com.redcareditor.mate.Parser.modifyEventCallback(Parser.java:214)
    at com.redcareditor.mate.Parser$2.documentChanged(Parser.java:186)
    at org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged2(AbstractDocument.java:739)
    at org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged(AbstractDocument.java:712)
    at org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged(AbstractDocument.java:697)
    at org.eclipse.jface.text.AbstractDocument.fireDocumentChanged(AbstractDocument.java:762)
    at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1157)
    at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1176)
    at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:484)
    at org.jruby.javasupport.JavaMethod.invokeDirect(JavaMethod.java:330)
    at org.jruby.java.invokers.InstanceMethodInvoker.call(InstanceMethodInvoker.java:71)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:227)
    at ruby.jit.ruby.E_3a_.installs.ruby191p376.lib.ruby.gems.$1_dot_9_dot_1.gems.redcar_minus_0_dot_3_dot_2dev.plugins.edit_view_swt.lib.edit_view_swt.document.replace3926741_4918203.__file__(document.rb:50)
    at ruby.jit.ruby.E_3a_.installs.ruby191p376.lib.ruby.gems.$1_dot_9_dot_1.gems.redcar_minus_0_dot_3_dot_2dev.plugins.edit_view_swt.lib.edit_view_swt.document.replace3926741_4918203.__file__(document.rb)
    at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:221)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:227)
    at ruby.jit.ruby.E_3a_.installs.ruby191p376.lib.ruby.gems.$1_dot_9_dot_1.gems.redcar_minus_0_dot_3_dot_2dev.plugins.edit_view.lib.edit_view.document.replace23370522_4918203.__file__(document.rb:157)
    at ruby.jit.ruby.E_3a_.installs.ruby191p376.lib.ruby.gems.$1_dot_9_dot_1.gems.redcar_minus_0_dot_3_dot_2dev.plugins.edit_view.lib.edit_view.document.replace23370522_4918203.__file__(document.rb)
    at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:221)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:227)
    at org.jruby.ast.FCallThreeArgNode.interpret(FCallThreeArgNode.java:40)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
    at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:210)
    at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:185)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:187)
    at org.jruby.ast.CallTwoArgNode.interpret(CallTwoArgNode.java:59)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
    at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:317)
    at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:268)
    at org.jruby.runtime.Block.yield(Block.java:194)
    at org.jruby.RubyArray.eachCommon(RubyArray.java:1635)
    at org.jruby.RubyArray.each(RubyArray.java:1642)
    at org.jruby.RubyArray$i_method_0_0$RUBYFRAMEDINVOKER$each.call(org/jruby/RubyArray$i_method_0_0$RUBYFRAMEDINVOKER$each.gen)
    at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:116)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:123)
    at org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
    at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:136)
    at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:153)
    at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:290)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:109)
    at ruby.jit.ruby.E_3a_.installs.ruby191p376.lib.ruby.gems.$1_dot_9_dot_1.gems.redcar_minus_0_dot_3_dot_2dev.plugins.application.lib.application.command.executor.execute20385001_4918203.rescue_1$RUBY$__rescue___0(executor.rb:22)
    at ruby.jit.ruby.E_3a_.installs.ruby191p376.lib.ruby.gems.$1_dot_9_dot_1.gems.redcar_minus_0_dot_3_dot_2dev.plugins.application.lib.application.command.executor.execute20385001_4918203.__file__(executor.rb:21)
    at ruby.jit.ruby.E_3a_.installs.ruby191p376.lib.ruby.gems.$1_dot_9_dot_1.gems.redcar_minus_0_dot_3_dot_2dev.plugins.application.lib.application.command.executor.execute20385001_4918203.__file__(executor.rb)
    at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:119)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:107)
    at ruby.jit.ruby.E_3a_.installs.ruby191p376.lib.ruby.gems.$1_dot_9_dot_1.gems.redcar_minus_0_dot_3_dot_2dev.plugins.application.lib.application.command.run21256008_4918203.__file__(command.rb:57)
    at ruby.jit.ruby.E_3a_.installs.ruby191p376.lib.ruby.gems.$1_dot_9_dot_1.gems.redcar_minus_0_dot_3_dot_2dev.plugins.application.lib.application.command.run21256008_4918203.__file__(command.rb)
    at org.jruby.ast.executable.AbstractScript.__file__(AbstractScript.java:43)
    at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:119)
    at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:290)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:109)
    at ruby.jit.ruby.E_3a_.installs.ruby191p376.lib.ruby.gems.$1_dot_9_dot_1.gems.redcar_minus_0_dot_3_dot_2dev.plugins.application.lib.application.menu.item.selected10616280_4918203.__file__(item.rb:27)
    at ruby.jit.ruby.E_3a_.installs.ruby191p376.lib.ruby.gems.$1_dot_9_dot_1.gems.redcar_minus_0_dot_3_dot_2dev.plugins.application.lib.application.menu.item.selected10616280_4918203.__file__(item.rb)
    at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:119)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:107)
    at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:61)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
    at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:317)
    at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:305)
    at org.jruby.runtime.BlockBody.call(BlockBody.java:72)
    at org.jruby.runtime.BlockBody.call(BlockBody.java:78)
    at org.jruby.runtime.Block.call(Block.java:89)
    at org.jruby.RubyProc.call(RubyProc.java:221)
    at org.jruby.RubyProc.call(RubyProc.java:204)
    at org.jruby.javasupport.JavaUtil$1.call(JavaUtil.java:201)
    at org.jruby.RubyClass.finvoke(RubyClass.java:453)
    at org.jruby.javasupport.util.RuntimeHelpers.invoke(RuntimeHelpers.java:402)
    at org.jruby.javasupport.util.RuntimeHelpers.invokeMethodMissing(RuntimeHelpers.java:298)
    at org.jruby.gen.InterfaceImpl419965135.widgetSelected(org/jruby/gen/InterfaceImpl419965135.gen:11)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
    at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:433)
    at org.jruby.javasupport.JavaMethod.invokeDirect(JavaMethod.java:297)
    at org.jruby.java.invokers.InstanceMethodInvoker.call(InstanceMethodInvoker.java:41)
    at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:56)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:107)
    at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:61)
    at org.jruby.ast.IfNode.interpret(IfNode.java:111)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
    at org.jruby.ast.WhileNode.interpret(WhileNode.java:131)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
    at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:136)
    at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:153)
    at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:290)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:109)
    at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:61)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
    at org.jruby.ast.IfNode.interpret(IfNode.java:119)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
    at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:136)
    at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:153)
    at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:290)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:109)
    at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:61)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
    at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:136)
    at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:153)
    at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:290)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:109)
    at E_3a_.installs.ruby191p376.lib.ruby.gems.$1_dot_9_dot_1.gems.redcar_minus_0_dot_3_dot_2dev.lib.redcar.$_dot_dot_.$_dot_dot_.bin.redcar.__file__(redcar:14)
    at E_3a_.installs.ruby191p376.lib.ruby.gems.$1_dot_9_dot_1.gems.redcar_minus_0_dot_3_dot_2dev.lib.redcar.$_dot_dot_.$_dot_dot_.bin.redcar.load(redcar)
    at org.jruby.Ruby.runScript(Ruby.java:628)
    at org.jruby.Ruby.runNormally(Ruby.java:550)
    at org.jruby.Ruby.runFromMain(Ruby.java:396)
    at org.jruby.Main.run(Main.java:272)
    at org.jruby.Main.run(Main.java:117)
    at org.jruby.Main.main(Main.java:97)

caught java.lang.ArrayIndexOutOfBoundsException in updateHighlightedLine

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A programmer's text editor for Gnome.

People watching this ticket

Pages