#204 ✓resolved

While typing in a line break mid a line of code, it crashes

Reported by Peter | April 24th, 2010 @ 08:15 PM

Here is the line of code I was typing. I think it may just because I was putting a line break in where it wasn't expecting one (I was typing into line 13 of the attached file).

 <dd><%=h truncate(product.description.gsub(/<.*?>/,''),
      :length => 80) %><dd>

It crashes right when I type "" before I type ":length"

Here is the output from the console:

*** ERROR in Document controller: <Redcar::AutoIndenter::DocumentController>

NativeException: java.lang.ClassCastException: com.redcareditor.mate.SinglePattern cannot be cast to com.redcareditor.mate.DoublePattern
com/redcareditor/mate/Scanner.java:122:in `findNextMarker'
com/redcareditor/mate/Scanner.java:172:in `hasNext'
com/redcareditor/mate/Parser.java:369:in `parseLine'
com/redcareditor/mate/Parser.java:268:in `parseRange'
com/redcareditor/mate/Parser.java:248:in `processChanges'
com/redcareditor/mate/Parser.java:215:in `modifyEventCallback'
com/redcareditor/mate/Parser.java:186:in `documentChanged'
org/eclipse/jface/text/AbstractDocument.java:739:in `doFireDocumentChanged2'
org/eclipse/jface/text/AbstractDocument.java:712:in `doFireDocumentChanged'
org/eclipse/jface/text/AbstractDocument.java:697:in `doFireDocumentChanged'
org/eclipse/jface/text/AbstractDocument.java:762:in `fireDocumentChanged'
org/eclipse/jface/text/AbstractDocument.java:1157:in `replace'
org/eclipse/jface/text/AbstractDocument.java:1176:in `replace'
/usr/lib/ruby/gems/1.8/gems/redcar- `replace'
/usr/lib/ruby/gems/1.8/gems/redcar- `replace'
/usr/lib/ruby/gems/1.8/gems/redcar- `insert'
/usr/lib/ruby/gems/1.8/gems/redcar- `after_newline'
/usr/lib/ruby/gems/1.8/gems/redcar- `modify_text'
/usr/lib/ruby/gems/1.8/gems/redcar- `rescue_document_controller_error'
/usr/lib/ruby/gems/1.8/gems/redcar- `modify_text'
/usr/lib/ruby/gems/1.8/gems/redcar- `each'
/usr/lib/ruby/gems/1.8/gems/redcar- `modify_text'
/usr/lib/ruby/gems/1.8/gems/redcar- `modifyText'
/usr/lib/ruby/gems/1.8/gems/redcar- `start'
/usr/lib/ruby/gems/1.8/gems/redcar- `start'
/usr/lib/ruby/gems/1.8/gems/redcar- `pump'
com/redcareditor/mate/Scanner.java:122:in `findNextMarker': java.lang.ClassCastException: com.redcareditor.mate.SinglePattern cannot be cast to com.redcareditor.mate.DoublePattern (NativeException)
    from com/redcareditor/mate/Scanner.java:172:in `hasNext'
    from com/redcareditor/mate/Parser.java:369:in `parseLine'
    from com/redcareditor/mate/Parser.java:268:in `parseRange'
    from com/redcareditor/mate/Parser.java:248:in `processChanges'
    from com/redcareditor/mate/Parser.java:215:in `modifyEventCallback'
    from com/redcareditor/mate/Parser.java:186:in `documentChanged'
    from org/eclipse/jface/text/AbstractDocument.java:739:in `doFireDocumentChanged2'
    from org/eclipse/jface/text/AbstractDocument.java:712:in `doFireDocumentChanged'
     ... 36 levels...
    from /usr/lib/ruby/gems/1.8/gems/redcar- `start'
    from /usr/lib/ruby/gems/1.8/gems/redcar- `pump'
    from /usr/lib/ruby/gems/1.8/gems/redcar-

I am running Ubuntu 9.10 on x86 with Redcar .
I really like the feel of Redcar so far. I like the easy finding for a file and the view of the directory structure and the lightweight feel. I still need to get used to the code completion. Keep up the amazing work.


Comments and changes to this ticket

  • Daniel Lucraft

    Daniel Lucraft April 26th, 2010 @ 09:22 AM

    • Tag changed from line breaks,, autoindenter, crash to, crash, javamateview
    • State changed from “new” to “open”
    • Assigned user set to “Daniel Lucraft”

    Grr, that is an annoying bug. It's just about the last hard crash left.

    Thanks for reducing it to a test case.

  • Daniel Lucraft

    Daniel Lucraft April 28th, 2010 @ 09:29 AM

    • State changed from “open” to “resolved”

    Hey Peter, did you get this error on the current gem version 0.3.4.x ?

    I believe this is fixed in git.


  • Peter

    Peter April 28th, 2010 @ 04:23 PM

    • Tag changed from, crash, javamateview to 0, crash, javamateview

    I thought I had on the most recent version of Redcar (from early April). I'll double check in a few hours. Thanks for looking at this so quickly. I'll see which version I am running.

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