I''m having a wee bit of trouble building documentation for Edge Rails (rev 7187). When I attempt to run the doc:rails taask (or any doc:* task), I get the following error: -- BEGIN -- rake aborted! uninitialized constant RubyToken::AlreadyDefinedToken /Users/jherdman/Projects/crosslisting/vendor/rails/activerecord/ lib/../../activesupport/lib/active_support/dependencies.rb:263:in `load_missing_constant'' /Users/jherdman/Projects/crosslisting/vendor/rails/activerecord/ lib/../../activesupport/lib/active_support/dependencies.rb:452:in `const_missing'' /usr/local/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:273:in `def_token'' /usr/local/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:300 /usr/local/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:299:in `each'' /usr/local/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:299 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' /Users/jherdman/Projects/crosslisting/vendor/rails/activerecord/ lib/../../activesupport/lib/active_support/dependencies.rb:495:in `require'' /Users/jherdman/Projects/crosslisting/vendor/rails/activerecord/ lib/../../activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'' /Users/jherdman/Projects/crosslisting/vendor/rails/activerecord/ lib/../../activesupport/lib/active_support/dependencies.rb:495:in `require'' /usr/local/lib/ruby/1.8/rdoc/rdoc.rb:8 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' /Users/jherdman/Projects/crosslisting/vendor/rails/activerecord/ lib/../../activesupport/lib/active_support/dependencies.rb:495:in `require'' /Users/jherdman/Projects/crosslisting/vendor/rails/activerecord/ lib/../../activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'' /Users/jherdman/Projects/crosslisting/vendor/rails/activerecord/ lib/../../activesupport/lib/active_support/dependencies.rb:495:in `require'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rdoctask.rb: 112:in `define'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `call'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `execute'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `each'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `execute'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:362:in `invoke'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `synchronize'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `invoke'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:369:in `invoke_prerequisites'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in `each'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in `send'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in `each'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:368:in `invoke_prerequisites'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:361:in `invoke'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `synchronize'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `invoke'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `top_level'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `each'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `top_level'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in `standard_exception_handling'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1733:in `top_level'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1711:in `run'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in `standard_exception_handling'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1708:in `run'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/bin/rake:7 /usr/local/bin/rake:16:in `load'' /usr/local/bin/rake:16 -- END -- Has anyone else encountered this issue? I can''t seem to find any references to it on Google. James H. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
Michael Koziarski
2007-Jul-17 09:50 UTC
Re: RubyToken::AlreadyDefinedToken and Edge Rails Docs
> I''m having a wee bit of trouble building documentation for Edge Rails > (rev 7187). When I attempt to run the doc:rails taask (or any doc:* > task), I get the following error:This works fine for me.> Has anyone else encountered this issue? I can''t seem to find any > references to it on Google.You could ask the rdoc maintainers on ruby-talk. They''ll probably be able to help. -- Cheers Koz --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
James Herdman
2007-Jul-17 14:07 UTC
Re: RubyToken::AlreadyDefinedToken and Edge Rails Docs
Thanks for the tip. I''ll check it out. On 7/17/07, Michael Koziarski <michael@koziarski.com> wrote:> > > > I''m having a wee bit of trouble building documentation for Edge Rails > > (rev 7187). When I attempt to run the doc:rails taask (or any doc:* > > task), I get the following error: > > This works fine for me. > > > Has anyone else encountered this issue? I can''t seem to find any > > references to it on Google. > > You could ask the rdoc maintainers on ruby-talk. They''ll probably be > able to help. > > -- > Cheers > > Koz > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
James, I just ran into this problem myself. It turned out to be because of a "require ''gettext/utils''". I moved this requirement into the tasks that actually needed it (there were two of them, make_mo and update_po). This fixed the problem. I would suggest looking to see if you have any require statements that you can move into the tasks that actually need them. However, that said, the following are must be at the top of Rakefile <<EOF require(File.join(File.dirname(__FILE__), ''config'', ''boot'')) require ''rake'' require ''rake/testtask'' require ''rake/rdoctask'' require ''tasks/rails'' EOF Hope that helps! Tim On Jul 17, 8:07 am, "James Herdman" <james.herd...@gmail.com> wrote:> Thanks for the tip. I''ll check it out. > > On 7/17/07, Michael Koziarski <mich...@koziarski.com> wrote: > > > > > > I''m having a wee bit of trouble building documentation for Edge Rails > > > (rev 7187). When I attempt to run the doc:rails taask (or any doc:* > > > task), I get the following error: > > > This works fine for me. > > > > Has anyone else encountered this issue? I can''t seem to find any > > > references to it on Google. > > > You could ask the rdoc maintainers on ruby-talk. They''ll probably be > > able to help. > > > -- > > Cheers > > > Koz--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
James Herdman
2007-Aug-02 00:28 UTC
Re: RubyToken::AlreadyDefinedToken and Edge Rails Docs
Hey Tim! Thanks for the email. I''m in the process of taking a look for this requirement that you spoke of (require ''gettext/utils''). Do you remember roughly where you found it? James On 8/1/07, timcharper <timcharper@gmail.com> wrote:> > > James, > > I just ran into this problem myself. It turned out to be because of a > "require ''gettext/utils''". I moved this requirement into the tasks > that actually needed it (there were two of them, make_mo and > update_po). This fixed the problem. > > I would suggest looking to see if you have any require statements that > you can move into the tasks that actually need them. > > However, that said, the following are must be at the top of Rakefile > > <<EOF > require(File.join(File.dirname(__FILE__), ''config'', ''boot'')) > > require ''rake'' > require ''rake/testtask'' > require ''rake/rdoctask'' > > require ''tasks/rails'' > EOF > > Hope that helps! > Tim > > On Jul 17, 8:07 am, "James Herdman" <james.herd...@gmail.com> wrote: > > Thanks for the tip. I''ll check it out. > > > > On 7/17/07, Michael Koziarski <mich...@koziarski.com> wrote: > > > > > > > > > > I''m having a wee bit of trouble building documentation for Edge > Rails > > > > (rev 7187). When I attempt to run the doc:rails taask (or any doc:* > > > > task), I get the following error: > > > > > This works fine for me. > > > > > > Has anyone else encountered this issue? I can''t seem to find any > > > > references to it on Google. > > > > > You could ask the rdoc maintainers on ruby-talk. They''ll probably be > > > able to help. > > > > > -- > > > Cheers > > > > > Koz > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
James Herdman
2007-Aug-02 01:08 UTC
Re: RubyToken::AlreadyDefinedToken and Edge Rails Docs
Ah, I figured it out. I was inspired by your email to poke around in my Rake files. It turns out I had written a Rake file that required the environment. This caused all my problems. James On 8/1/07, James Herdman <james.herdman@gmail.com> wrote:> > Hey Tim! > > Thanks for the email. I''m in the process of taking a look for this > requirement that you spoke of (require ''gettext/utils''). Do you remember > roughly where you found it? > > > James > > On 8/1/07, timcharper <timcharper@gmail.com > wrote: > > > > > > James, > > > > I just ran into this problem myself. It turned out to be because of a > > "require ''gettext/utils''". I moved this requirement into the tasks > > that actually needed it (there were two of them, make_mo and > > update_po). This fixed the problem. > > > > I would suggest looking to see if you have any require statements that > > you can move into the tasks that actually need them. > > > > However, that said, the following are must be at the top of Rakefile > > > > <<EOF > > require(File.join(File.dirname(__FILE__), ''config'', ''boot'')) > > > > require ''rake'' > > require ''rake/testtask'' > > require ''rake/rdoctask'' > > > > require ''tasks/rails'' > > EOF > > > > Hope that helps! > > Tim > > > > On Jul 17, 8:07 am, "James Herdman" < james.herd...@gmail.com> wrote: > > > Thanks for the tip. I''ll check it out. > > > > > > On 7/17/07, Michael Koziarski < mich...@koziarski.com> wrote: > > > > > > > > > > > > > > I''m having a wee bit of trouble building documentation for Edge > > Rails > > > > > (rev 7187). When I attempt to run the doc:rails taask (or any > > doc:* > > > > > task), I get the following error: > > > > > > > This works fine for me. > > > > > > > > Has anyone else encountered this issue? I can''t seem to find any > > > > > references to it on Google. > > > > > > > You could ask the rdoc maintainers on ruby-talk. They''ll probably > > be > > > > able to help. > > > > > > > -- > > > > Cheers > > > > > > > Koz > > > > > > --~--~---------~--~----~------ ------~-------~--~----~ > > This message is part of the topic "RubyToken::AlreadyDefinedToken and > > Edge Rails Docs" in the Google Group "Ruby on Rails: Core" for which you > > requested email updates. > > To stop receiving email updates for this topic, please visit the topic > > at http://groups.google.com/group/rubyonrails-core/t/1f7edc924033c33f > > -~----------~----~----~----~-- ----~----~------~--~--- > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
Glad you could get the problem fixed! On Aug 1, 7:08 pm, "James Herdman" <james.herd...@gmail.com> wrote:> Ah, I figured it out. I was inspired by your email to poke around in my > Rake files. It turns out I had written a Rake file that required the > environment. This caused all my problems. > James > > On 8/1/07, James Herdman <james.herd...@gmail.com> wrote: > > > > > Hey Tim! > > > Thanks for the email. I''m in the process of taking a look for this > > requirement that you spoke of (require ''gettext/utils''). Do you remember > > roughly where you found it? > > > James > > > On 8/1/07, timcharper <timchar...@gmail.com > wrote: > > > > James, > > > > I just ran into this problem myself. It turned out to be because of a > > > "require ''gettext/utils''". I moved this requirement into the tasks > > > that actually needed it (there were two of them, make_mo and > > > update_po). This fixed the problem. > > > > I would suggest looking to see if you have any require statements that > > > you can move into the tasks that actually need them. > > > > However, that said, the following are must be at the top of Rakefile > > > > <<EOF > > > require(File.join(File.dirname(__FILE__), ''config'', ''boot'')) > > > > require ''rake'' > > > require ''rake/testtask'' > > > require ''rake/rdoctask'' > > > > require ''tasks/rails'' > > > EOF > > > > Hope that helps! > > > Tim > > > > On Jul 17, 8:07 am, "James Herdman" < james.herd...@gmail.com> wrote: > > > > Thanks for the tip. I''ll check it out. > > > > > On 7/17/07, Michael Koziarski < mich...@koziarski.com> wrote: > > > > > > > I''m having a wee bit of trouble building documentation for Edge > > > Rails > > > > > > (rev 7187). When I attempt to run the doc:rails taask (or any > > > doc:* > > > > > > task), I get the following error: > > > > > > This works fine for me. > > > > > > > Has anyone else encountered this issue? I can''t seem to find any > > > > > > references to it on Google. > > > > > > You could ask the rdoc maintainers on ruby-talk. They''ll probably > > > be > > > > > able to help. > > > > > > -- > > > > > Cheers > > > > > > Koz > > > > --~--~---------~--~----~------ ------~-------~--~----~ > > > This message is part of the topic "RubyToken::AlreadyDefinedToken and > > > Edge Rails Docs" in the Google Group "Ruby on Rails: Core" for which you > > > requested email updates. > > > To stop receiving email updates for this topic, please visit the topic > > > athttp://groups.google.com/group/rubyonrails-core/t/1f7edc924033c33f > > > -~----------~----~----~----~-- ----~----~------~--~-----~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---