Hi Steven What is defined within that app/models/asset/audio_asset.rb file? Thinking Sphinx currently has to load all models to determine which ones have Sphinx indices (I know this is not ideal - 3.0.0.pre takes a different approach). Going by Rails' expectations, it's expecting that file to contain Asset::AudioAsset - but given the error, perhaps that's not the case?
Cheers -- Pat On 16/11/2012, at 6:55 AM, wvuzero wrote: > I'm receiving warning messages when TS is loading the applications models and > I have an assumption it has to do with how the subclasses are initialized, > but I am not sure of the exact fix. > > Has anyone run into this before and can push me in the right direction? > > Here is the warning: > > > rake ts:conf > Generating Configuration to config/development.sphinx.conf > Warning: Error loading > /Users/sps/Sites/compass/app/models/asset/audio_asset.rb: > uninitialized constant Asset::AudioAsset > > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/bundler/gems/rails-267fb61277ac/activesupport/lib/active_support/inflector/methods.rb:230:in > `block in constantize' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/bundler/gems/rails-267fb61277ac/activesupport/lib/active_support/inflector/methods.rb:229:in > `each' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/bundler/gems/rails-267fb61277ac/activesupport/lib/active_support/inflector/methods.rb:229:in > `constantize' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/bundler/gems/rails-267fb61277ac/activesupport/lib/active_support/core_ext/string/inflections.rb:54:in > `constantize' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/thinking-sphinx-2.0.10/lib/thinking_sphinx/context.rb:64:in > `block (2 levels) in load_models' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/thinking-sphinx-2.0.10/lib/thinking_sphinx/context.rb:54:in > `each' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/thinking-sphinx-2.0.10/lib/thinking_sphinx/context.rb:54:in > `block in load_models' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/thinking-sphinx-2.0.10/lib/thinking_sphinx/context.rb:53:in > `each' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/thinking-sphinx-2.0.10/lib/thinking_sphinx/context.rb:53:in > `load_models' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/thinking-sphinx-2.0.10/lib/thinking_sphinx/context.rb:15:in > `prepare' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/thinking-sphinx-2.0.10/lib/thinking_sphinx.rb:81:in > `block in context' > <internal:prelude>:10:in `synchronize' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/thinking-sphinx-2.0.10/lib/thinking_sphinx.rb:78:in > `context' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/thinking-sphinx-2.0.10/lib/thinking_sphinx/configuration.rb:156:in > `generate' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/thinking-sphinx-2.0.10/lib/thinking_sphinx/configuration.rb:172:in > `build' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/thinking-sphinx-2.0.10/lib/thinking_sphinx/tasks.rb:80:in > `block (2 levels) in <top (required)>' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/rake-10.0.0/lib/rake/task.rb:227:in > `call' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/rake-10.0.0/lib/rake/task.rb:227:in > `block in execute' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/rake-10.0.0/lib/rake/task.rb:222:in > `each' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/rake-10.0.0/lib/rake/task.rb:222:in > `execute' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/rake-10.0.0/lib/rake/task.rb:166:in > `block in invoke_with_call_chain' > /Users/sps/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/monitor.rb:201:in > `mon_synchronize' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/rake-10.0.0/lib/rake/task.rb:159:in > `invoke_with_call_chain' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/rake-10.0.0/lib/rake/task.rb:187:in > `block in invoke_prerequisites' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/rake-10.0.0/lib/rake/task.rb:185:in > `each' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/rake-10.0.0/lib/rake/task.rb:185:in > `invoke_prerequisites' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/rake-10.0.0/lib/rake/task.rb:165:in > `block in invoke_with_call_chain' > /Users/sps/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/monitor.rb:201:in > `mon_synchronize' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/rake-10.0.0/lib/rake/task.rb:159:in > `invoke_with_call_chain' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/rake-10.0.0/lib/rake/task.rb:152:in > `invoke' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/rake-10.0.0/lib/rake/application.rb:140:in > `invoke_task' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/rake-10.0.0/lib/rake/application.rb:98:in > `block (2 levels) in top_level' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/rake-10.0.0/lib/rake/application.rb:98:in > `each' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/rake-10.0.0/lib/rake/application.rb:98:in > `block in top_level' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/rake-10.0.0/lib/rake/application.rb:107:in > `run_with_threads' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/rake-10.0.0/lib/rake/application.rb:92:in > `top_level' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/rake-10.0.0/lib/rake/application.rb:70:in > `block in run' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/rake-10.0.0/lib/rake/application.rb:157:in > `standard_exception_handling' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/rake-10.0.0/lib/rake/application.rb:67:in > `run' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/gems/rake-10.0.0/bin/rake:37:in > `<top (required)>' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/bin/rake:19:in `load' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/bin/rake:19:in `<main>' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/bin/ruby_noexec_wrapper:14:in > `eval' > /Users/sps/.rvm/gems/ruby-1.9.2-p180@compass/bin/ruby_noexec_wrapper:14:in > `<main>' > > -- > 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/-/rQLXSZtfb9MJ. > 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.
