What are Stack Frames?

installed 1.2.1, but in my app that matters, server
won’t start (will start with other apps):
** Starting Rails with development environment …

C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:377:in
new_constants_in': You have a nil object when you didn't expect it! (NoMethodError) You might have expected an instance of Array. The error occurred while evaluating nil.empty? from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:203:inload_file’
from
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:95:in
require_or_load' from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:61:independ_on’
from
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:443:in
require_dependency' from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.1/lib/action_controller/helpers.rb:67:inhelper’
from
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.1/lib/action_controller/helpers.rb:58:in
helper' from C:/InstantRails/rails_apps/pazap/config/../vendor/plugins/debug-view-helper/lib/view_debug_helper.rb:94 from C:/InstantRails/rails_apps/pazap/config/../vendor/plugins/debug-view-helper/lib/view_debug_helper.rb:93 ... 20 levels... from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel/command.rb:199:inrun’
from
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/bin/mongrel_rails:235
from C:\InstantRails\ruby\bin\mongrel_rails:18
from -e:3
#############################################################################

Looks like there are new functions in the dependencies.rb file, the this
one seems to be giving me the problem:

Remove the stack frames that we added.

if defined?(watch_frames) && ! watch_frames.empty?
  frame_ids = watch_frames.collect(&:object_id)
  constant_watch_stack.delete_if do |watch_frame|
    frame_ids.include? watch_frame.object_id
  end

What are stack frames?

I’m getting exactly the same error as you after upgrading one of my
apps. One is fine but the other throws the same error as above.

Cool… i don’t feel so bad : P
We wait patiently for someone from core…

unknown wrote:

I’m getting exactly the same error as you after upgrading one of my
apps. One is fine but the other throws the same error as above.

I notice you are running Instant Rails. I’m running Locomotive on OS X

  • not sure if this is relevant.

Dominic S. wrote:

The error occurred while evaluating nil.empty? from
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:203:in `load_file’

I had the same problem - it was caused by the plugin selenium_on_rails.
Check
whether your plugins are compatible with Rails 1.2

Hey Dominic

How you going with this issue? I’m still stuck :frowning:

Richard

Yep - just removed a couple of plugins that weren’t needed for
production, and now the app starts fine.

The issue was with either the ar_fixtures and/or svn_tools and/or
debug_view_helper plugin(s).

Thanks for pointing me in the right direction.

I believe there is an issue with debug_view_helper.

I added:

ActionView::Base.send :include, ViewDebugHelper

to init.rb

and removed:

ActionController::Base.class_eval do
helper :view_debug
end

from view_debug_helper.rb

It seems to work.

-Craig

On Jan 25, 4:19 am, “Craig Steinberger” [email protected] wrote:

I believe there is an issue with debug_view_helper.

I added:

ActionView::Base.send :include, ViewDebugHelper

to init.rb[…]

Ah, nice detective work - thanks Craig.