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

rails g forest_liana:install crash #536

Open
davidesantangelo opened this issue Dec 22, 2021 · 16 comments
Open

rails g forest_liana:install crash #536

davidesantangelo opened this issue Dec 22, 2021 · 16 comments

Comments

@davidesantangelo
Copy link

davidesantangelo commented Dec 22, 2021

Expected behavior

the installer works correctly

Actual behavior

rails g forest_liana:install crash

Failure Logs

rails g forest_liana:install
/Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/zeitwerk-2.5.1/lib/zeitwerk/loader/callbacks.rb:25:in on_file_autoloaded': expected file /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/forest_liana-7.4.3/app/services/forest_liana/ip_whitelist_checker.rb to define constant ForestLiana::IPWhitelistChecker, but didn't (Zeitwerk::NameError) from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/zeitwerk-2.5.1/lib/zeitwerk/kernel.rb:28:in block in require'
from internal:kernel:90:in tap' from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/zeitwerk-2.5.1/lib/zeitwerk/kernel.rb:27:in require'
from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/zeitwerk-2.5.1/lib/zeitwerk/loader/helpers.rb:95:in const_get' from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/zeitwerk-2.5.1/lib/zeitwerk/loader/helpers.rb:95:in cget'
from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/zeitwerk-2.5.1/lib/zeitwerk/loader.rb:232:in block (2 levels) in eager_load' from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/zeitwerk-2.5.1/lib/zeitwerk/loader/helpers.rb:26:in block in ls'
from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/zeitwerk-2.5.1/lib/zeitwerk/loader/helpers.rb:18:in each_child' from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/zeitwerk-2.5.1/lib/zeitwerk/loader/helpers.rb:18:in ls'
from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/zeitwerk-2.5.1/lib/zeitwerk/loader.rb:227:in block in eager_load' from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/zeitwerk-2.5.1/lib/zeitwerk/loader.rb:212:in synchronize'
from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/zeitwerk-2.5.1/lib/zeitwerk/loader.rb:212:in eager_load' from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/zeitwerk-2.5.1/lib/zeitwerk/loader.rb:312:in each'
from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/zeitwerk-2.5.1/lib/zeitwerk/loader.rb:312:in eager_load_all' from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/forest_liana-7.4.3/lib/forest_liana/engine.rb:72:in eager_load_active_record_descendants'
from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/railties-6.1.4.4/lib/rails/railtie.rb:207:in public_send' from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/railties-6.1.4.4/lib/rails/railtie.rb:207:in method_missing'
from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/forest_liana-7.4.3/lib/forest_liana/engine.rb:85:in block in <class:Engine>' from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/activesupport-6.1.4.4/lib/active_support/lazy_load_hooks.rb:68:in block in execute_hook'
from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/activesupport-6.1.4.4/lib/active_support/lazy_load_hooks.rb:61:in with_execution_control' from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/activesupport-6.1.4.4/lib/active_support/lazy_load_hooks.rb:66:in execute_hook'
from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/activesupport-6.1.4.4/lib/active_support/lazy_load_hooks.rb:52:in block in run_load_hooks' from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/activesupport-6.1.4.4/lib/active_support/lazy_load_hooks.rb:51:in each'
from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/activesupport-6.1.4.4/lib/active_support/lazy_load_hooks.rb:51:in run_load_hooks' from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/railties-6.1.4.4/lib/rails/application/finisher.rb:140:in block in module:Finisher'
from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/railties-6.1.4.4/lib/rails/initializable.rb:32:in instance_exec' from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/railties-6.1.4.4/lib/rails/initializable.rb:32:in run'
from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/railties-6.1.4.4/lib/rails/initializable.rb:61:in block in run_initializers' from /Users/davidesantangelo/.rvm/rubies/ruby-3.0.1/lib/ruby/3.0.0/tsort.rb:228:in block in tsort_each'
from /Users/davidesantangelo/.rvm/rubies/ruby-3.0.1/lib/ruby/3.0.0/tsort.rb:350:in block (2 levels) in each_strongly_connected_component' from /Users/davidesantangelo/.rvm/rubies/ruby-3.0.1/lib/ruby/3.0.0/tsort.rb:431:in each_strongly_connected_component_from'
from /Users/davidesantangelo/.rvm/rubies/ruby-3.0.1/lib/ruby/3.0.0/tsort.rb:349:in block in each_strongly_connected_component' from /Users/davidesantangelo/.rvm/rubies/ruby-3.0.1/lib/ruby/3.0.0/tsort.rb:347:in each'
from /Users/davidesantangelo/.rvm/rubies/ruby-3.0.1/lib/ruby/3.0.0/tsort.rb:347:in call' from /Users/davidesantangelo/.rvm/rubies/ruby-3.0.1/lib/ruby/3.0.0/tsort.rb:347:in each_strongly_connected_component'
from /Users/davidesantangelo/.rvm/rubies/ruby-3.0.1/lib/ruby/3.0.0/tsort.rb:226:in tsort_each' from /Users/davidesantangelo/.rvm/rubies/ruby-3.0.1/lib/ruby/3.0.0/tsort.rb:205:in tsort_each'
from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/railties-6.1.4.4/lib/rails/initializable.rb:60:in run_initializers' from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/railties-6.1.4.4/lib/rails/application.rb:391:in initialize!'
from /Users/davidesantangelo/Work/portal-v3/config/environment.rb:5:in <main>' from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in require'
from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in block in require_with_bootsnap_lfi' from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:100:in register'
from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in require_with_bootsnap_lfi' from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in require'
from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/zeitwerk-2.5.1/lib/zeitwerk/kernel.rb:35:in require' from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:332:in block in require'
from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:299:in load_dependency' from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:332:in require'
from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/spring-2.1.1/lib/spring/application.rb:106:in preload' from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/spring-2.1.1/lib/spring/application.rb:157:in serve'
from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/spring-2.1.1/lib/spring/application.rb:145:in block in run' from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/spring-2.1.1/lib/spring/application.rb:139:in loop'
from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/spring-2.1.1/lib/spring/application.rb:139:in run' from /Users/davidesantangelo/.rvm/gems/ruby-3.0.1/gems/spring-2.1.1/lib/spring/application/boot.rb:19:in <top (required)>'
from internal:/Users/davidesantangelo/.rvm/rubies/ruby-3.0.1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb:85:in require' from <internal:/Users/davidesantangelo/.rvm/rubies/ruby-3.0.1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in require'

