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
-
Roger February 4th, 2010 @ 06:00 PM
- no changes were found...
-
Daniel Lucraft February 6th, 2010 @ 06:41 AM
- State changed from open to resolved
We'll review searching soon. In the meantime I'm going to close this because it looks a lot like a bug. Why don't you put it on the github wishlist? It actually be nice to keep this Lighthouse just for bugs.
-
Roger February 6th, 2010 @ 08:51 PM
I implemented wrap search (somewhat poorly, but implemented)
http://github.com/rdp/redcar/commit/629afca22b18fc96ac4a9968dc2c3c7...
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.
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.