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

Problems with install in Rails 6 - wrong constant name Refinerycms-pages #3466

Open
ebed opened this issue Jan 27, 2020 · 3 comments
Open

Problems with install in Rails 6 - wrong constant name Refinerycms-pages #3466

ebed opened this issue Jan 27, 2020 · 3 comments

Comments

@ebed
Copy link

ebed commented Jan 27, 2020

After create a docker machine with the reciple for ruby and refinery edge, is throwing me this error.. any clue about what I'm doing bad?
Thanks

cptz-blog_1 | /usr/local/bundle/gems/zeitwerk-2.2.2/lib/zeitwerk/loader.rb:497:in `rescue in block in set_autoloads_in_dir': wrong constant name Refinerycms-pages inferred by Module from file (Zeitwerk::NameError)
cptz-blog_1 |
cptz-blog_1 | /usr/local/bundle/bundler/gems/refinerycms-53ea228ba053/pages/lib/refinerycms-pages.rb
cptz-blog_1 |
cptz-blog_1 | Possible ways to address this:
cptz-blog_1 |
cptz-blog_1 | * Tell Zeitwerk to ignore this particular file.
cptz-blog_1 | * Tell Zeitwerk to ignore one of its parent directories.
cptz-blog_1 | * Rename the file to comply with the naming conventions.
cptz-blog_1 | * Modify the inflector to handle this case.

@bricesanchez
Copy link
Member

Hi @ebed !

We are trying to fix this bug, there is a WIP pull request #3465 (Don't use it for now!)

In waiting for the bugfix, you should disable zeitwerk from your Rails application by adding config.autoloader = :classic in config/application.rb :

@thebravoman
Copy link

Same issue with our app for

refinerycms-db8bb6be6f40/pages/lib/refinerycms-pages.rb

@thubamamba
Copy link

Hi @ebed !

We are trying to fix this bug, there is a WIP pull request #3465 (Don't use it for now!)

In waiting for the bugfix, you should disable zeitwerk from your Rails application by adding config.autoloader = :classic in config/application.rb :

This worked for me. Thank you.

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

4 participants