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

Unable to Execute bundle exec rake translation:sync When config.disable_yaml = false #920

Closed
aaronskiba opened this issue Sep 26, 2024 · 1 comment

Comments

@aaronskiba
Copy link
Collaborator

Please complete the following fields as applicable:

What version of the DMPRoadmap code are you running? (e.g. v2.2.0)
4.1.1+portage-4.2.2

Expected behaviour:

Actual behaviour:
After setting config.disable_yaml = false within config/initializers/translation.rb:

$ bundle exec rake translation:sync --trace
To use retry middleware with Faraday v2.0+, install `faraday-retry` gem
** Invoke translation:sync (first_time)
** Invoke environment (first_time)
** Execute environment
Copying Bootstrap glyphicons to the public directory ...
Copying TinyMCE skins to the public directory ...
** Execute translation:sync
* Downloading YAML source editions.
* Applying YAML source editions.
rake aborted!
Psych::BadAlias: Unknown alias: new
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:430:in `visit_Psych_Nodes_Alias'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/visitor.rb:30:in `visit'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/visitor.rb:6:in `accept'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:35:in `accept'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:345:in `block in revive_hash'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:343:in `each'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:343:in `each_slice'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:343:in `revive_hash'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:167:in `visit_Psych_Nodes_Mapping'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/visitor.rb:30:in `visit'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/visitor.rb:6:in `accept'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:35:in `accept'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:345:in `block in revive_hash'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:343:in `each'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:343:in `each_slice'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:343:in `revive_hash'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:167:in `visit_Psych_Nodes_Mapping'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/visitor.rb:30:in `visit'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/visitor.rb:6:in `accept'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:35:in `accept'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:345:in `block in revive_hash'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:343:in `each'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:343:in `each_slice'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:343:in `revive_hash'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:167:in `visit_Psych_Nodes_Mapping'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/visitor.rb:30:in `visit'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/visitor.rb:6:in `accept'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:35:in `accept'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:345:in `block in revive_hash'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:343:in `each'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:343:in `each_slice'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:343:in `revive_hash'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:167:in `visit_Psych_Nodes_Mapping'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/visitor.rb:30:in `visit'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/visitor.rb:6:in `accept'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:35:in `accept'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:345:in `block in revive_hash'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:343:in `each'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:343:in `each_slice'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:343:in `revive_hash'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:167:in `visit_Psych_Nodes_Mapping'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/visitor.rb:30:in `visit'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/visitor.rb:6:in `accept'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:35:in `accept'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:318:in `visit_Psych_Nodes_Document'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/visitor.rb:30:in `visit'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/visitor.rb:6:in `accept'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:35:in `accept'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych.rb:334:in `safe_load'
/usr/share/rvm/rubies/ruby-3.1.4/lib/ruby/3.1.0/psych.rb:369:in `load'
/usr/share/rvm/gems/ruby-3.1.4@dmp/bundler/gems/translation_io_rails-6fbb2cd619e7/lib/translation_io/client/sync_operation/apply_yaml_source_edits_step.rb:49:in `block in reload_or_reuse_yaml_sources'
/usr/share/rvm/gems/ruby-3.1.4@dmp/bundler/gems/translation_io_rails-6fbb2cd619e7/lib/translation_io/client/sync_operation/apply_yaml_source_edits_step.rb:47:in `collect'
/usr/share/rvm/gems/ruby-3.1.4@dmp/bundler/gems/translation_io_rails-6fbb2cd619e7/lib/translation_io/client/sync_operation/apply_yaml_source_edits_step.rb:47:in `reload_or_reuse_yaml_sources'
/usr/share/rvm/gems/ruby-3.1.4@dmp/bundler/gems/translation_io_rails-6fbb2cd619e7/lib/translation_io/client/sync_operation/apply_yaml_source_edits_step.rb:22:in `block in run'
/usr/share/rvm/gems/ruby-3.1.4@dmp/bundler/gems/translation_io_rails-6fbb2cd619e7/lib/translation_io/client/sync_operation/apply_yaml_source_edits_step.rb:19:in `each'
/usr/share/rvm/gems/ruby-3.1.4@dmp/bundler/gems/translation_io_rails-6fbb2cd619e7/lib/translation_io/client/sync_operation/apply_yaml_source_edits_step.rb:19:in `run'
/usr/share/rvm/gems/ruby-3.1.4@dmp/bundler/gems/translation_io_rails-6fbb2cd619e7/lib/translation_io/client/sync_operation.rb:27:in `run'
/usr/share/rvm/gems/ruby-3.1.4@dmp/bundler/gems/translation_io_rails-6fbb2cd619e7/lib/translation_io/client.rb:19:in `sync'
/usr/share/rvm/gems/ruby-3.1.4@dmp/bundler/gems/translation_io_rails-6fbb2cd619e7/lib/translation_io/tasks.rb:23:in `block (2 levels) in <top (required)>'
/usr/share/rvm/gems/ruby-3.1.4@dmp/gems/rake-13.2.1/lib/rake/task.rb:281:in `block in execute'
/usr/share/rvm/gems/ruby-3.1.4@dmp/gems/rake-13.2.1/lib/rake/task.rb:281:in `each'
/usr/share/rvm/gems/ruby-3.1.4@dmp/gems/rake-13.2.1/lib/rake/task.rb:281:in `execute'
/usr/share/rvm/gems/ruby-3.1.4@dmp/gems/rake-13.2.1/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
/usr/share/rvm/gems/ruby-3.1.4@dmp/gems/rake-13.2.1/lib/rake/task.rb:199:in `synchronize'
/usr/share/rvm/gems/ruby-3.1.4@dmp/gems/rake-13.2.1/lib/rake/task.rb:199:in `invoke_with_call_chain'
/usr/share/rvm/gems/ruby-3.1.4@dmp/gems/rake-13.2.1/lib/rake/task.rb:188:in `invoke'
/usr/share/rvm/gems/ruby-3.1.4@dmp/gems/rake-13.2.1/lib/rake/application.rb:188:in `invoke_task'
/usr/share/rvm/gems/ruby-3.1.4@dmp/gems/rake-13.2.1/lib/rake/application.rb:138:in `block (2 levels) in top_level'
/usr/share/rvm/gems/ruby-3.1.4@dmp/gems/rake-13.2.1/lib/rake/application.rb:138:in `each'
/usr/share/rvm/gems/ruby-3.1.4@dmp/gems/rake-13.2.1/lib/rake/application.rb:138:in `block in top_level'
/usr/share/rvm/gems/ruby-3.1.4@dmp/gems/rake-13.2.1/lib/rake/application.rb:147:in `run_with_threads'
/usr/share/rvm/gems/ruby-3.1.4@dmp/gems/rake-13.2.1/lib/rake/application.rb:132:in `top_level'
/usr/share/rvm/gems/ruby-3.1.4@dmp/gems/rake-13.2.1/lib/rake/application.rb:83:in `block in run'
/usr/share/rvm/gems/ruby-3.1.4@dmp/gems/rake-13.2.1/lib/rake/application.rb:214:in `standard_exception_handling'
/usr/share/rvm/gems/ruby-3.1.4@dmp/gems/rake-13.2.1/lib/rake/application.rb:80:in `run'
/usr/share/rvm/gems/ruby-3.1.4@dmp/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'
/usr/share/rvm/gems/ruby-3.1.4@dmp/bin/rake:25:in `load'
/usr/share/rvm/gems/ruby-3.1.4@dmp/bin/rake:25:in `<main>'
/usr/share/rvm/gems/ruby-3.1.4@dmp/bin/ruby_executable_hooks:22:in `eval'
/usr/share/rvm/gems/ruby-3.1.4@dmp/bin/ruby_executable_hooks:22:in `<main>'
Tasks: TOP => translation:sync

aaronskiba added a commit that referenced this issue Oct 7, 2024
The corresponding value for `devise.mailer.confirmation_instructions.subject` in `config/locales/translation.fr-CA.yml` specifies "Assistant PGD", but maybe it should be verified as well.

Note: I don't think this is the proper way to update the locales files. Rather, I believe only `config/locales/en.yml` should be directly modified. However, #920 is currently preventing that.
@aaronskiba
Copy link
Collaborator Author

aaronskiba commented Oct 23, 2024

The root cause of this issue is outlined here:

I have tagged this issue within issue #933. Also, I am closing this issue because it will be resolved after #933 is resolved.

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