Context

TODO: Please provide any relevant information about your setup.

  • Package Version:
  • Rails Version: 6.1
  • Database Dialect:
  • Database Version:
@matthv
Copy link
Member

matthv commented Dec 22, 2021

hi @davidesantangelo
We rolled back the last PR and updated only one specific gem (arel-helpers) on the new release.
Can you test the version 7.4.5, that everything is ok.

Thank you for your feedback.

@davidesantangelo
Copy link
Author

I have just used version 7.4.5 but the problem is still there. Thanks

@matthv
Copy link
Member

matthv commented Dec 22, 2021

I actually tried a clean install with rails 6.1.4.4 and ruby 3.0.1 and I'm not able to reproduce your issue.
Could you share your Gemfile please.

@davidesantangelo
Copy link
Author

davidesantangelo commented Dec 22, 2021

GEM
  remote: https://rubygems.org/
  specs:
    actioncable (6.1.4.4)
      actionpack (= 6.1.4.4)
      activesupport (= 6.1.4.4)
      nio4r (~> 2.0)
      websocket-driver (>= 0.6.1)
    actionmailbox (6.1.4.4)
      actionpack (= 6.1.4.4)
      activejob (= 6.1.4.4)
      activerecord (= 6.1.4.4)
      activestorage (= 6.1.4.4)
      activesupport (= 6.1.4.4)
      mail (>= 2.7.1)
    actionmailer (6.1.4.4)
      actionpack (= 6.1.4.4)
      actionview (= 6.1.4.4)
      activejob (= 6.1.4.4)
      activesupport (= 6.1.4.4)
      mail (~> 2.5, >= 2.5.4)
      rails-dom-testing (~> 2.0)
    actionpack (6.1.4.4)
      actionview (= 6.1.4.4)
      activesupport (= 6.1.4.4)
      rack (~> 2.0, >= 2.0.9)
      rack-test (>= 0.6.3)
      rails-dom-testing (~> 2.0)
      rails-html-sanitizer (~> 1.0, >= 1.2.0)
    actiontext (6.1.4.4)
      actionpack (= 6.1.4.4)
      activerecord (= 6.1.4.4)
      activestorage (= 6.1.4.4)
      activesupport (= 6.1.4.4)
      nokogiri (>= 1.8.5)
    actionview (6.1.4.4)
      activesupport (= 6.1.4.4)
      builder (~> 3.1)
      erubi (~> 1.4)
      rails-dom-testing (~> 2.0)
      rails-html-sanitizer (~> 1.1, >= 1.2.0)
    activejob (6.1.4.4)
      activesupport (= 6.1.4.4)
      globalid (>= 0.3.6)
    activemodel (6.1.4.4)
      activesupport (= 6.1.4.4)
    activerecord (6.1.4.4)
      activemodel (= 6.1.4.4)
      activesupport (= 6.1.4.4)
    activestorage (6.1.4.4)
      actionpack (= 6.1.4.4)
      activejob (= 6.1.4.4)
      activerecord (= 6.1.4.4)
      activesupport (= 6.1.4.4)
      marcel (~> 1.0.0)
      mini_mime (>= 1.1.0)
    activesupport (6.1.4.4)
      concurrent-ruby (~> 1.0, >= 1.0.2)
      i18n (>= 1.6, < 2)
      minitest (>= 5.1)
      tzinfo (~> 2.0)
      zeitwerk (~> 2.3)
    acts-as-taggable-on (7.0.0)
      activerecord (>= 5.0, < 6.2)
    addressable (2.8.0)
      public_suffix (>= 2.0.2, < 5.0)
    aes_key_wrap (1.1.0)
    airbrussh (1.4.0)
      sshkit (>= 1.6.1, != 1.7.0)
    arel-helpers (2.14.0)
      activerecord (>= 3.1.0, < 8)
    ast (2.4.2)
    attr_required (1.0.1)
    bcrypt (3.1.16)
    better_errors (2.9.1)
      coderay (>= 1.0.0)
      erubi (>= 1.0.0)
      rack (>= 0.9.0)
    bindata (2.4.10)
    bindex (0.8.1)
    binding_of_caller (1.0.0)
      debug_inspector (>= 0.0.1)
    bootsnap (1.9.3)
      msgpack (~> 1.0)
    brakeman (5.2.0)
    builder (3.2.4)
    byebug (11.1.3)
    cable_ready (5.0.0.pre8)
      rails (>= 5.2)
      thread-local (>= 1.1.0)
    capistrano (3.16.0)
      airbrussh (>= 1.0.0)
      i18n
      rake (>= 10.0.0)
      sshkit (>= 1.9.0)
    capistrano-bundler (2.0.1)
      capistrano (~> 3.1)
    capistrano-nvm (0.0.7)
      capistrano (~> 3.1)
    capistrano-rails (1.6.1)
      capistrano (~> 3.1)
      capistrano-bundler (>= 1.1, < 3)
    capistrano-rvm (0.1.2)
      capistrano (~> 3.0)
      sshkit (~> 1.2)
    capistrano-sidekiq (2.0.0)
      capistrano (>= 3.9.0)
      capistrano-bundler
      sidekiq (>= 6.0)
    capistrano3-puma (5.2.0)
      capistrano (~> 3.7)
      capistrano-bundler
      puma (>= 4.0, < 6.0)
    capybara (3.36.0)
      addressable
      matrix
      mini_mime (>= 0.1.3)
      nokogiri (~> 1.8)
      rack (>= 1.6.0)
      rack-test (>= 0.6.3)
      regexp_parser (>= 1.5, < 3.0)
      xpath (~> 3.2)
    childprocess (4.1.0)
    coderay (1.1.3)
    concurrent-ruby (1.1.9)
    connection_pool (2.2.5)
    crass (1.0.6)
    debug_inspector (1.1.0)
    devise (4.8.1)
      bcrypt (~> 3.0)
      orm_adapter (~> 0.1)
      railties (>= 4.1.0)
      responders
      warden (~> 1.2.3)
    devise-security (0.16.0)
      devise (>= 4.3.0, < 5.0)
    diff-lcs (1.4.4)
    docile (1.4.0)
    domain_name (0.5.20190701)
      unf (>= 0.0.5, < 1.0.0)
    dotenv (2.7.6)
    dotenv-rails (2.7.6)
      dotenv (= 2.7.6)
      railties (>= 3.2)
    erubi (1.10.0)
    factory_bot (6.2.0)
      activesupport (>= 5.0.0)
    factory_bot_rails (6.2.0)
      factory_bot (~> 6.2.0)
      railties (>= 5.0.0)
    faker (2.19.0)
      i18n (>= 1.6, < 2)
    ffi (1.15.4)
    forest_liana (7.4.5)
      arel-helpers
      bcrypt
      forestadmin-jsonapi-serializers (>= 0.14.0)
      groupdate (>= 5.0.0)
      httparty
      ipaddress
      json
      json-jwt
      jwt
      openid_connect
      rack-cors
      rails (>= 4.0)
      useragent
    forestadmin-jsonapi-serializers (2.0.0.pre.beta.2)
      activesupport
    geocoder (1.7.0)
    globalid (1.0.0)
      activesupport (>= 5.0)
    groupdate (5.2.4)
      activesupport (>= 5)
    hashie (5.0.0)
    hiredis (0.6.3)
    hotwire-rails (0.1.3)
      rails (>= 6.0.0)
      stimulus-rails
      turbo-rails
    http-accept (1.7.0)
    http-cookie (1.0.4)
      domain_name (~> 0.5)
    httparty (0.20.0)
      mime-types (~> 3.0)
      multi_xml (>= 0.5.2)
    httpclient (2.8.3)
    i18n (1.8.11)
      concurrent-ruby (~> 1.0)
    ipaddress (0.8.3)
    jbuilder (2.11.5)
      actionview (>= 5.0.0)
      activesupport (>= 5.0.0)
    json (2.6.1)
    json-jwt (1.13.0)
      activesupport (>= 4.2)
      aes_key_wrap
      bindata
    jwt (2.3.0)
    launchy (2.5.0)
      addressable (~> 2.7)
    letter_opener (1.7.0)
      launchy (~> 2.2)
    listen (3.7.0)
      rb-fsevent (~> 0.10, >= 0.10.3)
      rb-inotify (~> 0.9, >= 0.9.10)
    loofah (2.13.0)
      crass (~> 1.0.2)
      nokogiri (>= 1.5.9)
    mail (2.7.1)
      mini_mime (>= 0.1.1)
    mailgun-ruby (1.2.5)
      rest-client (>= 2.0.2)
    marcel (1.0.2)
    matrix (0.4.2)
    method_source (1.0.0)
    mime-types (3.4.1)
      mime-types-data (~> 3.2015)
    mime-types-data (3.2021.1115)
    mini_mime (1.1.2)
    minitest (5.15.0)
    msgpack (1.4.2)
    multi_xml (0.6.0)
    net-scp (3.0.0)
      net-ssh (>= 2.6.5, < 7.0.0)
    net-ssh (6.1.0)
    netrc (0.11.0)
    nio4r (2.5.8)
    nokogiri (1.12.5-arm64-darwin)
      racc (~> 1.4)
    nokogiri (1.12.5-x86_64-linux)
      racc (~> 1.4)
    openid_connect (1.3.0)
      activemodel
      attr_required (>= 1.0.0)
      json-jwt (>= 1.5.0)
      rack-oauth2 (>= 1.6.1)
      swd (>= 1.0.0)
      tzinfo
      validate_email
      validate_url
      webfinger (>= 1.0.1)
    orm_adapter (0.5.0)
    pagy (5.6.6)
    parallel (1.21.0)
    parser (3.0.3.2)
      ast (~> 2.4.1)
    pg (1.2.3)
    pg_search (2.3.5)
      activerecord (>= 5.2)
      activesupport (>= 5.2)
    pry (0.14.1)
      coderay (~> 1.1)
      method_source (~> 1.0)
    pry-rails (0.3.9)
      pry (>= 0.10.4)
    public_suffix (4.0.6)
    puma (5.5.2)
      nio4r (~> 2.0)
    pundit (2.1.1)
      activesupport (>= 3.0.0)
    racc (1.6.0)
    rack (2.2.3)
    rack-cors (1.1.1)
      rack (>= 2.0.0)
    rack-oauth2 (1.19.0)
      activesupport
      attr_required
      httpclient
      json-jwt (>= 1.11.0)
      rack (>= 2.1.0)
    rack-proxy (0.7.0)
      rack
    rack-test (1.1.0)
      rack (>= 1.0, < 3)
    rails (6.1.4.4)
      actioncable (= 6.1.4.4)
      actionmailbox (= 6.1.4.4)
      actionmailer (= 6.1.4.4)
      actionpack (= 6.1.4.4)
      actiontext (= 6.1.4.4)
      actionview (= 6.1.4.4)
      activejob (= 6.1.4.4)
      activemodel (= 6.1.4.4)
      activerecord (= 6.1.4.4)
      activestorage (= 6.1.4.4)
      activesupport (= 6.1.4.4)
      bundler (>= 1.15.0)
      railties (= 6.1.4.4)
      sprockets-rails (>= 2.0.0)
    rails-dom-testing (2.0.3)
      activesupport (>= 4.2.0)
      nokogiri (>= 1.6)
    rails-html-sanitizer (1.4.2)
      loofah (~> 2.3)
    rails-i18n (6.0.0)
      i18n (>= 0.7, < 2)
      railties (>= 6.0.0, < 7)
    rails_console_toolkit (0.6.0)
      rails (>= 4)
    railties (6.1.4.4)
      actionpack (= 6.1.4.4)
      activesupport (= 6.1.4.4)
      method_source
      rake (>= 0.13)
      thor (~> 1.0)
    rainbow (3.0.0)
    rake (13.0.6)
    rb-fsevent (0.11.0)
    rb-inotify (0.10.1)
      ffi (~> 1.0)
    redis (4.5.1)
    regexp_parser (2.2.0)
    responders (3.0.1)
      actionpack (>= 5.0)
      railties (>= 5.0)
    rest-client (2.1.0)
      http-accept (>= 1.7.0, < 2.0)
      http-cookie (>= 1.0.2, < 2.0)
      mime-types (>= 1.16, < 4.0)
      netrc (~> 0.8)
    rexml (3.2.5)
    rollbar (3.3.0)
    rspec-core (3.10.1)
      rspec-support (~> 3.10.0)
    rspec-expectations (3.10.1)
      diff-lcs (>= 1.2.0, < 2.0)
      rspec-support (~> 3.10.0)
    rspec-mocks (3.10.2)
      diff-lcs (>= 1.2.0, < 2.0)
      rspec-support (~> 3.10.0)
    rspec-rails (5.0.2)
      actionpack (>= 5.2)
      activesupport (>= 5.2)
      railties (>= 5.2)
      rspec-core (~> 3.10)
      rspec-expectations (~> 3.10)
      rspec-mocks (~> 3.10)
      rspec-support (~> 3.10)
    rspec-sidekiq (3.1.0)
      rspec-core (~> 3.0, >= 3.0.0)
      sidekiq (>= 2.4.0)
    rspec-support (3.10.3)
    rubocop (1.23.0)
      parallel (~> 1.10)
      parser (>= 3.0.0.0)
      rainbow (>= 2.2.2, < 4.0)
      regexp_parser (>= 1.8, < 3.0)
      rexml
      rubocop-ast (>= 1.12.0, < 2.0)
      ruby-progressbar (~> 1.7)
      unicode-display_width (>= 1.4.0, < 3.0)
    rubocop-ast (1.15.0)
      parser (>= 3.0.1.1)
    rubocop-performance (1.12.0)
      rubocop (>= 1.7.0, < 2.0)
      rubocop-ast (>= 0.4.0)
    ruby-progressbar (1.11.0)
    rubyzip (2.3.2)
    sass-rails (6.0.0)
      sassc-rails (~> 2.1, >= 2.1.1)
    sassc (2.4.0)
      ffi (~> 1.9)
    sassc-rails (2.1.2)
      railties (>= 4.0.0)
      sassc (>= 2.0)
      sprockets (> 3.0)
      sprockets-rails
      tilt
    selenium-webdriver (4.1.0)
      childprocess (>= 0.5, < 5.0)
      rexml (~> 3.2, >= 3.2.5)
      rubyzip (>= 1.2.2)
    semantic_range (3.0.0)
    shoulda-matchers (5.0.0)
      activesupport (>= 5.2.0)
    sidekiq (6.3.1)
      connection_pool (>= 2.2.2)
      rack (~> 2.0)
      redis (>= 4.2.0)
    sidekiq-lock (0.5.0)
      redis (>= 3.0.5)
      sidekiq (>= 2.14.0)
    simple_form (5.1.0)
      actionpack (>= 5.2)
      activemodel (>= 5.2)
    simplecov (0.21.2)
      docile (~> 1.1)
      simplecov-html (~> 0.11)
      simplecov_json_formatter (~> 0.1)
    simplecov-html (0.12.3)
    simplecov_json_formatter (0.1.3)
    spring (2.1.1)
    spring-commands-rspec (1.0.4)
      spring (>= 0.9.1)
    spring-watcher-listen (2.0.1)
      listen (>= 2.7, < 4.0)
      spring (>= 1.2, < 3.0)
    sprockets (4.0.2)
      concurrent-ruby (~> 1.0)
      rack (> 1, < 3)
    sprockets-rails (3.4.2)
      actionpack (>= 5.2)
      activesupport (>= 5.2)
      sprockets (>= 3.0.0)
    sshkit (1.21.2)
      net-scp (>= 1.1.2)
      net-ssh (>= 2.8.0)
    standard (1.5.0)
      rubocop (= 1.23.0)
      rubocop-performance (= 1.12.0)
    statesman (9.0.0)
    stimulus-rails (1.0.2)
      railties (>= 6.0.0)
    swd (1.3.0)
      activesupport (>= 3)
      attr_required (>= 0.0.5)
      httpclient (>= 2.4)
    thor (1.1.0)
    thread-local (1.1.0)
    tilt (2.0.10)
    turbo-rails (1.0.0)
      actionpack (>= 6.0.0)
      railties (>= 6.0.0)
    tzinfo (2.0.4)
      concurrent-ruby (~> 1.0)
    unf (0.1.4)
      unf_ext
    unf_ext (0.0.8)
    unicode-display_width (2.1.0)
    useragent (0.16.10)
    validate_email (0.1.6)
      activemodel (>= 3.0)
      mail (>= 2.2.5)
    validate_url (1.0.13)
      activemodel (>= 3.0.0)
      public_suffix
    view_component (2.47.0)
      activesupport (>= 5.0.0, < 8.0)
      method_source (~> 1.0)
    warden (1.2.9)
      rack (>= 2.0.9)
    web-console (4.2.0)
      actionview (>= 6.0.0)
      activemodel (>= 6.0.0)
      bindex (>= 0.4.0)
      railties (>= 6.0.0)
    webdrivers (5.0.0)
      nokogiri (~> 1.6)
      rubyzip (>= 1.3.0)
      selenium-webdriver (~> 4.0)
    webfinger (1.2.0)
      activesupport
      httpclient (>= 2.4)
    webpacker (5.4.3)
      activesupport (>= 5.2)
      rack-proxy (>= 0.6.1)
      railties (>= 5.2)
      semantic_range (>= 2.3.0)
    websocket-driver (0.7.5)
      websocket-extensions (>= 0.1.0)
    websocket-extensions (0.1.5)
    xpath (3.2.0)
      nokogiri (~> 1.8)
    zeitwerk (2.5.1)

