A rather basic newly created Rails app with --main flag, so reports itself as 7.1.0.alpha.
Seems to happen even if I downgrade to Rails 7.0.
If I try to start AnyCable with bundle exec anycable, I get the following error:
Unknown alias: default
The error seems to come from Anyway Config, so creating an issue here.
Seems to happen because of Psych 4.
Related information:
https://www.redmine.org/issues/36226
What did you expect to happen?
I expected AnyCable to start.
The basic AnyCable config uses a default setting, which is not recognized.
If I change:
# anyway_config-2.2.2/lib/anyway/loaders/yaml.rb
# line 32
if defined?(ERB)
::YAML.safe_load(ERB.new(File.read(path)).result) || {} # rubocop:disable Security/YAMLLoad
else
...
to using unsafe load, the config works fine. Also if I remove the default block and just copy & paste the settings everything also works fine.
What did you do?
A rather basic newly created Rails app with --main flag, so reports itself as 7.1.0.alpha. Seems to happen even if I downgrade to Rails 7.0.
If I try to start AnyCable with
bundle exec anycable
, I get the following error:Unknown alias: default
The error seems to come from Anyway Config, so creating an issue here. Seems to happen because of Psych 4. Related information: https://www.redmine.org/issues/36226
What did you expect to happen?
I expected AnyCable to start.
The basic AnyCable config uses a default setting, which is not recognized.
If I change:
to using unsafe load, the config works fine. Also if I remove the default block and just copy & paste the settings everything also works fine.
What actually happened?
I get the following error:
Additional context
Environment
Development
Ruby Version:
3.1.0
Framework Version (Rails, whatever):
Rails from main branch, 7.1.0.alpha
Anyway Config Version: 2.2.2