Having trouble getting Edge Rails running


#1

Hello,

I’ve been playing with this for hours, and got through a couple glitches
(e.g. updating to Ruby 1.8.4) but this one is well beyond my N00b
skills. When trying to run script/server I get:

./script/…/config/…/vendor/rails/activesupport/lib/active_support/dependencies.rb:87:in
as_load_path': stack level too deep (SystemStackError) from ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:106:inconst_missing’
from
./script/…/config/…/vendor/plugins/engines/lib/dependencies_extensions.rb:28:in
require_or_load' from ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:30:independ_on’
from
./script/…/config/…/vendor/rails/activesupport/lib/active_support/dependencies.rb:74:in
require_dependency' from ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:108:inconst_missing’
from
./script/…/config/…/vendor/plugins/engines/lib/dependencies_extensions.rb:28:in
require_or_load' from ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:30:independ_on’
from
./script/…/config/…/vendor/rails/activesupport/lib/active_support/dependencies.rb:74:in
require_dependency' ... 1307 levels... from ./script/../config/../vendor/rails/railties/lib/commands/servers/webrick.rb:52 from ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:153:inrequire’
from
./script/…/config/…/vendor/rails/railties/lib/commands/server.rb:28
from script/server:3

Can anyone point me in the right direction to get this working? Look
forward to seeing your responses tomorrow - I gotta get to bed!


#2

http://rails-engines.org/wiki/pages/Using+Engines+with+Edge+Rails

  • james

On 2/26/06, Brian D. removed_email_address@domain.invalid wrote:

