Does engines work with edge rails?


#1

I’m just joining the list, so bear with me if this has been asked
before.

I have an application running on edge rails that I attempted to add
the login engine to. Unfortunately, however, I received a stack
level too deep error when starting or using my app on the console:

./script/…/config/…/vendor/rails/activerecord/lib/…/…/
activesupport/lib/active_support/dependencies.rb:106:in
const_missing': stack level too deep (SystemStackError) from ./script/../config/../vendor/plugins/engines/lib/ dependencies_extensions.rb:28:inrequire_or_load’
from ./script/…/config/…/vendor/rails/activerecord/
lib/…/…/activesupport/lib/active_support/dependencies.rb:30:in
depend_on' from ./script/../config/../vendor/rails/activerecord/ lib/../../activesupport/lib/active_support/dependencies.rb:74:inrequire_dependency’
from ./script/…/config/…/vendor/rails/activerecord/
lib/…/…/activesupport/lib/active_support/dependencies.rb:74:in
require_dependency' from ./script/../config/../vendor/rails/activerecord/ lib/../../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/activerecord/ lib/../../activesupport/lib/active_support/dependencies.rb:30:independ_on’
from ./script/…/config/…/vendor/rails/activerecord/
lib/…/…/activesupport/lib/active_support/dependencies.rb:74:in
require_dependency' ... 711 levels... from ./script/../config/../vendor/rails/railties/lib/ commands/generate.rb:1:inrequire’
from ./script/…/config/…/vendor/rails/railties/lib/
commands/generate.rb:1
from script/generate:3:in `require’
from script/generate:3

I’m not sure whether this is due to some of my own custom hacks, or
if it’s just a general incompatibility between Engines and Edge
Rails. From my minimal tracing of the bug, line 28 of
dependencies_extensions.rb seems to indicate that the reference to
the Engines constant causes the dependency libs to try to load itself
over and over again.

Any ideas?

Duane J.
(canadaduane)
http://blog.inquirylabs.com/


#2

I’m a new newbie that has not tried edge yet, but a recent posting
talked about using it.

http://www.ruby-forum.com/topic/54572#new

On 2/15/06, Duane J. removed_email_address@domain.invalid wrote:

     from ./script/../config/../vendor/plugins/engines/lib/
     from ./script/../config/../vendor/rails/activerecord/
      ... 711 levels...

Rails. From my minimal tracing of the bug, line 28 of


engine-users mailing list
removed_email_address@domain.invalid
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org


Greg F.
The Norcross Group
Forensics for the 21st Century


#3

On Feb 15, 2006, at 1:07 PM, Greg F. wrote:

I’m a new newbie that has not tried edge yet, but a recent posting
talked about using it.

http://www.ruby-forum.com/topic/54572#new

Just what I was looking for! Thanks, Greg.

Duane J.
(canadaduane)
http://blog.inquirylabs.com/


#4

Hi Duane,

Yeah, if you read that post you’ll see that some stuff in Edge Rails
dependencies (quite a bit actually) has changed, so I’m looking to the
‘community’ to help me get the Engines plugin up and running in time
for the 1.1 release. Any patches/bug reports you can provide are
greatly appreciated!

Cheers

james

On 2/15/06, Duane J. removed_email_address@domain.invalid wrote:

Duane J.
(canadaduane)
http://blog.inquirylabs.com/


engine-users mailing list
removed_email_address@domain.invalid
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org

  • J *
    ~