blinking bear
2008-Mar-20 14:02 UTC
ultrasphinx: Anonymous modules have no name to be referenced by
I''m deploying an app to FreeBSD and when I run the ultrasphinx:configure rake task I get the output: Anonymous modules have no name to be referenced by vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:402:in `to_constant_name'' vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:214:in `qualified_name_for'' vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:477:in `const_missing'' vendor/plugins/ultrasphinx/lib/ultrasphinx/configure.rb:32:in `load_constants'' vendor/plugins/ultrasphinx/lib/ultrasphinx/configure.rb:39:in `run'' vendor/plugins/ultrasphinx/tasks/ultrasphinx.rake:20 I can''t seem to figure out what the issue is. It works fine in development. Any ideas would be greatly appreciated. thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Alex Gregianin
2008-Apr-01 13:29 UTC
Re: ultrasphinx: Anonymous modules have no name to be referenced by
Wow! I''ve got the same problem and didnt find anything on google.it seems just a few people have this issue.May there''s something to do with the sphinx lib version.What version are you using? 0.9.8rc2? Thankz! On Mar 20, 11:02 am, "blinking bear" <blinkingb...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m deploying an app to FreeBSD and when I run the ultrasphinx:configure > rake task I get the output: > > Anonymous modules have no name to be referenced by > vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:402:in > `to_constant_name'' > vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:214:in > `qualified_name_for'' > vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:477:in > `const_missing'' > vendor/plugins/ultrasphinx/lib/ultrasphinx/configure.rb:32:in > `load_constants'' > vendor/plugins/ultrasphinx/lib/ultrasphinx/configure.rb:39:in `run'' > vendor/plugins/ultrasphinx/tasks/ultrasphinx.rake:20 > > I can''t seem to figure out what the issue is. It works fine in > development. Any ideas would be greatly appreciated. > > thanks--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Chris Douglas
2008-Apr-11 07:11 UTC
Re: ultrasphinx: Anonymous modules have no name to be referenced by
I have the same problem with sphinx-0.9.8-rc2
I was able to fix the problem by changing the last call in the
load_constants method from
# Build the field-to-type mappings.
Fields.instance.configure(MODEL_CONFIGURATION)
to
# Build the field-to-type mappings.
Ultrasphinx::Fields.instance.configure(MODEL_CONFIGURATION)
Hope this helps
Chris
On Apr 1, 11:29 pm, Alex Gregianin
<bagab...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Wow!
>
> I''ve got the same problem and didnt find anything on google.it
seems
> just a few people have this issue.May there''s something to do with
the
> sphinx lib version.What version are you using? 0.9.8rc2?
>
> Thankz!
>
> On Mar 20, 11:02 am, "blinking bear"
<blinkingb...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> > I''m deploying an app to FreeBSD and when I run the
ultrasphinx:configure
> > rake task I get the output:
>
> > Anonymous modules have no name to be referenced by
> >
vendor/rails/activerecord/lib/../../activesupport/lib/active_support/depend
encies.rb:402:in
> > `to_constant_name''
> >
vendor/rails/activerecord/lib/../../activesupport/lib/active_support/depend
encies.rb:214:in
> > `qualified_name_for''
> >
vendor/rails/activerecord/lib/../../activesupport/lib/active_support/depend
encies.rb:477:in
> > `const_missing''
> > vendor/plugins/ultrasphinx/lib/ultrasphinx/configure.rb:32:in
> > `load_constants''
> > vendor/plugins/ultrasphinx/lib/ultrasphinx/configure.rb:39:in
`run''
> > vendor/plugins/ultrasphinx/tasks/ultrasphinx.rake:20
>
> > I can''t seem to figure out what the issue is. It works fine
in
> > development. Any ideas would be greatly appreciated.
>
> > thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
Lenart Rudel
2008-Jun-07 08:24 UTC
Re: ultrasphinx: Anonymous modules have no name to be referenced by
Thanks Chris! It helped me with sphinx-0.9.8-rc2 on Windows (using cygwin). I was following these instructions for installing and needed your help :) http://www.cordinc.com/blog/2008/03/installing-sphinx-ultrasphinx.html Regards, Lenart Chris Douglas wrote:> I have the same problem with sphinx-0.9.8-rc2 > > I was able to fix the problem by changing the last call in the > load_constants method from > # Build the field-to-type mappings. > Fields.instance.configure(MODEL_CONFIGURATION) > to > # Build the field-to-type mappings. > Ultrasphinx::Fields.instance.configure(MODEL_CONFIGURATION) > > Hope this helps > > Chris-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---