#199 ✓resolved

“Crash” on OS X when quitting and no windows are open.

Reported by YoNoSoyTu | April 6th, 2010 @ 11:36 PM


  1. Start Redcar from a command line and close all the windows using the red button.
  2. The menubar should show Redcar, but no other menus.
  3. Press Cmd+Q to quit Redcar application.
  4. The terminal spits the following error:

    /Users/daniel/programacion/redcar/plugins/application/lib/application/command/executor.rb:9:in `current_environment': undefined method `focussed_notebook' for nil:NilClass (NoMethodError)
    from /Users/daniel/programacion/redcar/plugins/application/lib/application/command/executor.rb:20:in `execute'
    from /Users/daniel/programacion/redcar/plugins/application/lib/application/command.rb:79:in `run'
    from /Users/daniel/programacion/redcar/plugins/redcar/redcar.rb:845:in `application_close'
    from /Users/daniel/programacion/redcar/plugins/application/lib/application/event_spewer.rb:29:in `create'
    from /Users/daniel/programacion/redcar/plugins/application/lib/application/event_spewer.rb:25:in `each'
    from /Users/daniel/programacion/redcar/plugins/application/lib/application/event_spewer.rb:25:in `detect'
    from /Users/daniel/programacion/redcar/plugins/application/lib/application/event_spewer.rb:25:in `create'
    from /Users/daniel/programacion/redcar/plugins/application_swt/lib/application_swt.rb:136:in `handleEvent'
    from /Users/daniel/programacion/redcar/plugins/application_swt/lib/application_swt/event_loop.rb:14:in `start'
    from /Users/daniel/programacion/redcar/plugins/core/lib/core/gui.rb:39:in `start'
    from /Users/daniel/programacion/redcar/lib/redcar.rb:112:in `pump'
    from /Users/daniel/programacion/redcar/lib/redcar/../../bin/redcar:23

Comments and changes to this ticket

  • Daniel Lucraft

    Daniel Lucraft April 7th, 2010 @ 08:53 AM

    • State changed from “new” to “open”

    Thanks for the report.

  • agmcleod

    agmcleod April 12th, 2010 @ 06:29 PM

    Just trying to replicate this issue on my mac.

    I boot up redcar through the terminal. I have no other programs running. It currently has the tree open from the last directory I had viewed. I don't have any tabs or anything else open in redcar. I hit Cmd+Q, and it quits as expected. No errors.

    Could you possibly explain in a bit more detail of what windows/menus you are closing? Just want to make sure I have this right. I'm using snow leopard, so i don't know if that might be the difference.

  • YoNoSoyTu

    YoNoSoyTu April 12th, 2010 @ 08:07 PM

    Before hitting Cmd+Q, close the window using the red button in the left upper corner. Then hit Cmd+Q and you will see the error.

    It's just probably that RedCar expects a window to be open, and it tries to access this nil window.

  • agmcleod

    agmcleod April 12th, 2010 @ 08:24 PM

    Yeah I tried that as well, and it closes fine with no error. I know when i close the window, I still see redcar as the focus. If I click anywhere else though it obviously focuses on that.

    Looking at your error, I also tried it with opening two files, then a second notebook, and moving one of the tabs over to the notebook. Closed the window, hit cmd+Q still no error.

    Did you install it via ruby gems, or via source? Is the version that you are running the most current? (0.3.4). Whats your currently installed version of jruby? Just these little things here might be what's causing the issue. Im not sure if you want to try downloading the most recent source and see if it happens on your computer again.

    I don't like this response, but I just cant seem to replicate the issue.

  • YoNoSoyTu

    YoNoSoyTu April 12th, 2010 @ 08:40 PM

    OK. I have pulled the latest sources and it did not happen again (and the menu stays up as expected).

    Thank you very much, and sorry for the inconvenience.

    You can close this ticket.

  • Daniel Lucraft

    Daniel Lucraft April 16th, 2010 @ 08:52 AM

    • State changed from “open” to “resolved”

    Thanks, Yo!

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