PLATFORMS
  arm64-darwin-20
  x86_64-linux

DEPENDENCIES
  acts-as-taggable-on (~> 7.0)
  better_errors
  binding_of_caller
  bootsnap (>= 1.4.4)
  brakeman
  byebug
  cable_ready (= 5.0.0.pre8)
  capistrano
  capistrano-bundler
  capistrano-nvm
  capistrano-rails
  capistrano-rvm
  capistrano-sidekiq
  capistrano3-puma
  capybara (>= 3.26)
  devise
  devise-security
  dotenv-rails (~> 2.7)
  factory_bot_rails (~> 6.1)
  faker (~> 2.17)
  forest_liana (~> 7.4.5)
  geocoder
  hashie
  hiredis
  hotwire-rails
  ipaddress (~> 0.8.3)
  jbuilder (~> 2.7)
  jwt
  launchy
  letter_opener
  listen (~> 3.3)
  mailgun-ruby (~> 1.2.5)
  net-scp
  net-ssh
  pagy
  pg (~> 1.1)
  pg_search
  pry (~> 0.14.0)
  pry-rails
  puma (~> 5.0)
  pundit
  rails (~> 6.1.3)
  rails-i18n
  rails_console_toolkit
  redis (~> 4.0)
  rexml (~> 3.2)
  rollbar (~> 3.2)
  rspec-rails (~> 5.0)
  rspec-sidekiq
  sass-rails (>= 6)
  selenium-webdriver
  shoulda-matchers (~> 5.0)
  sidekiq
  sidekiq-lock (~> 0.5.0)
  simple_form (~> 5.1)
  simplecov
  spring
  spring-commands-rspec
  spring-watcher-listen (~> 2.0.0)
  standard
  statesman (~> 9.0)
  turbo-rails (~> 1.0.0)
  tzinfo-data
  view_component (~> 2.28)
  web-console (>= 4.1.0)
  webdrivers
  webpacker (~> 5.0)

