#423 ✓invalid
Michal Hantl

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

  • huacnlee (at gmail)

    huacnlee (at gmail) December 7th, 2010 @ 01:12 AM

    I have this bug too, in version (0.9.0).

  • Michal Hantl

    Michal Hantl December 13th, 2010 @ 01:02 PM

    This one is driving me crazy.

  • delisa

    delisa December 13th, 2010 @ 01:57 PM

    Details? Platform? Stacktrace? It works for me on Ubuntu 10.10

  • Michal Hantl

    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 editor

    I 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 method select' called for nil:NilClass<br/> /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/edit_view_swt/vendor/java-mateview.rb:20:inset_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:in initialize' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/application_swt/lib/application_swt/speedbar.rb:99:innew' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/application_swt/lib/application_swt/speedbar.rb:99:in create_item_widgets' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/application_swt/lib/application_swt/speedbar.rb:97:ineach' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/application_swt/lib/application_swt/speedbar.rb:97:in create_item_widgets' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/application_swt/lib/application_swt/speedbar.rb:65:increate_widgets' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/application_swt/lib/application_swt/speedbar.rb:19:in initialize' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/application_swt/lib/application_swt/window.rb:201:innew' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/application_swt/lib/application_swt/window.rb:201:in speedbar_opened' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/application_swt/lib/application_swt/window.rb:66:into_proc' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/core/lib/core/observable.rb:103:in call' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/core/lib/core/observable.rb:103:inobservable_run_blocks' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/core/lib/core/observable.rb:103:in map' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/core/lib/core/observable.rb:103:inobservable_run_blocks' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/core/lib/core/observable.rb:96:in notify_listeners' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/application/lib/application/window.rb:240:inopen_speedbar' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/document_search/lib/document_search.rb:81:in execute' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/application/lib/application/command/executor.rb:29:inexecute' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/application/lib/application/command.rb:83:in run' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/application/lib/application/menu/item.rb:45:inselected' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/application_swt/lib/application_swt/menu.rb:133:in widgetSelected' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/swt/lib/swt/event_loop.rb:13:instart' /var/lib/gems/1.8/gems/redcar-0.9.1/plugins/core/lib/core/gui.rb:39:in start' /var/lib/gems/1.8/gems/redcar-0.9.1/lib/redcar.rb:184:inpump' /var/lib/gems/1.8/gems/redcar-0.9.1/bin/redcar:30

    My platform is also Ubuntu 10.10

  • Michal Hantl

    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

    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

    Michal Hantl December 14th, 2010 @ 09:28 AM

    Even after "git checkout *" which should revert any changes I've done, the problem persists.

  • delisa

    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

    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

    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

    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

    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

    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.

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

Pages