On Dec 4 2009, 10:11 am, Brian Percival <[email protected]> wrote:
> Have a similar problem with this environment, in which I plan to use
> delayed deltas:
>
> thinking sphinx 1.3.8
> ts-delayed-delta 1.0.2
>
> When I try running rake ts:rebuild or rake ts:dd, I'm getting
> unintialized constant on ThinkingSphinx::Deltas::Job referenced in
> tasks.rb in the ts-delayed-delta gem
>
> I finally tracked down the class...it's in lib/thinking_sphinx/deltas/
> ***delayed_delta***/job.rb, which is a directory structure that
> doesn't match the module namespace of the class (note the directory
> enclosed by asterisks). Not sure if that's intentional, but it
> surprised me. I wasn't sure if it was on purpose, or if not, which is
> "right"...the directory structure or the classname, so didn't really
> have a patch to submit.
>
> But in the short term to get things running, I've added a   require
> 'thinking_sphinx/deltas/delayed_delta/job'  to my Rakefile and things
> seem to be happy.
>
> Please let me know if I'm doing something bad here.

I was facing the same issue, despite the fact that I had only the
latest gems installed.

Turned out it was a the require ordre in my Rakefile that was wrong,
you must include thinking-sphinx rake tasks before any other one :

require 'thinking_sphinx/tasks'
require 'thinking_sphinx/deltas/delayed_delta/tasks'
-- 
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