trilogy-libraries / activerecord-trilogy-adapter

Active Record adapter for the Trilogy database client for Rails v6.0 - v7.0.
https://github.com/trilogy-libraries/trilogy
MIT License
172 stars 17 forks source link

`rails dbconsole` is not working #53

Closed tmimura39 closed 1 year ago

tmimura39 commented 1 year ago
# rails dbconsole
<internal:/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require': cannot load such file -- trilogy_adapter/rails/dbconsole (LoadError)
    from <internal:/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
    from /usr/local/bundle/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
    from /usr/local/bundle/gems/activerecord-trilogy-adapter-3.1.0/lib/trilogy_adapter/railtie.rb:17:in `<main>'
    from <internal:/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
    from <internal:/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
    from /usr/local/bundle/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
    from /usr/local/bundle/gems/activerecord-trilogy-adapter-3.1.0/lib/activerecord-trilogy-adapter.rb:5:in `<main>'
    from <internal:/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
    from <internal:/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
    from /usr/local/bundle/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
    from /usr/local/bundle/gems/bundler-2.4.12/lib/bundler/runtime.rb:60:in `block (2 levels) in require'
    from /usr/local/bundle/gems/bundler-2.4.12/lib/bundler/runtime.rb:55:in `each'
    from /usr/local/bundle/gems/bundler-2.4.12/lib/bundler/runtime.rb:55:in `block in require'
    from /usr/local/bundle/gems/bundler-2.4.12/lib/bundler/runtime.rb:44:in `each'
    from /usr/local/bundle/gems/bundler-2.4.12/lib/bundler/runtime.rb:44:in `require'
    from /usr/local/bundle/gems/bundler-2.4.12/lib/bundler.rb:196:in `require'
    from /app/config/application.rb:19:in `<main>'
    from <internal:/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
    from <internal:/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
    from /usr/local/bundle/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
    from /usr/local/bundle/gems/railties-7.0.6/lib/rails/command/actions.rb:22:in `require_application!'
    from /usr/local/bundle/gems/railties-7.0.6/lib/rails/command/actions.rb:14:in `require_application_and_environment!'
    from /usr/local/bundle/gems/railties-7.0.6/lib/rails/commands/dbconsole/dbconsole_command.rb:182:in `perform'
    from /usr/local/bundle/gems/thor-1.2.2/lib/thor/command.rb:27:in `run'
    from /usr/local/bundle/gems/thor-1.2.2/lib/thor/invocation.rb:127:in `invoke_command'
    from /usr/local/bundle/gems/thor-1.2.2/lib/thor.rb:392:in `dispatch'
    from /usr/local/bundle/gems/railties-7.0.6/lib/rails/command/base.rb:87:in `perform'
    from /usr/local/bundle/gems/railties-7.0.6/lib/rails/command.rb:48:in `invoke'
    from /usr/local/bundle/gems/railties-7.0.6/lib/rails/commands.rb:18:in `<main>'
    from <internal:/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
    from <internal:/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
    from /usr/local/bundle/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
    from bin/rails:4:in `<main>'

Trying to read file deleted by https://github.com/trilogy-libraries/activerecord-trilogy-adapter/commit/90b1755a059555af182002821879d8709b802722#diff-d2c59b537b1d43f7b7aa083de32d4e46505c4387b147b5eb522a98fc61fbd069. https://github.com/trilogy-libraries/activerecord-trilogy-adapter/blob/254891b57400a9b35a845d694e53586122a2c114/lib/trilogy_adapter/railtie.rb#L17

System configuration

Rails version: v7.0.6

Ruby version: v3.2.2

trilogy version: v2.4.1

activerecord-trilogy-adapter: v3.1.0