padrino/padrino-framework — Issue #757: Error when executing ar:translate
Author: rex79
Created: 2012-01-18 18:04:33+00:00
State: open

I've got this error when I try the padrino rake ar:translate rake task:

=> Executing Rake ar:translate --trace ...
** Invoke ar:translate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute ar:translate
rake aborted!
syntax error on line 1, col 9: ` padrino:'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/yaml.rb:133:in `load'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/yaml.rb:133:in `load'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/yaml.rb:144:in `load_file'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/yaml.rb:143:in `open'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/yaml.rb:143:in `load_file'
/Library/Ruby/Gems/1.8/gems/i18n-0.6.0/lib/i18n/backend/base.rb:171:in `load_yml'
/Library/Ruby/Gems/1.8/gems/i18n-0.6.0/lib/i18n/backend/base.rb:157:in `send'
/Library/Ruby/Gems/1.8/gems/i18n-0.6.0/lib/i18n/backend/base.rb:157:in `load_file'
/Library/Ruby/Gems/1.8/gems/i18n-0.6.0/lib/i18n/backend/base.rb:15:in `load_translations'
/Library/Ruby/Gems/1.8/gems/i18n-0.6.0/lib/i18n/backend/base.rb:15:in `each'
/Library/Ruby/Gems/1.8/gems/i18n-0.6.0/lib/i18n/backend/base.rb:15:in `load_translations'
/Library/Ruby/Gems/1.8/gems/i18n-0.6.0/lib/i18n/backend/simple.rb:57:in `init_translations'
/Library/Ruby/Gems/1.8/gems/i18n-0.6.0/lib/i18n/backend/simple.rb:71:in `lookup'
/Library/Ruby/Gems/1.8/gems/i18n-0.6.0/lib/i18n/backend/base.rb:26:in `translate'
/Library/Ruby/Gems/1.8/gems/i18n-0.6.0/lib/i18n.rb:156:in `translate'
/Library/Ruby/Gems/1.8/gems/i18n-0.6.0/lib/i18n.rb:152:in `catch'
/Library/Ruby/Gems/1.8/gems/i18n-0.6.0/lib/i18n.rb:152:in `translate'
/Library/Ruby/Gems/1.8/gems/activemodel-3.1.3/lib/active_model/naming.rb:45:in `human'
/Library/Ruby/Gems/1.8/gems/padrino-gen-0.10.5/lib/padrino-gen/padrino-tasks/activerecord.rb:328
/Library/Ruby/Gems/1.8/gems/padrino-gen-0.10.5/lib/padrino-gen/padrino-tasks/activerecord.rb:313:in `each'
/Library/Ruby/Gems/1.8/gems/padrino-gen-0.10.5/lib/padrino-gen/padrino-tasks/activerecord.rb:313
/Library/Ruby/Gems/1.8/gems/padrino-gen-0.10.5/lib/padrino-gen/padrino-tasks/activerecord.rb:303:in `each'
/Library/Ruby/Gems/1.8/gems/padrino-gen-0.10.5/lib/padrino-gen/padrino-tasks/activerecord.rb:303
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/Library/Ruby/Gems/1.8/gems/padrino-core-0.10.5/lib/padrino-core/cli/rake.rb:14:in `init'
/Library/Ruby/Gems/1.8/gems/padrino-core-0.10.5/lib/padrino-core/cli/base.rb:57:in `rake'
/Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in `send'
/Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
/Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
/Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor.rb:263:in `dispatch'
/Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
/Library/Ruby/Gems/1.8/gems/padrino-core-0.10.5/bin/padrino:9
/usr/bin/padrino:19:in `load'
/usr/bin/padrino:19
Tasks: TOP => ar:translate
Processing Account:

% ruby -v
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11]

same issue with ruby 1.8.x