RUBY VERSION
   ruby 3.0.1p64

BUNDLED WITH
   2.2.15

@matthv
Copy link
Member

matthv commented Dec 22, 2021

Could you please also share the Gemfile as well ? (not only the Gemfile.lock)

@davidesantangelo
Copy link
Author

source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '3.0.1'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
gem 'rails', '~> 6.1.3'
# Use postgresql as the database for Active Record
gem 'pg', '~> 1.1'
# Use Puma as the app server
gem 'puma', '~> 5.0'
# Use SCSS for stylesheets
gem 'sass-rails', '>= 6'
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
gem 'webpacker', '~> 5.0'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.7'
# Use Redis adapter to run Action Cable in production
gem 'redis', '~> 4.0', require: ["redis", "redis/connection/hiredis"]

# Use Active Model has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use Active Storage variant
# gem 'image_processing', '~> 1.2'

# Reduces boot times through caching; required in config/boot.rb
gem 'bootsnap', '>= 1.4.4', require: false

gem 'acts-as-taggable-on', '~> 7.0'

gem 'devise'

gem 'devise-security'

gem 'simple_form', '~> 5.1'

gem 'rails-i18n'

gem 'net-ssh'

gem 'net-scp'

gem 'jwt'

gem 'mailgun-ruby', '~>1.2.5'

