Forum: Ruby on Rails Having trouble getting Edge Rails running

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Cb21818896b28255ccebd05e257ac944?d=identicon&s=25 Brian Donahue (madscene)
on 2006-02-26 07:11
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:in
`const_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:in
`depend_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:in
`const_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:in
`depend_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:in
`require'
        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!
05d703f649ef1d07e78d7b479fb4c4ac?d=identicon&s=25 James Adam (Guest)
on 2006-02-26 08:33
(Received via mailing list)
http://rails-engines.org/wiki/pages/Using+Engines+...

- james

On 2/26/06, Brian Donahue <stuff@pigeonmoon.com> wrote:
> `const_missing'
> 
./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:108:in
>          ... 1307 levels...
>
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>


--
* J *
  ~
Cb21818896b28255ccebd05e257ac944?d=identicon&s=25 Brian Donahue (madscene)
on 2006-02-26 16:56
James Adam wrote:
> http://rails-engines.org/wiki/pages/Using+Engines+...


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:in
`require'
        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:in
`load_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:in
`silence_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:in
`require'
        from
./script/../config/../vendor/rails/railties/lib/commands/server.rb:28
        from script/server:3
05d703f649ef1d07e78d7b479fb4c4ac?d=identicon&s=25 James Adam (Guest)
on 2006-02-26 18:41
(Received via mailing list)
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 Donahue <stuff@pigeonmoon.com> wrote:
>
>         from
>         from
>         from script/server:3
>
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>


--
* J *
  ~
Cb21818896b28255ccebd05e257ac944?d=identicon&s=25 Brian Donahue (madscene)
on 2006-02-26 19:49
James Adam 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:in `require__'
/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:in
`require'
/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:in `require'
/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:in
`load_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:in
`silence_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:in
`load_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:in
`load_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:in
`send'
/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:in `require__'
/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:in
`call'
/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:in `each'
/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:in `invoke'
/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:in `invoke'
/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:in `each'
/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:in `each'
/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:in `invoke'
/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:in `invoke'
/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:in `each'
/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:in `each'
/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:in `invoke'
/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:in `invoke'
/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:in `each'
/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:in `load'
/usr/bin/rake:18
Cb21818896b28255ccebd05e257ac944?d=identicon&s=25 Brian Donahue (madscene)
on 2006-02-26 23:36
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!
Cb21818896b28255ccebd05e257ac944?d=identicon&s=25 Brian Donahue (madscene)
on 2006-03-05 05:04
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 <controller not set>#<action not set>

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:in
`prepare_application'
./script/../config/../vendor/rails/railties/lib/dispatcher.rb:37:in
`dispatch'
./script/../config/../vendor/rails/railties/lib/webrick_server.rb:115:in
`handle_dispatch'
./script/../config/../vendor/rails/railties/lib/webrick_server.rb:81:in
`service'
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'
./script/../config/../vendor/rails/railties/lib/webrick_server.rb:67:in
`dispatch'
./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:in
`require'
./script/../config/../vendor/rails/railties/lib/commands/server.rb:29
script/server:3


Does anyone have any idea what I'm missing?

Thanks!

-Brian
This topic is locked and can not be replied to.