On Thu, Mar 3, 2011 at 03:54, Pat Allan <[email protected]> wrote:

> It really depends on what that plugin's doing... also: which versions of
> Rails and the plugin are you using?
>
Rails 2.1.0 and the plugin version seems to be the one at
https://github.com/janmejay/nested_has_many_through

>
> I can't guarantee TS will work with every other library out there, mind you
> - there's just too many!
>
I understand :) I'll try to make it work with that plugin!

>
> --
> Pat
>
> On 03/03/2011, at 5:48 PM, Bráulio Bhavamitra wrote:
>
> > You've got it! Thanx :)
> >
> > But is that a bug, a incompatibility with that plugin?
> >
> > profiles.google.com/brauliobo
> > Bráulio Bhavamitra Barros de Oliveira
> >
> >
> >
> > On Thu, Mar 3, 2011 at 03:33, Pat Allan <[email protected]>
> wrote:
> > Hi Bráulio
> >
> > Looking at the stack trace, I wonder if it's something related to the
> nested_has_many_through plugin, which I've not seen before. If possible, can
> you try removing that plugin and see if the index works fine with your full
> set of fields?
> >
> > Cheers
> >
> > --
> > Pat
> >
> > On 03/03/2011, at 12:38 AM, Bráulio Bhavamitra wrote:
> >
> > > When generating the config file I get the "stack level too depp" error.
> The error don't happen without the use of associations, but happen with any
> of my models associations.
> > > This led me to think that there is an installation problem somewhere,
> not a code problem.
> > > I've tried to increase the stack with ulimit and that didn't work.
> > > I used PostgreSQL.
> > >
> > > Model's associations and indexes
> > > class Product < ActiveRecord::Base
> > >   belongs_to :enterprise
> > >   belongs_to :product_category
> > >   has_many :product_categorizations
> > >   has_many :product_qualifiers
> > >   has_many :qualifiers, :through => :product_qualifiers
> > >   has_many :inputs, :dependent => :destroy, :order => 'position'
> > >
> > >   define_index do
> > >     indexes :name
> > >     indexes description
> > >     indexes enterprise.name, :as => :enterprise_name
> > >     indexes enterprise.description, :as => :enterprise_description
> > >     indexes product_categorizations.product_category.name, :as =>
> :category_name
> > >     indexes product_qualifiers.qualifier.name, :as => :qualifier_name
> > >     indexes product_qualifiers.certifier.name, :as => :certifier_name
> > >     indexes product_qualifiers.certifier.description, :as =>
> :certifier_description
> > >     indexes product_qualifiers.certifier.link, :as => :certifier_link
> > >
> > >     set_property :delta => true
> > >   end
> > >
> > >
> > > Trace
> > > bhavamitra@bhavalaptop:noosfero$ rake ts:conf --trace
> > > (in /home/bhavamitra/Projects/noosfero)
> > > ** Invoke ts:conf (first_time)
> > > ** Invoke thinking_sphinx:configure (first_time)
> > > ** Invoke thinking_sphinx:app_env (first_time)
> > > ** Execute thinking_sphinx:app_env
> > > ** Invoke environment (first_time)
> > > ** Execute environment
> > > ** Execute thinking_sphinx:configure
> > > Generating Configuration to
> /home/bhavamitra/Projects/noosfero/config/development.sphinx.conf
> > > rake aborted!
> > > stack level too deep
> > >
> /home/bhavamitra/Projects/noosfero/vendor/plugins/nested_has_many_through/lib/nested_has_many_through.rb:8:in
> `check_validity_without_nested_has_many_through!'
> > >
> /home/bhavamitra/Projects/noosfero/vendor/plugins/nested_has_many_through/lib/nested_has_many_through.rb:8:in
> `check_validity!'
> > >
> /home/bhavamitra/.gem/ruby/1.8/gems/activerecord-2.1.0/lib/active_record/associations.rb:1781:in
> `initialize'
> > >
> /home/bhavamitra/Projects/noosfero/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/association.rb:64:in
> `new'
> > >
> /home/bhavamitra/Projects/noosfero/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/association.rb:64:in
> `join_to'
> > >
> /home/bhavamitra/Projects/noosfero/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/property.rb:23:in
> `initialize'
> > >
> /home/bhavamitra/Projects/noosfero/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/property.rb:22:in
> `each'
> > >
> /home/bhavamitra/Projects/noosfero/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/property.rb:22:in
> `initialize'
> > >
> /home/bhavamitra/Projects/noosfero/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/property.rb:21:in
> `each'
> > >
> /home/bhavamitra/Projects/noosfero/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/property.rb:21:in
> `initialize'
> > >
> /home/bhavamitra/Projects/noosfero/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/field.rb:56:in
> `initialize'
> > >
> /home/bhavamitra/Projects/noosfero/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/index/builder.rb:104:in
> `new'
> > >
> /home/bhavamitra/Projects/noosfero/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/index/builder.rb:104:in
> `indexes'
> > >
> /home/bhavamitra/Projects/noosfero/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/index/builder.rb:103:in
> `each'
> > >
> /home/bhavamitra/Projects/noosfero/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/index/builder.rb:103:in
> `indexes'
> > > /home/bhavamitra/Projects/noosfero/app/models/product.rb:160
> > >
> /home/bhavamitra/Projects/noosfero/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/index/builder.rb:37:in
> `instance_eval'
> > >
> /home/bhavamitra/Projects/noosfero/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/index/builder.rb:37:in
> `initialize'
> > >
> /home/bhavamitra/Projects/noosfero/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/index/builder.rb:27:in
> `new'
> > >
> /home/bhavamitra/Projects/noosfero/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/index/builder.rb:27:in
> `generate'
> > >
> /home/bhavamitra/Projects/noosfero/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/active_record.rb:190:in
> `add_sphinx_index'
> > >
> /home/bhavamitra/Projects/noosfero/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/active_record.rb:157:in
> `define_index'
> > >
> /home/bhavamitra/Projects/noosfero/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/active_record.rb:172:in
> `call'
> > >
> /home/bhavamitra/Projects/noosfero/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/active_record.rb:172:in
> `define_indexes'
> > >
> /home/bhavamitra/Projects/noosfero/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/active_record.rb:171:in
> `each'
> > >
> /home/bhavamitra/Projects/noosfero/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/active_record.rb:171:in
> `define_indexes'
> > >
> /home/bhavamitra/Projects/noosfero/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/configuration.rb:148:in
> `generate'
> > >
> /home/bhavamitra/Projects/noosfero/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/configuration.rb:146:in
> `each'
> > >
> /home/bhavamitra/Projects/noosfero/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/configuration.rb:146:in
> `generate'
> > >
> /home/bhavamitra/Projects/noosfero/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/configuration.rb:162:in
> `build'
> > >
> /home/bhavamitra/Projects/noosfero/vendor/plugins/thinking-sphinx/tasks/../lib/thinking_sphinx/tasks.rb:73
> > > /home/bhavamitra/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:636:in
> `call'
> > > /home/bhavamitra/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:636:in
> `execute'
> > > /home/bhavamitra/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:631:in
> `each'
> > > /home/bhavamitra/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:631:in
> `execute'
> > > /home/bhavamitra/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:597:in
> `invoke_with_call_chain'
> > > /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
> > > /home/bhavamitra/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:590:in
> `invoke_with_call_chain'
> > > /home/bhavamitra/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
> `invoke_prerequisites'
> > > /home/bhavamitra/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
> `each'
> > > /home/bhavamitra/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
> `invoke_prerequisites'
> > > /home/bhavamitra/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:596:in
> `invoke_with_call_chain'
> > > /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
> > > /home/bhavamitra/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:590:in
> `invoke_with_call_chain'
> > > /home/bhavamitra/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:583:in
> `invoke'
> > > /home/bhavamitra/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in
> `invoke_task'
> > > /home/bhavamitra/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
> `top_level'
> > > /home/bhavamitra/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
> `each'
> > > /home/bhavamitra/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
> `top_level'
> > > /home/bhavamitra/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
> `standard_exception_handling'
> > > /home/bhavamitra/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in
> `top_level'
> > > /home/bhavamitra/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in
> `run'
> > > /home/bhavamitra/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
> `standard_exception_handling'
> > > /home/bhavamitra/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in
> `run'
> > > /home/bhavamitra/.gem/ruby/1.8/gems/rake-0.8.7/bin/rake:31
> > > /home/bhavamitra/.gem/ruby/1.8/bin/rake:19:in `load'
> > > /home/bhavamitra/.gem/ruby/1.8/bin/rake:19
> > >
> > >
> > >
> > > profiles.google.com/brauliobo
> > > Bráulio Bhavamitra Barros de Oliveira
> > >
> > >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups "Thinking Sphinx" group.
> > > To post to this group, send email to [email protected].
> > > To unsubscribe from this group, send email to
> [email protected].
> > > For more options, visit this group at
> http://groups.google.com/group/thinking-sphinx?hl=en.
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "Thinking Sphinx" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> [email protected].
> > For more options, visit this group at
> http://groups.google.com/group/thinking-sphinx?hl=en.
> >
> >
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "Thinking Sphinx" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> [email protected].
> > For more options, visit this group at
> http://groups.google.com/group/thinking-sphinx?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Thinking Sphinx" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/thinking-sphinx?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en.

Reply via email to