I'm not sure if it's related to Thinking Sphinx - can you try other tasks? The problem's occurring when the Rails environment is loading...
-- Pat On 13/07/2011, at 1:13 PM, Dima wrote: > I've set up Sphinx and Thinking Sphinx, but whenever I try and run > "rake thinking_sphinx:index" I get the following error: > "undefined local variable or method `config' for main:Object" > > The full trace is below. Does anyone know what I'm doing wrong? > > > /home/dima/metis/trunk/config/environment.rb:4 > /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.4/lib/active_support/ > dependencies.rb:239:in `require' > /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.4/lib/active_support/ > dependencies.rb:239:in `require' > /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.4/lib/active_support/ > dependencies.rb:225:in `load_dependency' > /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.4/lib/active_support/ > dependencies.rb:596:in `new_constants_in' > /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.4/lib/active_support/ > dependencies.rb:225:in `load_dependency' > /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.4/lib/active_support/ > dependencies.rb:239:in `require' > /usr/lib/ruby/gems/1.8/gems/railties-3.0.4/lib/rails/application.rb: > 103:in `require_environment!' > /usr/lib/ruby/gems/1.8/gems/thinking-sphinx-2.0.5/lib/thinking_sphinx/ > tasks.rb:7 > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute' > /usr/lib/ruby/gems/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' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in > `invoke_with_call_chain' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in > `invoke_prerequisites' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in > `invoke_prerequisites' > /usr/lib/ruby/gems/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' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in > `invoke_with_call_chain' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in > `invoke_task' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in > `standard_exception_handling' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in > `standard_exception_handling' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 > /usr/bin/rake:19:in `load' > /usr/bin/rake:19 > > -- > 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.
