Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't generate docs when using gettext #5

Open
pupeno opened this issue May 20, 2010 · 1 comment
Open

Can't generate docs when using gettext #5

pupeno opened this issue May 20, 2010 · 1 comment

Comments

@pupeno
Copy link

pupeno commented May 20, 2010

When some Rakefile, any rake file, does this:

require 'gettext/tools/rgettext'

it's not possible to generate the documentation for a Rails project. Running rake doc:app will result in this error:

$ rake doc:reapp --trace
(in /Users/pupeno/Projects/blah)
** Invoke doc:reapp (first_time)
** Invoke doc:clobber_app (first_time)
** Execute doc:clobber_app
rm -r doc/app
** Invoke doc:app (first_time)
** Invoke doc/app/index.html (first_time)
** Invoke doc/README_FOR_APP (first_time, not_needed)
** Invoke app/controllers/account_controller.rb (first_time, not_needed)
** Invoke app/controllers/admin/billboard_config_controller.rb (first_time, not_needed)
** Invoke app/controllers/admin/dashboards_controller.rb (first_time, not_needed)
** Invoke app/controllers/admin/field_types_controller.rb (first_time, not_needed)
** Invoke app/controllers/admin/logos_controller.rb (first_time, not_needed)
** Invoke app/controllers/admin/mandators_controller.rb (first_time, not_needed)
** Invoke app/controllers/admin/online_presences_controller.rb (first_time, not_needed)
** Invoke app/controllers/admin/pages_controller.rb (first_time, not_needed)
** Invoke app/controllers/admin/partners_controller.rb (first_time, not_needed)
** Invoke app/controllers/admin/role_definition_fields_controller.rb (first_time, not_needed)
** Invoke app/controllers/admin/role_definitions_controller.rb (first_time, not_needed)
** Invoke app/controllers/admin/secured_controller.rb (first_time, not_needed)
** Invoke app/controllers/admin/sessions_controller.rb (first_time, not_needed)
** Invoke app/controllers/admin/smtp_setting_controller.rb (first_time, not_needed)
** Invoke app/controllers/application_controller.rb (first_time, not_needed)
** Invoke app/controllers/billing_addresses_controller.rb (first_time, not_needed)
** Invoke app/controllers/change_user_states_controller.rb (first_time, not_needed)
** Invoke app/controllers/contact_histories_controller.rb (first_time, not_needed)
** Invoke app/controllers/dashboard_controller.rb (first_time, not_needed)
** Invoke app/controllers/feedbacks_controller.rb (first_time, not_needed)
** Invoke app/controllers/forgot_passwords_controller.rb (first_time, not_needed)
** Invoke app/controllers/forums_controller.rb (first_time, not_needed)
** Invoke app/controllers/mandators_controller.rb (first_time, not_needed)
** Invoke app/controllers/messages_controller.rb (first_time, not_needed)
** Invoke app/controllers/notifications_controller.rb (first_time, not_needed)
** Invoke app/controllers/pages_controller.rb (first_time, not_needed)
** Invoke app/controllers/payments_controller.rb (first_time, not_needed)
** Invoke app/controllers/photos_controller.rb (first_time, not_needed)
** Invoke app/controllers/portraits_controller.rb (first_time, not_needed)
** Invoke app/controllers/posts_controller.rb (first_time, not_needed)
** Invoke app/controllers/profile_controller.rb (first_time, not_needed)
** Invoke app/controllers/provider_messages_controller.rb (first_time, not_needed)
** Invoke app/controllers/providers_controller.rb (first_time, not_needed)
** Invoke app/controllers/public/admin/users_controller.rb (first_time, not_needed)
** Invoke app/controllers/ratings_controller.rb (first_time, not_needed)
** Invoke app/controllers/register_controller.rb (first_time, not_needed)
** Invoke app/controllers/secured_controller.rb (first_time, not_needed)
** Invoke app/controllers/sessions_controller.rb (first_time, not_needed)
** Invoke app/controllers/topics_controller.rb (first_time, not_needed)
** Invoke app/controllers/users_controller.rb (first_time, not_needed)
** Invoke app/helpers/admin/billboard_config_helper.rb (first_time, not_needed)
** Invoke app/helpers/admin/consumers_helper.rb (first_time, not_needed)
** Invoke app/helpers/admin/dashboard_helper.rb (first_time, not_needed)
** Invoke app/helpers/admin/field_types_helper.rb (first_time, not_needed)
** Invoke app/helpers/admin/logos_helper.rb (first_time, not_needed)
** Invoke app/helpers/admin/mandators_helper.rb (first_time, not_needed)
** Invoke app/helpers/admin/online_presences_helper.rb (first_time, not_needed)
** Invoke app/helpers/admin/pages_helper.rb (first_time, not_needed)
** Invoke app/helpers/admin/partners_helper.rb (first_time, not_needed)
** Invoke app/helpers/admin/providers_helper.rb (first_time, not_needed)
** Invoke app/helpers/admin/role_definition_fields_helper.rb (first_time, not_needed)
** Invoke app/helpers/admin/role_definitions_helper.rb (first_time, not_needed)
** Invoke app/helpers/admin/smtp_setting_helper.rb (first_time, not_needed)
** Invoke app/helpers/admin/sub_role_definition_fields_helper.rb (first_time, not_needed)
** Invoke app/helpers/administrators_helper.rb (first_time, not_needed)
** Invoke app/helpers/application_helper.rb (first_time, not_needed)
** Invoke app/helpers/home_helper.rb (first_time, not_needed)
** Invoke app/helpers/notifications_helper.rb (first_time, not_needed)
** Invoke app/helpers/public/account_helper.rb (first_time, not_needed)
** Invoke app/helpers/public/admin/users_helper.rb (first_time, not_needed)
** Invoke app/helpers/public/billing_addresses_helper.rb (first_time, not_needed)
** Invoke app/helpers/public/change_user_states_helper.rb (first_time, not_needed)
** Invoke app/helpers/public/contact_helper.rb (first_time, not_needed)
** Invoke app/helpers/public/contact_histories_helper.rb (first_time, not_needed)
** Invoke app/helpers/public/dashboard_helper.rb (first_time, not_needed)
** Invoke app/helpers/public/forgot_password_helper.rb (first_time, not_needed)
** Invoke app/helpers/public/forums_helper.rb (first_time, not_needed)
** Invoke app/helpers/public/home_helper.rb (first_time, not_needed)
** Invoke app/helpers/public/messages_helper.rb (first_time, not_needed)
** Invoke app/helpers/public/pages_helper.rb (first_time, not_needed)
** Invoke app/helpers/public/payments_helper.rb (first_time, not_needed)
** Invoke app/helpers/public/photos_helper.rb (first_time, not_needed)
** Invoke app/helpers/public/portraits_helper.rb (first_time, not_needed)
** Invoke app/helpers/public/posts_helper.rb (first_time, not_needed)
** Invoke app/helpers/public/profile_helper.rb (first_time, not_needed)
** Invoke app/helpers/public/provider_messages_helper.rb (first_time, not_needed)
** Invoke app/helpers/public/providers_helper.rb (first_time, not_needed)
** Invoke app/helpers/public/ratings_helper.rb (first_time, not_needed)
** Invoke app/helpers/public/register_helper.rb (first_time, not_needed)
** Invoke app/helpers/public/topics_helper.rb (first_time, not_needed)
** Invoke app/helpers/sessions_helper.rb (first_time, not_needed)
** Invoke app/helpers/users_helper.rb (first_time, not_needed)
** Invoke app/models/administrator.rb (first_time, not_needed)
** Invoke app/models/billboard_api/order_queue.rb (first_time, not_needed)
** Invoke app/models/billboard_config.rb (first_time, not_needed)
** Invoke app/models/billing_address.rb (first_time, not_needed)
** Invoke app/models/consumer.rb (first_time, not_needed)
** Invoke app/models/custom_mailer.rb (first_time, not_needed)
** Invoke app/models/db_file.rb (first_time, not_needed)
** Invoke app/models/field_type.rb (first_time, not_needed)
** Invoke app/models/forum.rb (first_time, not_needed)
** Invoke app/models/language.rb (first_time, not_needed)
** Invoke app/models/logo.rb (first_time, not_needed)
** Invoke app/models/mail.rb (first_time, not_needed)
** Invoke app/models/mailer.rb (first_time, not_needed)
** Invoke app/models/mandator.rb (first_time, not_needed)
** Invoke app/models/message.rb (first_time, not_needed)
** Invoke app/models/online_presence.rb (first_time, not_needed)
** Invoke app/models/page.rb (first_time, not_needed)
** Invoke app/models/partner.rb (first_time, not_needed)
** Invoke app/models/payment.rb (first_time, not_needed)
** Invoke app/models/photo.rb (first_time, not_needed)
** Invoke app/models/place.rb (first_time, not_needed)
** Invoke app/models/post.rb (first_time, not_needed)
** Invoke app/models/provider.rb (first_time, not_needed)
** Invoke app/models/provider_search_query.rb (first_time, not_needed)
** Invoke app/models/public_profile.rb (first_time, not_needed)
** Invoke app/models/rating.rb (first_time, not_needed)
** Invoke app/models/role_definition.rb (first_time, not_needed)
** Invoke app/models/role_definition_field.rb (first_time, not_needed)
** Invoke app/models/role_field.rb (first_time, not_needed)
** Invoke app/models/smtp_setting.rb (first_time, not_needed)
** Invoke app/models/topic.rb (first_time, not_needed)
** Invoke app/models/user.rb (first_time, not_needed)
** Invoke app/models/user_mailer.rb (first_time, not_needed)
** Invoke app/models/user_observer.rb (first_time, not_needed)
** Invoke lib/authenticated_system.rb (first_time, not_needed)
** Invoke lib/authenticated_system_for_admins.rb (first_time, not_needed)
** Invoke lib/authenticated_test_helper.rb (first_time, not_needed)
** Invoke lib/importer.rb (first_time, not_needed)
** Invoke lib/simple_gettext.rb (first_time, not_needed)
** Invoke lib/tableless_base.rb (first_time, not_needed)
** Invoke lib/with_locale.rb (first_time, not_needed)
** Invoke lib/yaml_extension.rb (first_time, not_needed)
** Invoke Rakefile (first_time, not_needed)
** Execute doc/app/index.html
rm -r doc/app
rake aborted!
uninitialized constant RubyToken::AlreadyDefinedToken
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:440:in `load_missing_constant'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in `const_missing'
/Users/pupeno/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:273:in `def_token'
/Users/pupeno/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:300
/Users/pupeno/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:299:in `each'
/Users/pupeno/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:299
/Users/pupeno/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Users/pupeno/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
/Users/pupeno/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/rdoc/rdoc.rb:8
/Users/pupeno/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Users/pupeno/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/rake-0.8.7/lib/rake/rdoctask.rb:139:in `define'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
/Users/pupeno/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'
/Users/pupeno/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'
/Users/pupeno/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/Users/pupeno/.rvm/gems/ruby-1.8.7-p174@blah/gems/rake-0.8.7/bin/rake:31
/Users/pupeno/.rvm/rubies/ruby-1.8.7-p174/bin/rake:19:in `load'
/Users/pupeno/.rvm/rubies/ruby-1.8.7-p174/bin/rake:19
@mutoh
Copy link
Owner

mutoh commented Jul 4, 2010

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants