Makes perfect sense, after reading my post that should have occurred to me :) I had removed the gem, but not the entry in environment.rb.
Thanks On Aug 28, 4:28 pm, Pat Allan <[email protected]> wrote: > Ah.. if you were using Riddle beforehand... firstly, you could very > likely have an old version of Riddle, which doesn't have the > Configuration class. Secondly, you'll be double-requiring it (once for > the gem, again as the vendored version in TS). > > Removing the require 'riddle' statement from environment.rb (or > wherever it is) should hopefully do the trick. > > -- > Pat > > On 28/08/2009, at 9:21 PM, Craiger wrote: > > > > > > > Update: rake ts:config works fine on a fresh empty app, but fails on > > my existing app which I'm trying to migrate from Riddle to Thinking > > Sphinx. > > > On Aug 28, 2:42 pm, Craiger <[email protected]> wrote: > >> I'm having a bit of trouble getting of the ground with the Thinking > >> Sphinx plugin. I've got Sphinx installed, riddle gem, and the TS > >> plugin. Added a couple of indexes to a model, but even running > >> script/ > >> console complains about uninitialized constant Riddle::Configuration. > >> Am I missing an initial configuration step? > > >> cr...@~/Rails/resonantvibes/store/branches/ts_branch$ rake > >> thinking_sphinx:index --trace > >> (in /Users/Craig/Rails/resonantvibes/store/branches/ts_branch) > >> ** Invoke thinking_sphinx:index (first_time) > >> ** Invoke thinking_sphinx:app_env (first_time) > >> ** Execute thinking_sphinx:app_env > >> ** Invoke environment (first_time) > >> ** Execute environment > >> rake aborted! > >> uninitialized constant Riddle::Configuration > >> /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/ > >> dependencies.rb:442:in `load_missing_constant' > >> /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/ > >> dependencies.rb:77:in `const_missing_not_from_s3_library' > >> /Users/Craig/Rails/resonantvibes/store/branches/ts_branch/vendor/ > >> gems/ > >> aws-s3-0.5.1/lib/aws/s3/extensions.rb:174:in `const_missing' > >> /Users/Craig/Rails/resonantvibes/store/branches/ts_branch/vendor/ > >> plugins/thinking-sphinx/lib/thinking_sphinx/configuration.rb:93:in > >> `reset' > >> /Users/Craig/Rails/resonantvibes/store/branches/ts_branch/vendor/ > >> plugins/thinking-sphinx/lib/thinking_sphinx/configuration.rb:76:in > >> `initialize' > >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ > >> 1.8/singleton.rb:94:in `new' > >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ > >> 1.8/singleton.rb:94:in `instance' > >> /Users/Craig/Rails/resonantvibes/store/branches/ts_branch/vendor/ > >> plugins/thinking-sphinx/rails/init.rb:13:in `evaluate_init_rb' > >> /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/ > >> callbacks.rb:182:in `call' > >> /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/ > >> callbacks.rb:182:in `evaluate_method' > >> /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/ > >> callbacks.rb:166:in `call' > >> /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/ > >> callbacks.rb:90:in `run' > >> /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/ > >> callbacks.rb:90:in `each' > >> /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/ > >> callbacks.rb:90:in `send' > >> /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/ > >> callbacks.rb:90:in `run' > >> /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/ > >> callbacks.rb:277:in `run_callbacks' > >> /Library/Ruby/Gems/1.8/gems/rails-2.2.2/lib/initializer.rb:559:in > >> `send' > >> /Library/Ruby/Gems/1.8/gems/rails-2.2.2/lib/initializer.rb:559:in > >> `prepare_dispatcher' > >> /Library/Ruby/Gems/1.8/gems/rails-2.2.2/lib/initializer.rb:173:in > >> `process' > >> /Library/Ruby/Gems/1.8/gems/rails-2.2.2/lib/initializer.rb:112:in > >> `send' > >> /Library/Ruby/Gems/1.8/gems/rails-2.2.2/lib/initializer.rb:112:in > >> `run' > >> /Users/Craig/Rails/resonantvibes/store/branches/ts_branch/config/ > >> environment.rb:13 > >> /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in > >> `gem_original_require' > >> /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' > >> /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/ > >> dependencies.rb:153:in `require' > >> /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/ > >> dependencies.rb:521:in `new_constants_in' > >> /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/ > >> dependencies.rb:153:in `require' > >> /Library/Ruby/Gems/1.8/gems/rails-2.2.2/lib/tasks/misc.rake:3 > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call' > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute' > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each' > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute' > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in > >> `invoke_with_call_chain' > >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ > >> 1.8/monitor.rb:242:in `synchronize' > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in > >> `invoke_with_call_chain' > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke' > >> /Users/Craig/Rails/resonantvibes/store/branches/ts_branch/vendor/ > >> plugins/thinking-sphinx/tasks/../lib/thinking_sphinx/tasks.rb:6 > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call' > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute' > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each' > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute' > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in > >> `invoke_with_call_chain' > >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ > >> 1.8/monitor.rb:242:in `synchronize' > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in > >> `invoke_with_call_chain' > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in > >> `invoke_prerequisites' > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each' > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in > >> `invoke_prerequisites' > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in > >> `invoke_with_call_chain' > >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ > >> 1.8/monitor.rb:242:in `synchronize' > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in > >> `invoke_with_call_chain' > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke' > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in > >> `invoke_task' > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in > >> `top_level' > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each' > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in > >> `top_level' > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in > >> `standard_exception_handling' > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in > >> `top_level' > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run' > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in > >> `standard_exception_handling' > >> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run' > >> /Library/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 -~----------~----~----~----~------~----~------~--~---