`const_missing’
./script/…/config/…/vendor/rails/activesupport/lib/active_support/dependencies.rb:108:in
… 1307 levels…

removed_email_address@domain.invalid
http://lists.rubyonrails.org/mailman/listinfo/rails

  • J *
    ~

#3

Did you include the line

Engines.config :edge, true

before any of the engine configuration in environment.rb? If you
update your copy of the engines plugin, the README should now be a lot
clearer.

  • james

On 2/26/06, Brian D. removed_email_address@domain.invalid wrote:

    from
    from
    from script/server:3


Posted via http://www.ruby-forum.com/.


Rails mailing list
removed_email_address@domain.invalid
http://lists.rubyonrails.org/mailman/listinfo/rails

  • J *
    ~

#4

James A. wrote:

http://rails-engines.org/wiki/pages/Using+Engines+with+Edge+Rails

Thanks James,

That got me past that issue. Now I am having another. I found a couple
references to it in this forum but they all basically point me back to
the instructions in the link you gave. Any idea why this problem is
occurring?

./script/…/config/…/vendor/rails/activesupport/lib/active_support/dependencies.rb:129:in
const_missing': uninitialized constant LoadingModule (NameError) from ./script/../config/../vendor/plugins/engines/lib/engines/dependencies_extensions.rb:150 from ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:153:inrequire’
from
./script/…/config/…/vendor/plugins/engines/lib/engines.rb:29
from
./script/…/config/…/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in
require' from script/../config/../vendor/plugins/engines/init.rb:25:inload_plugin’
from
./script/…/config/…/vendor/rails/railties/lib/initializer.rb:340:in
load_plugin' from ./script/../config/../vendor/rails/activesupport/lib/active_support/core_ext/kernel.rb:27:insilence_warnings’
from
./script/…/config/…/vendor/rails/railties/lib/initializer.rb:340:in
load_plugin' ... 6 levels... from ./script/../config/../vendor/rails/railties/lib/commands/servers/webrick.rb:52 from ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:153:inrequire’
from
./script/…/config/…/vendor/rails/railties/lib/commands/server.rb:28
from script/server:3


#5

James A. wrote:

Did you include the line

Engines.config :edge, true

Yep. Here is my environment.rb config code:

#############################

Include your application configuration below

Engines.config :edge, true

module LoginEngine
config :salt, “mysalt”
config :app_name, “my_app_name”
config :confirm_account, false
end

ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS.update(:my_format
=> ‘%a %m/%d/%y %l:%M %p’)
ActiveSupport::CoreExtensions::date::Conversions::DATE_FORMATS.update(:my_format
=> ‘%m/%d/%y’)

Engines.start :login

#############################

I am reading through the README, but so far nothing is jumping out. rake
tasks for the Engines plugin are failing as well, such as:

$ rake plugindoc --trace
(in /Users/brian/development/serenity)
** Invoke plugindoc (first_time)
** Invoke acts_as_taggable_plugindoc (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
uninitialized constant LoadingModule
/Users/brian/development/serenity/config/…/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:129:in
const_missing' /Users/brian/development/serenity/config/../vendor/plugins/engines/lib/engines/dependencies_extensions.rb:150 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:inrequire__’
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in require' /Users/brian/development/serenity/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:153:inrequire’
/Users/brian/development/serenity/config/…/vendor/plugins/engines/lib/engines.rb:29
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in require__' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:inrequire’
/Users/brian/development/serenity/config/…/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:153:in
require' /Users/brian/development/serenity/config/../vendor/plugins/engines/init.rb:25:inload_plugin’
/Users/brian/development/serenity/config/…/vendor/rails/railties/lib/initializer.rb:340:in
load_plugin' /Users/brian/development/serenity/config/../vendor/rails/railties/lib/initializer.rb:340:insilence_warnings’
/Users/brian/development/serenity/config/…/vendor/rails/railties/lib/initializer.rb:340:in
load_plugin' /Users/brian/development/serenity/config/../vendor/rails/railties/lib/initializer.rb:150:inload_plugins’
/Users/brian/development/serenity/config/…/vendor/rails/railties/lib/initializer.rb:150:in
each' /Users/brian/development/serenity/config/../vendor/rails/railties/lib/initializer.rb:150:inload_plugins’
/Users/brian/development/serenity/config/…/vendor/rails/railties/lib/initializer.rb:101:in
process' /Users/brian/development/serenity/config/../vendor/rails/railties/lib/initializer.rb:42:insend’
/Users/brian/development/serenity/config/…/vendor/rails/railties/lib/initializer.rb:42:in
run' /Users/brian/development/serenity/config/../config/environment.rb:10 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:inrequire__’
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in require' /Users/brian/development/serenity/config/../vendor/rails/railties/lib/tasks/misc.rake:9 /Users/brian/development/serenity/config/../vendor/rails/railties/lib/tasks/misc.rake:8:incall’
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:232:in execute' /usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:232:ineach’
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:232:in execute' /usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:202:ininvoke’
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:195:in synchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:195:ininvoke’
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:209:in
invoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:208:ineach’
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:844:in send' /usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:844:ineach’
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:208:in
invoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:201:ininvoke’
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:195:in synchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:195:ininvoke’
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:209:in
invoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:208:ineach’
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:844:in send' /usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:844:ineach’
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:208:in
invoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:201:ininvoke’
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:195:in synchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:195:ininvoke’
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:1719:in run' /usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:1719:ineach’
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:1719:in run' /usr/lib/ruby/gems/1.8/gems/rake-0.7.0/bin/rake:7 /usr/bin/rake:18:inload’
/usr/bin/rake:18


#6

Thanks to James, I got this running. Basically, he figured out that you
have to put the following at the very TOP of your environment.rb:

module Engines
CONFIG = {:edge => true}
end

He is going to update the README as well.

Thanks James!


#7

A week later I am still struggling with this (OK, well I didn’t really
play with it all week)… My first problem is I am new to OS X, and
weird things keep happening like mysql, ruby gems, and other things lose
their “bindings” (at least that’s what I think is happening) and I have
to re-install things. But that’s another story.

So anyway, I got everything re-installed, got my project back to a
working state, pre-Edge Rails. Then I started to slowly update again.
Added the svn:external for edge rails and the engines trunk (my app uses
login_engine). I updated the dispatch.* files, and added the

module Engines
CONFIG = {:edge => true}
end

to the top of my environment.rb. WEBrick boots up fine, but I get the
following in my browser:

NoMethodError in #

undefined method `verify_active_connections!’ for
ActiveRecord::Base:Class

RAILS_ROOT: script/…/config/…
Application Trace | Framework Trace | Full Trace

/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:991:in
method_missing' ./script/../config/../vendor/rails/railties/lib/dispatcher.rb:70:inprepare_application’
./script/…/config/…/vendor/rails/railties/lib/dispatcher.rb:37:in
dispatch' ./script/../config/../vendor/rails/railties/lib/webrick_server.rb:115:inhandle_dispatch’
./script/…/config/…/vendor/rails/railties/lib/webrick_server.rb:81:in
service' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:inservice’
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in run' /usr/local/lib/ruby/1.8/webrick/server.rb:173:instart_thread’
/usr/local/lib/ruby/1.8/webrick/server.rb:162:in start_thread' /usr/local/lib/ruby/1.8/webrick/server.rb:95:instart’
/usr/local/lib/ruby/1.8/webrick/server.rb:92:in start' /usr/local/lib/ruby/1.8/webrick/server.rb:23:instart’
/usr/local/lib/ruby/1.8/webrick/server.rb:82:in start' ./script/../config/../vendor/rails/railties/lib/webrick_server.rb:67:indispatch’
./script/…/config/…/vendor/rails/railties/lib/commands/servers/webrick.rb:59
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
require' ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:149:inrequire’
./script/…/config/…/vendor/rails/railties/lib/commands/server.rb:29
script/server:3

Does anyone have any idea what I’m missing?

Thanks!

-Brian