#196 ✓resolved
Roger

ClassCastException

Reported by Roger | March 23rd, 2010 @ 02:56 AM

In the attached file, if you go to line 26 ("\begin{enumerate}")

hit enter (inserts a line below that one)
type in "\item"
hit enter

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'
         ... 27 levels...
        from C:/Ruby19/lib/ruby/gems/1.9.1/gems/redcar-0.3.4.3/plugins/core/lib/core/gui.rb:39:in `start'
        from C:/Ruby19/lib/ruby/gems/1.9.1/gems/redcar-0.3.4.3/lib/redcar.rb:112:in `pump'
        from C:/Ruby19/lib/ruby/gems/1.9.1/gems/redcar-0.3.4.3/lib/redcar/../../bin/redcar:23

Comments and changes to this ticket

  • Roger

    Roger March 23rd, 2010 @ 03:01 AM

    I also noticed that switching to "NAnt Build File" on the same file resulted in

    *** Error in speedbar
    NativeException: java.lang.ArrayIndexOutOfBoundsException: null
    C:/Ruby19/lib/ruby/gems/1.9.1/gems/redcar-0.3.4.3/plugins/application/lib/application/sensitivity.rb:65:in `model_grammar_changed'
    C:/Ruby19/lib/ruby/gems/1.9.1/gems/redcar-0.3.4.3/plugins/edit_view_swt/lib/edit_view_swt.rb:89:in `to_proc'
    C:/Ruby19/lib/ruby/gems/1.9.1/gems/redcar-0.3.4.3/plugins/core/lib/core/observable.rb:103:in `call'
    C:/Ruby19/lib/ruby/gems/1.9.1/gems/redcar-0.3.4.3/plugins/core/lib/core/observable.rb:103:in `run_blocks'
    C:/Ruby19/lib/ruby/gems/1.9.1/gems/redcar-0.3.4.3/plugins/core/lib/core/observable.rb:103:in `each'
    C:/Ruby19/lib/ruby/gems/1.9.1/gems/redcar-0.3.4.3/plugins/core/lib/core/observable.rb:103:in `run_blocks'
    C:/Ruby19/lib/ruby/gems/1.9.1/gems/redcar-0.3.4.3/plugins/core/lib/core/observable.rb:96:in `notify_listeners'
    C:/Ruby19/lib/ruby/gems/1.9.1/gems/redcar-0.3.4.3/plugins/edit_view/lib/edit_view.rb:238:in `grammar='
    C:/Ruby19/lib/ruby/gems/1.9.1/gems/redcar-0.3.4.3/plugins/edit_view/lib/edit_view/info_speedbar.rb:11
    C:/Ruby19/lib/ruby/gems/1.9.1/gems/redcar-0.3.4.3/plugins/application_swt/lib/application_swt/speedbar.rb:149:in `instance_exec'
    C:/Ruby19/lib/ruby/gems/1.9.1/gems/redcar-0.3.4.3/plugins/application_swt/lib/application_swt/speedbar.rb:149:in `create_item_widgets'
    C:/Ruby19/lib/ruby/gems/1.9.1/gems/redcar-0.3.4.3/plugins/application_swt/lib/application_swt/speedbar.rb:258:in `rescue_speedbar_errors'
    C:/Ruby19/lib/ruby/gems/1.9.1/gems/redcar-0.3.4.3/plugins/application_swt/lib/application_swt/speedbar.rb:148:in `create_item_widgets'
    C:/Ruby19/lib/ruby/gems/1.9.1/gems/redcar-0.3.4.3/plugins/core/lib/core/reentry_helpers.rb:9:in `ignore'
    C:/Ruby19/lib/ruby/gems/1.9.1/gems/redcar-0.3.4.3/plugins/application_swt/lib/application_swt/speedbar.rb:145:in `create_item_widgets'
    C:/Ruby19/lib/ruby/gems/1.9.1/gems/redcar-0.3.4.3/plugins/application_swt/lib/application_swt/event_loop.rb:14:in `start'
    C:/Ruby19/lib/ruby/gems/1.9.1/gems/redcar-0.3.4.3/plugins/core/lib/core/gui.rb:39:in `start'
    C:/Ruby19/lib/ruby/gems/1.9.1/gems/redcar-0.3.4.3/lib/redcar.rb:112:in `pump'
    C:/Ruby19/lib/ruby/gems/1.9.1/gems/redcar-0.3.4.3/lib/redcar/../../bin/redcar:23
    Lost application focus
    

    Though I wasn't sure if I should report that as a bug or not...

    -rp

  • Daniel Lucraft

    Daniel Lucraft April 2nd, 2010 @ 10:02 AM

    • State changed from “new” to “resolved”

    These both seem to be fixed. Reopen if not.

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