gem 'geocoder'

gem 'hashie'

gem 'hiredis'

gem 'pagy'

gem 'pg_search'

gem 'pundit'

gem 'sidekiq'

gem 'turbo-rails', '~> 1.0.0'

group :development, :test do
  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
  gem 'byebug', platforms: %i[mri mingw x64_mingw]

  gem 'brakeman'

  gem 'pry', '~> 0.14.0'

  gem 'pry-rails'

  gem 'standard'
end

group :development do
  # Access an interactive console on exception pages or by calling 'console' anywhere in the code.
  gem 'web-console', '>= 4.1.0'
  # Display performance information such as SQL time and flame graphs for each request in your browser.
  # Can be configured to work on production as well see: https://github.com/MiniProfiler/rack-mini-profiler/blob/master/README.md
  # gem 'rack-mini-profiler', '~> 2.0'
  gem 'listen', '~> 3.3'

  gem 'letter_opener'

  # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
  gem 'spring'
  gem 'spring-commands-rspec'
  gem 'spring-watcher-listen', '~> 2.0.0'

  # In-browser debugging
  gem 'better_errors'
  gem 'binding_of_caller'

  # Capistrano
  gem 'capistrano', require: false
  gem 'capistrano3-puma', require: false
  gem 'capistrano-bundler', require: false
  gem 'capistrano-rails', require: false
  gem 'capistrano-rvm', require: false
  gem 'capistrano-sidekiq', require: false
  # gem 'capistrano-yarn', require: false
  gem 'capistrano-nvm', require: false
end

group :test do
  # Adds support for Capybara system testing and selenium driver
  gem 'capybara', '>= 3.26'
  gem 'selenium-webdriver'
  # Easy installation and use of web drivers to run system tests with browsers
  gem 'factory_bot_rails', '~> 6.1'
  gem 'faker', '~> 2.17'
  gem 'launchy'
  gem 'rspec-rails', '~> 5.0'
  gem 'rspec-sidekiq'
  gem 'shoulda-matchers', '~> 5.0'
  gem 'simplecov', require: false
  gem 'webdrivers'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]

gem 'rexml', '~> 3.2'

gem 'hotwire-rails'

gem 'view_component', '~> 2.28'

gem 'ipaddress', '~> 0.8.3'

gem 'rails_console_toolkit'

gem 'dotenv-rails', '~> 2.7'

gem 'rollbar', '~> 3.2'

gem "statesman", "~> 9.0"

gem "sidekiq-lock", "~> 0.5.0"

gem "cable_ready", "5.0.0.pre8"

gem "forest_liana", "~> 7.4.5"

@matthv
Copy link
Member

matthv commented Dec 23, 2021

Unfortunately, I am still not able to reproduce the issue with the provided Gemfile.

@tylerdavis
Copy link

I'm getting a similar error when running the install script.

Gemfile

source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby '~> 3.0.2'

