-
Notifications
You must be signed in to change notification settings - Fork 65
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
Database configuration specifies 'litedb' adapter but that adapter has not been registered. #107
Comments
I wonder if you need to do a look up the rake task dependency list the answer may be there |
Do you have litestack higher up in your Gemfile than rails? Because this line seems to assume Rails is loaded first. It feels like it should be moved to the Railtie in an ActiveRecord on_load hook. |
Apologies, not entirely sure what this means. But I can see if I can dedicate some time to troubleshoot the issue a bit more. Was also going to see if this same issue is happening on stable 7.1 rails. |
Litestack gem is at the bottom of my Gemfile currently. |
I have confirmed that this is probably a conflict with Rails 7.2.0-alpha (main branch). What I did to test this: On stable (7.1) branch:
Works no problem. On main (7.2.0-alpha) branch:
When I try to bundle, I noticed:
And when I ran a model generation, I got this full stack trace:
Hope this helps. |
I successfully got litestack gem installed (using this fork of the fix for Rails 7.2.0-alpha: #106) but now whenever I try to do anything related to the database (like running:
rake db:setup
or running the rails generator for models), I get the following error:Am I missing some step or could this be another issue with the Rails main branch? Or maybe something else?
The text was updated successfully, but these errors were encountered: