noreply at rubyforge.org
2008-Oct-01 17:58 UTC
[wxruby-development] [ wxruby-Patches-22262 ] Wxruby2::THE_APP (NameError)
Patches item #22262, was opened at 2008-10-01 12:58
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=220&aid=22262&group_id=35
Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Bryan Ash (bryan)
Assigned to: Nobody (None)
Summary: Wxruby2::THE_APP (NameError)
Initial Comment:
Running a Rake::TestTask on my application using the x86-mswin32-60 gem for
version 1.9.8 I get the following trace:
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:276:in
`load_missing_constant'': uninitialized constant Wxruby2::THE_APP
(NameError)
from
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:468:in
`const_missing''
from
c:/ruby/lib/ruby/gems/1.8/gems/wxruby-1.9.8-x86-mingw32/lib/wx.rb:50
from
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake/rake_test_loader.rb:5
My application works like a champ, but the tests throw this error.
I found that wx.rb has a new handler for Kernel::at_exit that makes a call to
Wx::THE_APP.on_exit.
The attached patch adds an additional guard to check that Wx::THE_APP is
defined? before using it.
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=220&aid=22262&group_id=35