gem 'aasm'
gem 'active_interaction', '~> 4.1'
gem 'active_link_to'
gem 'activerecord-nulldb-adapter'
gem 'active_storage_validations'
gem 'acts_as_list'
gem 'after_commit_everywhere'
gem 'awesome_print'
gem 'attr_encrypted'
gem 'analytics-ruby', '~> 2.4.0', :require => 'segment/analytics'
gem 'bootsnap', '>= 1.1.0', require: false
gem 'bootstrap'
gem 'breadcrumbs_on_rails'
gem 'chroma'
gem 'clearbit'
gem 'devise', '~> 4.8'
gem 'devise-bootstrapped', github: 'excid3/devise-bootstrapped', branch: 'bootstrap4'
gem 'devise_invitable', '~> 2.0.6'
gem 'draftjs_exporter'
gem 'faraday'
gem 'foreman'
gem 'forest_liana'
gem 'friendly_id', '~> 5.4'
gem 'goldiloader'
gem 'google-cloud-storage', '~> 1.35', require: false
gem 'google-cloud-secret_manager', require: false
gem 'graphql'
gem 'graphiql-rails'
gem 'gravatar_image_tag', github: 'mdeering/gravatar_image_tag'
gem 'hiredis'
gem 'image_processing', '~> 1.12'
gem 'imgix-rails'
gem 'jbuilder', '~> 2.11'
gem 'jquery-rails', '~> 4.4.0'
gem 'js-routes'
gem 'jsonpath'
gem 'jwt'
gem 'kramdown'
gem 'kubeclient'
gem 'liquid'
gem 'local_time', '~> 2.0', '>= 2.0.1'
gem 'lograge'
gem 'meta-tags'
gem 'mini_magick', '~> 4.11'
gem 'mjml-rails', '~> 4.7.1'
gem 'money-rails', '~>1.14'
gem 'name_of_person', '~> 1.0'
gem 'nanoid', require: false
gem 'newrelic_rpm'
gem 'okcomputer'
gem 'omniauth-asana'
gem 'omniauth-auth0', '~> 2.6'
gem 'omniauth-rails_csrf_protection', '~> 0.1'
gem 'openssl'
gem 'pagy', '5.6.5'
gem 'pg', '>= 0.18'
gem 'pg_search'
gem 'popper_js'
gem 'postmark-rails'
gem 'puma'
gem 'pundit'
gem 'rack-cors'
gem 'rails', '6.1.4.4'
gem 'rails_real_favicon'
gem 'react-rails'
gem 'recaptcha'
gem 'redis'
gem 'responders'
gem 'reverse_markdown'
gem 'sassc-rails'
gem 'scenic'
gem 'select2-rails'
gem 'sentry-ruby', '4.8.1'
gem 'sentry-rails', '4.8.1'
gem 'sitemap_generator', '~> 6.1'
gem 'slack-ruby-client'
gem 'splitclient-rb'
gem 'stripe'
gem 'stripe_event', '~>2.3'
gem 'trestle'
gem 'trestle-auth'
gem 'trestle-search'
gem 'trestle-tinymce'
gem 'uglifier', '>= 1.3.0'
gem 'utf8-cleaner'
gem 'valid_email2'
gem 'webpacker'
gem 'webpacker-react', "~> 1.0.0.beta.1"
gem 'workos'

gem 'sentry-sidekiq', '4.8.1'
gem 'sidekiq-cron'
gem 'sidekiq-logstash', '~> 2.0'
gem 'trestle-sidekiq'

group :development do
  gem 'guard'
  gem 'guard-rspec'
  gem 'letter_opener'
  gem 'rack-mini-profiler'
  gem 'web-console', '>= 3.3.0'
end

group :development, :test do
  gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
  gem 'rspec-rails', '~> 5.0.1'
  gem 'rspec-core'
  gem 'spring-commands-rspec'
end

group :development, :test, :preview do
  gem 'factory_bot_rails', '~> 6.2'
  gem 'faker'
  gem 'database_cleaner'
end

group :development, :production, :preview do
  gem 'listen', '>= 3.0.5', '< 3.8'
end

Output from command:

