litestream-ruby icon indicating copy to clipboard operation
litestream-ruby copied to clipboard

Installer broken (?) on Rails 7.2

Open julianrubisch opened this issue 1 year ago • 1 comments

On Rails 7.2 I'm getting

.../activerecord-7.2.0/lib/active_record/dynamic_matchers.rb:22:in `method_missing': undefined method `sqlite3_production_warning=' for class ActiveRecord::Base (NoMethodError)

I think I remember that warning has been removed by... you?

julianrubisch avatar Aug 18 '24 10:08 julianrubisch

It was removed by Xavier, but I was a part of the discussions. Will fix. Thanks for the report

fractaledmind avatar Aug 18 '24 10:08 fractaledmind

@julianrubisch: I don't see a reference to this in the codebase. Are you sure the error originates with the installer?

fractaledmind avatar Aug 19 '24 20:08 fractaledmind

I’ll double check tomorrow

it’s a pretty fresh install FWIW. But it does bundle litestack

julianrubisch avatar Aug 19 '24 20:08 julianrubisch

circling back... maybe this part of the stacktrace helps?

        from .../litestream-0.11.0-arm64-darwin/lib/litestream/generators/litestream/install_generator.rb:21:in `production_sqlite_databases'
        from .../litestream-0.11.0-arm64-darwin/lib/litestream/generators/litestream/templates/config.yml.erb:13:in `template'

I'll see that I can come back with an MVCE soon

julianrubisch avatar Aug 23 '24 16:08 julianrubisch

okay, disregard 🤦‍♂️ I was on an older version of litestack which was causing this... hard to discern from the stacktrace

julianrubisch avatar Aug 23 '24 16:08 julianrubisch