-- 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.
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
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.
>
--~--~---------~--~----~------ ------~-------~--~----~
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
-~----------~----~----~----~-- ----~----~------~--~---
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
>