/Users/tmd/Development/launchnotes/backend/app/interactions/auth0/verify_access_token.rb:5:in `<class:VerifyAccessToken>': undefined method `graphql_url' for #<Module:0x0000000131c07da8> (NoMethodError)
	from /Users/tmd/Development/launchnotes/backend/app/interactions/auth0/verify_access_token.rb:1:in `<main>'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:100:in `register'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/zeitwerk-2.5.2/lib/zeitwerk/kernel.rb:27:in `require'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/zeitwerk-2.5.2/lib/zeitwerk/loader/helpers.rb:95:in `const_get'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/zeitwerk-2.5.2/lib/zeitwerk/loader/helpers.rb:95:in `cget'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/zeitwerk-2.5.2/lib/zeitwerk/loader.rb:229:in `block (2 levels) in eager_load'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/zeitwerk-2.5.2/lib/zeitwerk/loader/helpers.rb:26:in `block in ls'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/zeitwerk-2.5.2/lib/zeitwerk/loader/helpers.rb:18:in `each_child'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/zeitwerk-2.5.2/lib/zeitwerk/loader/helpers.rb:18:in `ls'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/zeitwerk-2.5.2/lib/zeitwerk/loader.rb:224:in `block in eager_load'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/zeitwerk-2.5.2/lib/zeitwerk/loader.rb:209:in `synchronize'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/zeitwerk-2.5.2/lib/zeitwerk/loader.rb:209:in `eager_load'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/zeitwerk-2.5.2/lib/zeitwerk/loader.rb:309:in `each'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/zeitwerk-2.5.2/lib/zeitwerk/loader.rb:309:in `eager_load_all'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/forest_liana/engine.rb:72:in `eager_load_active_record_descendants'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/railtie.rb:207:in `public_send'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/railtie.rb:207:in `method_missing'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/forest_liana/engine.rb:85:in `block in <class:Engine>'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/lazy_load_hooks.rb:68:in `block in execute_hook'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/lazy_load_hooks.rb:61:in `with_execution_control'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/lazy_load_hooks.rb:66:in `execute_hook'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/lazy_load_hooks.rb:51:in `each'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/application/finisher.rb:140:in `block in <module:Finisher>'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/initializable.rb:32:in `instance_exec'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/initializable.rb:32:in `run'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/initializable.rb:61:in `block in run_initializers'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:228:in `block in tsort_each'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:431:in `each_strongly_connected_component_from'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:349:in `block in each_strongly_connected_component'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:347:in `each'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:347:in `call'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:347:in `each_strongly_connected_component'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:226:in `tsort_each'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:205:in `tsort_each'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/initializable.rb:60:in `run_initializers'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/application.rb:391:in `initialize!'
	from /Users/tmd/Development/launchnotes/backend/config/environment.rb:5:in `<main>'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:100:in `register'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/zeitwerk-2.5.2/lib/zeitwerk/kernel.rb:36:in `require'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:332:in `block in require'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:299:in `load_dependency'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:332:in `require'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/application.rb:367:in `require_environment!'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/command/actions.rb:28:in `require_environment!'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/command/actions.rb:15:in `require_application_and_environment!'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/commands/generate/generate_command.rb:21:in `perform'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/command/base.rb:69:in `perform'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/command.rb:48:in `invoke'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/commands.rb:18:in `<main>'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:100:in `register'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
	from bin/rails:9:in `<main>'

I'm not certain, but it appears that you may be eager loading classes out of order.

Using gem 'forest_liana', require: false gets us to a different error:

/Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/generators/forest_liana/install_generator.rb:11:in `install': undefined method `env_secret' for ForestLiana:Module (NoMethodError)
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/thor-1.1.0/lib/thor/invocation.rb:134:in `block in invoke_all'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/thor-1.1.0/lib/thor/invocation.rb:134:in `each'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/thor-1.1.0/lib/thor/invocation.rb:134:in `map'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/thor-1.1.0/lib/thor/invocation.rb:134:in `invoke_all'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/thor-1.1.0/lib/thor/group.rb:232:in `dispatch'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/thor-1.1.0/lib/thor/base.rb:485:in `start'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/generators.rb:275:in `invoke'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/commands/generate/generate_command.rb:26:in `perform'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/command/base.rb:69:in `perform'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/command.rb:48:in `invoke'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/commands.rb:18:in `<main>'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:100:in `register'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
	from bin/rails:9:in `<main>'

Monkey patching the env_secret to return nil got the generator to run:

3.0.2 :045 > module ForestLiana
3.0.2 :046 >   def self.env_secret; nil
3.0.2 :047 >   end
3.0.2 :048 > end

3.0.2 :051 > Rails::Generators.invoke 'forest_liana:install', ['MY_SECRET']
       route  mount ForestLiana::Engine => '/forest'

Forest generated a random authentication secret to secure the data access of your local project.
You can change it at any time in your config/secrets.yml file.

      create  config/secrets.yml
 initializer  forest_liana.rb

That got the actual initializer running, which led me to the following:

/Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/forest_liana/bootstrapper.rb:128:in `rescue in fetch_model': uninitialized constant ForestLiana::Bootstrapper::FOREST_REPORTER (NameError)
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/forest_liana/bootstrapper.rb:114:in `fetch_model'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/forest_liana/bootstrapper.rb:111:in `block in fetch_models'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/forest_liana/bootstrapper.rb:111:in `each'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/forest_liana/bootstrapper.rb:111:in `fetch_models'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/forest_liana/bootstrapper.rb:28:in `initialize'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/forest_liana/engine.rb:91:in `new'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/forest_liana/engine.rb:91:in `block in <class:Engine>'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/lazy_load_hooks.rb:68:in `block in execute_hook'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/lazy_load_hooks.rb:61:in `with_execution_control'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/lazy_load_hooks.rb:66:in `execute_hook'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/lazy_load_hooks.rb:51:in `each'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/application/finisher.rb:140:in `block in <module:Finisher>'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/initializable.rb:32:in `instance_exec'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/initializable.rb:32:in `run'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/initializable.rb:61:in `block in run_initializers'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:228:in `block in tsort_each'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:431:in `each_strongly_connected_component_from'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:349:in `block in each_strongly_connected_component'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:347:in `each'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:347:in `call'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:347:in `each_strongly_connected_component'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:226:in `tsort_each'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:205:in `tsort_each'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/initializable.rb:60:in `run_initializers'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/application.rb:391:in `initialize!'
	from /Users/tmd/Development/launchnotes/backend/config/environment.rb:5:in `<main>'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:100:in `register'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/zeitwerk-2.5.2/lib/zeitwerk/kernel.rb:36:in `require'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:332:in `block in require'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:299:in `load_dependency'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:332:in `require'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/application.rb:367:in `require_environment!'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/command/actions.rb:28:in `require_environment!'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/command/actions.rb:15:in `require_application_and_environment!'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/commands/console/console_command.rb:101:in `perform'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/command/base.rb:69:in `perform'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/command.rb:48:in `invoke'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/commands.rb:18:in `<main>'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:100:in `register'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
	from bin/rails:9:in `<main>'
/Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/forest_liana/bootstrapper.rb:128:in `rescue in fetch_model': uninitialized constant ForestLiana::Bootstrapper::FOREST_REPORTER (NameError)
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/forest_liana/bootstrapper.rb:114:in `fetch_model'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/forest_liana/bootstrapper.rb:117:in `block in fetch_model'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/forest_liana/bootstrapper.rb:117:in `each'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/forest_liana/bootstrapper.rb:117:in `fetch_model'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/forest_liana/bootstrapper.rb:111:in `block in fetch_models'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/forest_liana/bootstrapper.rb:111:in `each'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/forest_liana/bootstrapper.rb:111:in `fetch_models'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/forest_liana/bootstrapper.rb:28:in `initialize'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/forest_liana/engine.rb:91:in `new'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/forest_liana/engine.rb:91:in `block in <class:Engine>'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/lazy_load_hooks.rb:68:in `block in execute_hook'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/lazy_load_hooks.rb:61:in `with_execution_control'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/lazy_load_hooks.rb:66:in `execute_hook'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/lazy_load_hooks.rb:51:in `each'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/application/finisher.rb:140:in `block in <module:Finisher>'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/initializable.rb:32:in `instance_exec'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/initializable.rb:32:in `run'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/initializable.rb:61:in `block in run_initializers'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:228:in `block in tsort_each'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:431:in `each_strongly_connected_component_from'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:349:in `block in each_strongly_connected_component'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:347:in `each'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:347:in `call'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:347:in `each_strongly_connected_component'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:226:in `tsort_each'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:205:in `tsort_each'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/initializable.rb:60:in `run_initializers'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/application.rb:391:in `initialize!'
	from /Users/tmd/Development/launchnotes/backend/config/environment.rb:5:in `<main>'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:100:in `register'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/zeitwerk-2.5.2/lib/zeitwerk/kernel.rb:36:in `require'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:332:in `block in require'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:299:in `load_dependency'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:332:in `require'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/application.rb:367:in `require_environment!'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/command/actions.rb:28:in `require_environment!'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/command/actions.rb:15:in `require_application_and_environment!'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/commands/console/console_command.rb:101:in `perform'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/command/base.rb:69:in `perform'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/command.rb:48:in `invoke'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/commands.rb:18:in `<main>'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:100:in `register'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
	from bin/rails:9:in `<main>'
/Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/forest_liana/bootstrapper.rb:106:in `analyze_model?': uninitialized constant ForestLiana::Bootstrapper::SchemaUtils (NameError)
Did you mean?  ForestLiana::SchemaFileUpdater
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/forest_liana/bootstrapper.rb:123:in `fetch_model'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/forest_liana/bootstrapper.rb:117:in `block in fetch_model'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/forest_liana/bootstrapper.rb:117:in `each'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/forest_liana/bootstrapper.rb:117:in `fetch_model'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/forest_liana/bootstrapper.rb:111:in `block in fetch_models'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/forest_liana/bootstrapper.rb:111:in `each'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/forest_liana/bootstrapper.rb:111:in `fetch_models'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/forest_liana/bootstrapper.rb:28:in `initialize'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/forest_liana/engine.rb:91:in `new'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/forest_liana-7.4.2/lib/forest_liana/engine.rb:91:in `block in <class:Engine>'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/lazy_load_hooks.rb:68:in `block in execute_hook'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/lazy_load_hooks.rb:61:in `with_execution_control'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/lazy_load_hooks.rb:66:in `execute_hook'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/lazy_load_hooks.rb:51:in `each'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/application/finisher.rb:140:in `block in <module:Finisher>'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/initializable.rb:32:in `instance_exec'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/initializable.rb:32:in `run'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/initializable.rb:61:in `block in run_initializers'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:228:in `block in tsort_each'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:431:in `each_strongly_connected_component_from'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:349:in `block in each_strongly_connected_component'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:347:in `each'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:347:in `call'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:347:in `each_strongly_connected_component'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:226:in `tsort_each'
	from /Users/tmd/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:205:in `tsort_each'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/initializable.rb:60:in `run_initializers'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/application.rb:391:in `initialize!'
	from /Users/tmd/Development/launchnotes/backend/config/environment.rb:5:in `<main>'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:100:in `register'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/zeitwerk-2.5.2/lib/zeitwerk/kernel.rb:36:in `require'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:332:in `block in require'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:299:in `load_dependency'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:332:in `require'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/application.rb:367:in `require_environment!'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/command/actions.rb:28:in `require_environment!'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/command/actions.rb:15:in `require_application_and_environment!'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/commands/console/console_command.rb:101:in `perform'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/command/base.rb:69:in `perform'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/command.rb:48:in `invoke'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.4/lib/rails/commands.rb:18:in `<main>'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:100:in `register'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
	from /Users/tmd/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
	from bin/rails:9:in `<main>'

If I had to guess, you're not using the class loader correctly.

Is there a version of this gem that is known to work with Rails 6 that we can use to evaluate Forest?

@matthv
Copy link
Member

matthv commented Jan 7, 2022

On a fresh install with rails 6 and with your Gemfile, I can't reproduce the issue.
However I'll look into it.

Is your rails 6 a fresh install or an old rails 5 you migrated to rails 6 ?
Could you execute this command and share the result please.

zeitwerk:check

Could you try adding Rails.autoloaders.main.ignore(Rails.root.join('lib/forest_liana')) to your config/application.rb?

@dsomel21
Copy link

dsomel21 commented Mar 20, 2023

Just wanted to update. I am having this issue, too.

<internal:/Users/dilraj/.rvm/rubies/ruby-3.2.1/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require': cannot load such file -- httpclient (LoadError)

I am on:

  • Ruby 3.2.1
  • Rails 7.0.4
  • Bundler 2.4.7
    (Gemfile)

The Rails.autoloaders.main.ignore(Rails.root.join('lib/forest_liana')) (perhaps I added it to the wrong line, I got an undefined method autoloaders' for nil:NilClass (NoMethodError)` error.

