#204 ✓resolved
Peter

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-0.3.4.3/plugins/edit_view_swt/lib/edit_view_swt/document.rb:59:in `replace'
/usr/lib/ruby/gems/1.8/gems/redcar-0.3.4.3/plugins/edit_view/lib/edit_view/document.rb:182:in `replace'
/usr/lib/ruby/gems/1.8/gems/redcar-0.3.4.3/plugins/edit_view/lib/edit_view/document.rb:157:in `insert'
/usr/lib/ruby/gems/1.8/gems/redcar-0.3.4.3/plugins/auto_indenter/lib/auto_indenter/document_controller.rb:13:in `after_newline'
/usr/lib/ruby/gems/1.8/gems/redcar-0.3.4.3/plugins/edit_view/lib/edit_view/document.rb:101:in `modify_text'
/usr/lib/ruby/gems/1.8/gems/redcar-0.3.4.3/plugins/edit_view/lib/edit_view/document.rb:467:in `rescue_document_controller_error'
/usr/lib/ruby/gems/1.8/gems/redcar-0.3.4.3/plugins/edit_view/lib/edit_view/document.rb:100:in `modify_text'
/usr/lib/ruby/gems/1.8/gems/redcar-0.3.4.3/plugins/edit_view/lib/edit_view/document.rb:98:in `each'
/usr/lib/ruby/gems/1.8/gems/redcar-0.3.4.3/plugins/edit_view/lib/edit_view/document.rb:98:in `modify_text'
/usr/lib/ruby/gems/1.8/gems/redcar-0.3.4.3/plugins/edit_view_swt/lib/edit_view_swt.rb:238:in `modifyText'
/usr/lib/ruby/gems/1.8/gems/redcar-0.3.4.3/plugins/application_swt/lib/application_swt/event_loop.rb:14:in `start'
/usr/lib/ruby/gems/1.8/gems/redcar-0.3.4.3/plugins/core/lib/core/gui.rb:39:in `start'
/usr/lib/ruby/gems/1.8/gems/redcar-0.3.4.3/lib/redcar.rb:112:in `pump'
/usr/lib/ruby/gems/1.8/gems/redcar-0.3.4.3/lib/redcar/../../bin/redcar:23
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-0.3.4.3/plugins/core/lib/core/gui.rb:39:in `start'
    from /usr/lib/ruby/gems/1.8/gems/redcar-0.3.4.3/lib/redcar.rb:112:in `pump'
    from /usr/lib/ruby/gems/1.8/gems/redcar-0.3.4.3/lib/redcar/../../bin/redcar:23

I am running Ubuntu 9.10 on x86 with Redcar 0.3.4.3 .
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.

-Peter

Comments and changes to this ticket

  • Daniel Lucraft

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

    • Tag changed from line breaks, 0.3.4.3, autoindenter, crash to 0.3.4.3, 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.

    Thanks.

  • Peter

    Peter April 28th, 2010 @ 04:23 PM

    • Tag changed from 0.3.4.3, 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

Attachments

Pages