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

RuntimeError (Circular dependency detected while autoloading constant TranslationCenter::TranslationKey) #78

Open
hauska7 opened this issue Jul 9, 2016 · 0 comments

Comments

@hauska7
Copy link

hauska7 commented Jul 9, 2016

Any ideas anyone? I try to run TC for first time. App has a few namespaces for routes/controllers. User model is not User - but I have changed config as in redme.

RuntimeError (Circular dependency detected while autoloading constant TranslationCenter::TranslationKey):
  activesupport (4.2.6) lib/active_support/dependencies.rb:492:in `load_missing_constant'
  activesupport (4.2.6) lib/active_support/dependencies.rb:184:in `const_missing'
  translation_center (2.0.2) lib/translation_center/translation_helpers.rb:63:in `translate_with_adding'
  i18n (0.7.0) lib/i18n/backend/fallbacks.rb:45:in `block (2 levels) in translate'
  i18n (0.7.0) lib/i18n/backend/fallbacks.rb:44:in `catch'
  i18n (0.7.0) lib/i18n/backend/fallbacks.rb:44:in `block in translate'
  i18n (0.7.0) lib/i18n/backend/fallbacks.rb:42:in `each'
  i18n (0.7.0) lib/i18n/backend/fallbacks.rb:42:in `translate'
  i18n (0.7.0) lib/i18n.rb:158:in `block in translate'
  i18n (0.7.0) lib/i18n.rb:154:in `catch'
  i18n (0.7.0) lib/i18n.rb:154:in `translate'
  actionview (4.2.6) lib/action_view/helpers/translation_helper.rb:69:in `translate'
  activesupport (4.2.6) lib/active_support/dependencies.rb:457:in `load'
  activesupport (4.2.6) lib/active_support/dependencies.rb:457:in `block in load_file'
  activesupport (4.2.6) lib/active_support/dependencies.rb:647:in `new_constants_in'
  activesupport (4.2.6) lib/active_support/dependencies.rb:456:in `load_file'
  activesupport (4.2.6) lib/active_support/dependencies.rb:354:in `require_or_load'
  activesupport (4.2.6) lib/active_support/dependencies.rb:494:in `load_missing_constant'
  activesupport (4.2.6) lib/active_support/dependencies.rb:184:in `const_missing'
  translation_center (2.0.2) lib/translation_center/translation_helpers.rb:63:in `translate_with_adding'
  i18n (0.7.0) lib/i18n/backend/fallbacks.rb:45:in `block (2 levels) in translate'
  i18n (0.7.0) lib/i18n/backend/fallbacks.rb:44:in `catch'
  i18n (0.7.0) lib/i18n/backend/fallbacks.rb:44:in `block in translate'
  i18n (0.7.0) lib/i18n/backend/fallbacks.rb:42:in `each'
  i18n (0.7.0) lib/i18n/backend/fallbacks.rb:42:in `translate'
  i18n (0.7.0) lib/i18n.rb:158:in `block in translate'
  i18n (0.7.0) lib/i18n.rb:154:in `catch'
  i18n (0.7.0) lib/i18n.rb:154:in `translate'
  actionview (4.2.6) lib/action_view/helpers/translation_helper.rb:69:in `translate'
  erubis (2.7.0) lib/erubis/evaluator.rb:65:in `eval'
  erubis (2.7.0) lib/erubis/evaluator.rb:65:in `result'
  better_errors (2.1.1) lib/better_errors/error_page.rb:30:in `render'
  better_errors (2.1.1) lib/better_errors/middleware.rb:96:in `show_error_page'
  better_errors (2.1.1) lib/better_errors/middleware.rb:88:in `rescue in protected_app_call'
  better_errors (2.1.1) lib/better_errors/middleware.rb:84:in `protected_app_call'
  better_errors (2.1.1) lib/better_errors/middleware.rb:79:in `better_errors_call'
  better_errors (2.1.1) lib/better_errors/middleware.rb:57:in `call'
  actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
  actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
  railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app'
  railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call'
  activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
  activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged'
  activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged'
  railties (4.2.6) lib/rails/rack/logger.rb:20:in `call'
  quiet_assets (1.1.0) lib/quiet_assets.rb:27:in `call_with_quiet_assets'
  request_store (1.1.0) lib/request_store/middleware.rb:8:in `call'
  actionpack (4.2.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
  rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
  rack (1.6.4) lib/rack/runtime.rb:18:in `call'
  activesupport (4.2.6) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
  rack (1.6.4) lib/rack/lock.rb:17:in `call'
  actionpack (4.2.6) lib/action_dispatch/middleware/static.rb:120:in `call'
  rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
  railties (4.2.6) lib/rails/engine.rb:518:in `call'
  railties (4.2.6) lib/rails/application.rb:165:in `call'
  rack (1.6.4) lib/rack/content_length.rb:15:in `call'
  thin (1.6.4) lib/thin/connection.rb:86:in `block in pre_process'
  thin (1.6.4) lib/thin/connection.rb:84:in `catch'
  thin (1.6.4) lib/thin/connection.rb:84:in `pre_process'
  thin (1.6.4) lib/thin/connection.rb:53:in `process'
  thin (1.6.4) lib/thin/connection.rb:39:in `receive_data'
  eventmachine (1.2.0.1) lib/eventmachine.rb:194:in `run_machine'
  eventmachine (1.2.0.1) lib/eventmachine.rb:194:in `run'
  thin (1.6.4) lib/thin/backends/base.rb:73:in `start'
  thin (1.6.4) lib/thin/server.rb:162:in `start'
  rack (1.6.4) lib/rack/handler/thin.rb:19:in `run'
  rack (1.6.4) lib/rack/server.rb:286:in `start'
  railties (4.2.6) lib/rails/commands/server.rb:80:in `start'
  railties (4.2.6) lib/rails/commands/commands_tasks.rb:80:in `block in server'
  railties (4.2.6) lib/rails/commands/commands_tasks.rb:75:in `tap'
  railties (4.2.6) lib/rails/commands/commands_tasks.rb:75:in `server'
  railties (4.2.6) lib/rails/commands/commands_tasks.rb:39:in `run_command!'
  railties (4.2.6) lib/rails/commands.rb:17:in `<top (required)>'
  bin/rails:4:in `require'
  bin/rails:4:in `<main>'
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

1 participant