I even tried changing my Ruby version to 3.2.0, but no luck.

This is what happens when I run gem list: (Gist Source)

Let me know if there's any way to get around it! We need an admin section soon, so it will make or break whether we use Forest Admin.

@matthv
Copy link
Member

matthv commented Mar 21, 2023

Hi @dsomel21,

Could you share here the result of the command:
bin/rails zeitwerk:check

@dsomel21
Copy link

dsomel21 commented Mar 28, 2023

@matthv, I apologize for the late response.

When I run bin/rails zeitwerk:check after attempting to run rails g forest_liana:install {id}, I get:

LoadError: cannot load such file -- httpclient
/Users/dilraj/Documents/SPG/spg2/config/environment.rb:7:in `<main>'
Tasks: TOP => zeitwerk:check => environment

This hint isn't particularly useful; that line just points to the Rails.application.initialize! line.

When I run it with --trace, it's pretty much the same error that I had in my last message:

LoadError: cannot load such file -- httpclient
<internal:/Users/dilraj/.rvm/rubies/ruby-3.2.1/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/Users/dilraj/.rvm/rubies/ruby-3.2.1/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
/Users/dilraj/.rvm/gems/ruby-3.2.1/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
...

@matthv
Copy link
Member

matthv commented Apr 4, 2023

Unfortunately, we are not able to reproduce this issue internally. Can any of you share with me a repository to inspect and correct this old issue?

@dsomel21
Copy link

dsomel21 commented Apr 6, 2023

Yes! I can hop on a call too, if it can help :)

It's happening in our main SPG2 Repo in the main branch right now! That would be great if you could help 🤞🏾

@matthv
Copy link
Member

matthv commented Apr 7, 2023

I reproduced the issue on my end, thanks for your repo.
Apparently bundler locks our gem on a old version 6.6.3

I forced on the Gemfile to use de last version ~> 8.0 and the install command works correctly. However I had to comment the turbo-rails gem who have a uninitialized constant issue.

@dsomel21
Copy link

dsomel21 commented Apr 7, 2023

Success!

Screen Shot 2023-04-07 at 5 37 12 AM

I did exactly what you said!

Steps to fix my problem ✅

  1. Go to the Forest Admin forest admin instructions for your app
  2. Run bundle add forest_liana
  3. Open up the Gemfile
  4. Change gem "forest_liana", "~> 6.6" to gem 'forest_liana', '~> 8.0'
  5. Comment out gem 'turbo-rails' (I don't need this at the moment, so it's okay).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants