Ctrl+F does not show find in 0.9.1
Reported by Michal Hantl | December 5th, 2010 @ 02:09 PM
Ctrl+F does not show find in file (0.9.1)
Comments and changes to this ticket
-
delisa December 13th, 2010 @ 01:57 PM
Details? Platform? Stacktrace? It works for me on Ubuntu 10.10
-
Michal Hantl December 13th, 2010 @ 02:05 PM
This is how it works:
I do ctrl+F
expected: search shows at the bottom of the app, focus is put into the search box
instead: search doesn't show and the focus is still inside the editorI was running with --fork, so I didn't realize, there might be a stack trace.
Here it is:
Error in command DocumentSearch::SearchForwardCommand
NoMethodError: private methodselect' called for nil:NilClass<br/> /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/edit_view_swt/vendor/java-mateview.rb:20:in
set_root_scope_by_content_name' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/application_swt/lib/application_swt/speedbar/text_box_item.rb:14:ininitialize' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/application_swt/lib/application_swt/speedbar.rb:99:in
new' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/application_swt/lib/application_swt/speedbar.rb:99:increate_item_widgets' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/application_swt/lib/application_swt/speedbar.rb:97:in
each' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/application_swt/lib/application_swt/speedbar.rb:97:increate_item_widgets' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/application_swt/lib/application_swt/speedbar.rb:65:in
create_widgets' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/application_swt/lib/application_swt/speedbar.rb:19:ininitialize' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/application_swt/lib/application_swt/window.rb:201:in
new' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/application_swt/lib/application_swt/window.rb:201:inspeedbar_opened' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/application_swt/lib/application_swt/window.rb:66:in
to_proc' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/core/lib/core/observable.rb:103:incall' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/core/lib/core/observable.rb:103:in
observable_run_blocks' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/core/lib/core/observable.rb:103:inmap' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/core/lib/core/observable.rb:103:in
observable_run_blocks' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/core/lib/core/observable.rb:96:innotify_listeners' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/application/lib/application/window.rb:240:in
open_speedbar' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/document_search/lib/document_search.rb:81:inexecute' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/application/lib/application/command/executor.rb:29:in
execute' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/application/lib/application/command.rb:83:inrun' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/application/lib/application/menu/item.rb:45:in
selected' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/application_swt/lib/application_swt/menu.rb:133:inwidgetSelected' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/swt/lib/swt/event_loop.rb:13:in
start' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/core/lib/core/gui.rb:39:instart' /var/lib/gems/1.8/gems/redcar-0.9.1/lib/redcar.rb:184:in
pump' /var/lib/gems/1.8/gems/redcar-0.9.1/bin/redcar:30My platform is also Ubuntu 10.10
-
Michal Hantl December 14th, 2010 @ 09:06 AM
My Redcar 0.9.1 is unusable due to this Ctrl+F issue.
So I checked out danlucraft/redcar and that doesn't work either.
On the other hand, kattrali/redcar's Ctrl+F works so I'm going to use that for a while. -
Michal Hantl December 14th, 2010 @ 09:24 AM
The second time I launched Redcar from kattrali/redcar Ctrl+F doesn't work again.
Looking at /home/michal/dev/kattrali/redcar/plugins/edit_view_swt/vendor/java-mateview.rb
ps = ruby.grammars.first.patterns dps = ps.select {|pt| pt.is_a?(Java::ComRedcareditorMate::DoublePattern) }
I think I found the problem. I extend Redcar by copying Ruby.tmbudle into Mirah.tmbundle and change it to work for *.mirah files and such.
Since there is a lot of stuff to configure I probably "broke" something by not editing all the files/lines.
But then when I delete my Mirah.tmbundle folder, the problem persists, weird.
-
Michal Hantl December 14th, 2010 @ 09:28 AM
Even after "git checkout *" which should revert any changes I've done, the problem persists.
-
delisa December 15th, 2010 @ 03:06 AM
Hmm interesting. Does it work after deleting your TM bundle cache? (~/.redcar/cache/*) changes to loaded bundles aren't persisted until the cache is rebuilt.
-
Michal Hantl December 15th, 2010 @ 08:30 AM
Yes, I knew there had to be a cache:)
"rm ~/.redcar/cache/ -rf" and it works again.Is there a simple way to make a Mirah tmbundle by vopying Ruby tmbundle and not break Redcar?
I have working syntax checking for Mirah, so now I need to add the Mirah tmbundle somehow.
Thanks!
-
delisa December 15th, 2010 @ 12:57 PM
Would it work to add the Mirah syntax file to the Ruby bundle instead? Would that accomplish the same goal?
-
Michal Hantl December 15th, 2010 @ 01:08 PM
I have made a Mirah syntax checking plugin.
I need that to affect only Mirah files (.duby, .mirah).Can that can be accomplished by using the Ruby bundle? I don't know.
Would the Ruby syntax checker interfere?Mirah has very similar syntax and using Ruby syntax for that is ok.
-
delisa December 15th, 2010 @ 02:03 PM
A redcar plugin for checking mirah syntax? is this on github!?
Including the Mirah syntax file in the bundle should work in this case. I can try it out if you put the file up somewhere. -
delisa December 16th, 2010 @ 04:25 AM
- State changed from new to invalid
Seems to be resolved as a bundle issue. Here's prepackaged Mirah bundle if that helps: https://github.com/kattrali/Mirah.tmbundle
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.