Hi Pat,

With the indexed_models statement in sphinx.yml, I get this output:

piro:projectname arussell$ rake thinking_sphinx:configure --trace
(in /Users/arussell/Sites/projectname)
** Invoke thinking_sphinx:configure (first_time)
** Invoke thinking_sphinx:app_env (first_time)
** Execute thinking_sphinx:app_env
=> Debugger enabled
** Execute thinking_sphinx:configure
Generating Configuration to 
/Users/arussell/Sites/projectname/config/development.sphinx.conf
rake aborted!
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.select
/Users/arussell/.rvm/gems/ree-1.8.7-2011.03@dc3/bundler/gems/thinking-sphinx-34510f41a2c4/lib/thinking_sphinx/active_record.rb:309:in
 
`local_sphinx_indexes'
/Users/arussell/.rvm/gems/ree-1.8.7-2011.03@dc3/bundler/gems/thinking-sphinx-34510f41a2c4/lib/thinking_sphinx/active_record.rb:244:in
 
`to_riddle'
/Users/arussell/.rvm/gems/ree-1.8.7-2011.03@dc3/bundler/gems/thinking-sphinx-34510f41a2c4/lib/thinking_sphinx/configuration.rb:146:in
 
`generate'
/Users/arussell/.rvm/gems/ree-1.8.7-2011.03@dc3/bundler/gems/thinking-sphinx-34510f41a2c4/lib/thinking_sphinx/configuration.rb:143:in
 
`each'
/Users/arussell/.rvm/gems/ree-1.8.7-2011.03@dc3/bundler/gems/thinking-sphinx-34510f41a2c4/lib/thinking_sphinx/configuration.rb:143:in
 
`generate'
/Users/arussell/.rvm/gems/ree-1.8.7-2011.03@dc3/bundler/gems/thinking-sphinx-34510f41a2c4/lib/thinking_sphinx/configuration.rb:159:in
 
`build'
/Users/arussell/.rvm/gems/ree-1.8.7-2011.03@dc3/bundler/gems/thinking-sphinx-34510f41a2c4/lib/thinking_sphinx/tasks.rb:70
/Users/arussell/.rvm/gems/ree-1.8.7-2011.03@global/gems/rake-0.8.7/lib/rake.rb:636:in
 
`call'
/Users/arussell/.rvm/gems/ree-1.8.7-2011.03@global/gems/rake-0.8.7/lib/rake.rb:636:in
 
`execute'
/Users/arussell/.rvm/gems/ree-1.8.7-2011.03@global/gems/rake-0.8.7/lib/rake.rb:631:in
 
`each'
/Users/arussell/.rvm/gems/ree-1.8.7-2011.03@global/gems/rake-0.8.7/lib/rake.rb:631:in
 
`execute'
/Users/arussell/.rvm/gems/ree-1.8.7-2011.03@global/gems/rake-0.8.7/lib/rake.rb:597:in
 
`invoke_with_call_chain'
/Users/arussell/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/monitor.rb:242:in 
`synchronize'
/Users/arussell/.rvm/gems/ree-1.8.7-2011.03@global/gems/rake-0.8.7/lib/rake.rb:590:in
 
`invoke_with_call_chain'
/Users/arussell/.rvm/gems/ree-1.8.7-2011.03@global/gems/rake-0.8.7/lib/rake.rb:583:in
 
`invoke'
/Users/arussell/.rvm/gems/ree-1.8.7-2011.03@global/gems/rake-0.8.7/lib/rake.rb:2051:in
 
`invoke_task'
/Users/arussell/.rvm/gems/ree-1.8.7-2011.03@global/gems/rake-0.8.7/lib/rake.rb:2029:in
 
`top_level'
/Users/arussell/.rvm/gems/ree-1.8.7-2011.03@global/gems/rake-0.8.7/lib/rake.rb:2029:in
 
`each'
/Users/arussell/.rvm/gems/ree-1.8.7-2011.03@global/gems/rake-0.8.7/lib/rake.rb:2029:in
 
`top_level'
/Users/arussell/.rvm/gems/ree-1.8.7-2011.03@global/gems/rake-0.8.7/lib/rake.rb:2068:in
 
`standard_exception_handling'
/Users/arussell/.rvm/gems/ree-1.8.7-2011.03@global/gems/rake-0.8.7/lib/rake.rb:2023:in
 
`top_level'
/Users/arussell/.rvm/gems/ree-1.8.7-2011.03@global/gems/rake-0.8.7/lib/rake.rb:2001:in
 
`run'
/Users/arussell/.rvm/gems/ree-1.8.7-2011.03@global/gems/rake-0.8.7/lib/rake.rb:2068:in
 
`standard_exception_handling'
/Users/arussell/.rvm/gems/ree-1.8.7-2011.03@global/gems/rake-0.8.7/lib/rake.rb:1998:in
 
`run'
/Users/arussell/.rvm/gems/ree-1.8.7-2011.03@global/gems/rake-0.8.7/bin/rake:31
/Users/arussell/.rvm/gems/ree-1.8.7-2011.03@global/bin/rake:19:in `load'
/Users/arussell/.rvm/gems/ree-1.8.7-2011.03@global/bin/rake:19

Without the indexed_models section in sphinx.yml I see the same thing, but 
the last line is "Generating configuration..." without the errors (though 
some of my models are missing from development.sphinx.conf).

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/thinking-sphinx/-/_9TSgepQD7kJ.
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