#141 ✓resolved
Roger

feature request: searching when not found => wrap

Reported by Roger | February 4th, 2010 @ 05:59 PM

I was going to title this "searching when it it not found throws a nasty looking exception"

  
E, [2010-02-04T10:57:09.781000 [#14479](/projects/25090/tickets/14479 "Ticket #14479")] ERROR -- : * Error in command Redcar::Top::FindNextRegex  
E, [2010-02-04T10:57:09.787000 [#14479](/projects/25090/tickets/14479 "Ticket #14479")] ERROR -- :   org.eclipse.jface.text.BadLocationException: null  
E, [2010-02-04T10:57:09.788000 [#14479](/projects/25090/tickets/14479 "Ticket #14479")] ERROR -- :   org/eclipse/jface/text/TreeLineTracker.java:1061:in `fail'  
E, [2010-02-04T10:57:09.788000 [#14479](/projects/25090/tickets/14479 "Ticket #14479")] ERROR -- :   org/eclipse/jface/text/TreeLineTracker.java:340:in `offsetByLine'  
E, [2010-02-04T10:57:09.789000 [#14479](/projects/25090/tickets/14479 "Ticket #14479")] ERROR -- :   org/eclipse/jface/text/TreeLineTracker.java:1128:in `getLineOffset'  
E, [2010-02-04T10:57:09.790000 [#14479](/projects/25090/tickets/14479 "Ticket #14479")] ERROR -- :   org/eclipse/jface/text/AbstractLineTracker.java:169:in `getLineOffset'  
E, [2010-02-04T10:57:09.790000 [#14479](/projects/25090/tickets/14479 "Ticket #14479")] ERROR -- :   org/eclipse/jface/text/AbstractDocument.java:888:in `getLineOffset'  
E, [2010-02-04T10:57:09.791000 [#14479](/projects/25090/tickets/14479 "Ticket #14479")] ERROR -- :   /home/rdp/dev/redcar/plugins/edit_view/lib/edit_view/document.rb:164:in `offset_at_line'  
E, [2010-02-04T10:57:09.791000 [#14479](/projects/25090/tickets/14479 "Ticket #14479")] ERROR -- :   /home/rdp/dev/redcar/plugins/edit_view/lib/edit_view/document.rb:201:in `offset_at_line'  
E, [2010-02-04T10:57:09.792000 [#14479](/projects/25090/tickets/14479 "Ticket #14479")] ERROR -- :   /home/rdp/dev/redcar/plugins/edit_view/lib/edit_view/document.rb:274:in `get_line'  
E, [2010-02-04T10:57:09.792000 [#14479](/projects/25090/tickets/14479 "Ticket #14479")] ERROR -- :   /home/rdp/dev/redcar/plugins/redcar/redcar.rb:494:in `execute'  
E, [2010-02-04T10:57:09.794000 [#14479](/projects/25090/tickets/14479 "Ticket #14479")] ERROR -- :   /home/rdp/dev/redcar/plugins/application/lib/application/command/executor.rb:22:in `execute'  
E, [2010-02-04T10:57:09.794000 [#14479](/projects/25090/tickets/14479 "Ticket #14479")] ERROR -- :   /home/rdp/dev/redcar/plugins/application/lib/application/command.rb:57:in `run'  
E, [2010-02-04T10:57:09.795000 [#14479](/projects/25090/tickets/14479 "Ticket #14479")] ERROR -- :   /home/rdp/dev/redcar/plugins/redcar/redcar.rb:437  
E, [2010-02-04T10:57:09.795000 [#14479](/projects/25090/tickets/14479 "Ticket #14479")] ERROR -- :   /home/rdp/dev/redcar/plugins/application_swt/lib/application_swt/speedbar.rb:172:in `instance_exec'  
E, [2010-02-04T10:57:09.796000 [#14479](/projects/25090/tickets/14479 "Ticket #14479")] ERROR -- :   /home/rdp/dev/redcar/plugins/application_swt/lib/application_swt/speedbar.rb:172:in `key_press'  
E, [2010-02-04T10:57:09.801000 [#14479](/projects/25090/tickets/14479 "Ticket #14479")] ERROR -- :   /home/rdp/dev/redcar/plugins/application_swt/lib/application_swt/speedbar.rb:168:in `each'  
E, [2010-02-04T10:57:09.802000 [#14479](/projects/25090/tickets/14479 "Ticket #14479")] ERROR -- :   /home/rdp/dev/redcar/plugins/application_swt/lib/application_swt/speedbar.rb:168:in `key_press'  
E, [2010-02-04T10:57:09.802000 [#14479](/projects/25090/tickets/14479 "Ticket #14479")] ERROR -- :   /home/rdp/dev/redcar/plugins/application_swt/lib/application_swt/speedbar.rb:134:in `keyReleased'  
E, [2010-02-04T10:57:09.804000 [#14479](/projects/25090/tickets/14479 "Ticket #14479")] ERROR -- :   /home/rdp/dev/redcar/plugins/application_swt/lib/application_swt/event_loop.rb:14:in `start'  
E, [2010-02-04T10:57:09.804000 [#14479](/projects/25090/tickets/14479 "Ticket #14479")] ERROR -- :   /home/rdp/dev/redcar/plugins/core/lib/core/gui.rb:39:in `start'  
E, [2010-02-04T10:57:09.810000 [#14479](/projects/25090/tickets/14479 "Ticket #14479")] ERROR -- :   ./bin/../lib/redcar.rb:97:in `pump'  
E, [2010-02-04T10:57:09.826000 [#14479](/projects/25090/tickets/14479 "Ticket #14479")] ERROR -- :   bin/redcar:14



but then I realized that a wrapping search would probably handle this case, as well, and that's what "should actually be done."  
thanks.  
-rp

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

Tags

Pages