Forum: Rails Engines Does engines work with edge rails?

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.
Duane J. (Guest)
on 2006-02-15 21:48
(Received via mailing list)
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:in `require_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:in
`require_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:in
`const_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:in
`depend_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:in `require'
         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/
Greg F. (Guest)
on 2006-02-15 22:10
(Received via mailing list)
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...
>


--
Greg F.
The Norcross Group
Forensics for the 21st Century
Duane J. (Guest)
on 2006-02-15 22:31
(Received via mailing list)
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/
James A. (Guest)
on 2006-02-16 00:02
(Received via mailing list)
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...
>


--
* J *
  ~
This topic is locked and can not be replied to.