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

glueby:contract:install does not work #206

Closed
nakajo2011 opened this issue Jan 23, 2025 · 0 comments · Fixed by #207
Closed

glueby:contract:install does not work #206

nakajo2011 opened this issue Jan 23, 2025 · 0 comments · Fixed by #207

Comments

@nakajo2011
Copy link

nakajo2011 commented Jan 23, 2025

Description

I try to install glueby in ruby-3.3.0 + rails 7.2.2.1 on Docker compose.
but happend error below:

root@00335676e899:/myapp# rails glueby:contract:install
bin/rails aborted!
NameError: uninitialized constant Rails::Generators (NameError)

      Rails::Generators.invoke("glueby:contract:initializer")
           ^^^^^^^^^^^^
Did you mean?  Enumerator

Tasks: TOP => glueby:contract:install
(See full trace by running task with --trace)

What I've tried

I solved it that added require "rails:generater" in config/application.rb, like below:

require_relative "boot"

require "rails/all"
require 'rails/generators' # added this line

# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.

Expected Action

If above solution is correct, please add it to README.md.
Otherwise tell me correct solution.

Environment Information

ruby version

ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [x86_64-linux]

Gemfile.lock

GEM
  remote: https://rubygems.org/
  specs:
    actioncable (7.2.2.1)
      actionpack (= 7.2.2.1)
      activesupport (= 7.2.2.1)
      nio4r (~> 2.0)
      websocket-driver (>= 0.6.1)
      zeitwerk (~> 2.6)
    actionmailbox (7.2.2.1)
      actionpack (= 7.2.2.1)
      activejob (= 7.2.2.1)
      activerecord (= 7.2.2.1)
      activestorage (= 7.2.2.1)
      activesupport (= 7.2.2.1)
      mail (>= 2.8.0)
    actionmailer (7.2.2.1)
      actionpack (= 7.2.2.1)
      actionview (= 7.2.2.1)
      activejob (= 7.2.2.1)
      activesupport (= 7.2.2.1)
      mail (>= 2.8.0)
      rails-dom-testing (~> 2.2)
    actionpack (7.2.2.1)
      actionview (= 7.2.2.1)
      activesupport (= 7.2.2.1)
      nokogiri (>= 1.8.5)
      racc
      rack (>= 2.2.4, < 3.2)
      rack-session (>= 1.0.1)
      rack-test (>= 0.6.3)
      rails-dom-testing (~> 2.2)
      rails-html-sanitizer (~> 1.6)
      useragent (~> 0.16)
    actiontext (7.2.2.1)
      actionpack (= 7.2.2.1)
      activerecord (= 7.2.2.1)
      activestorage (= 7.2.2.1)
      activesupport (= 7.2.2.1)
      globalid (>= 0.6.0)
      nokogiri (>= 1.8.5)
    actionview (7.2.2.1)
      activesupport (= 7.2.2.1)
      builder (~> 3.1)
      erubi (~> 1.11)
      rails-dom-testing (~> 2.2)
      rails-html-sanitizer (~> 1.6)
    activejob (7.2.2.1)
      activesupport (= 7.2.2.1)
      globalid (>= 0.3.6)
    activemodel (7.2.2.1)
      activesupport (= 7.2.2.1)
    activerecord (7.2.2.1)
      activemodel (= 7.2.2.1)
      activesupport (= 7.2.2.1)
      timeout (>= 0.4.0)
    activestorage (7.2.2.1)
      actionpack (= 7.2.2.1)
      activejob (= 7.2.2.1)
      activerecord (= 7.2.2.1)
      activesupport (= 7.2.2.1)
      marcel (~> 1.0)
    activesupport (7.2.2.1)
      base64
      benchmark (>= 0.3)
      bigdecimal
      concurrent-ruby (~> 1.0, >= 1.3.1)
      connection_pool (>= 2.2.5)
      drb
      i18n (>= 1.6, < 2)
      logger (>= 1.4.2)
      minitest (>= 5.1)
      securerandom (>= 0.3)
      tzinfo (~> 2.0, >= 2.0.5)
    addressable (2.8.7)
      public_suffix (>= 2.0.2, < 7.0)
    ast (2.4.2)
    base64 (0.2.0)
    benchmark (0.4.0)
    bigdecimal (3.1.9)
    bindex (0.8.1)
    bootsnap (1.18.4)
      msgpack (~> 1.2)
    brakeman (7.0.0)
      racc
    builder (3.3.0)
    capybara (3.40.0)
      addressable
      matrix
      mini_mime (>= 0.1.3)
      nokogiri (~> 1.11)
      rack (>= 1.6.0)
      rack-test (>= 0.6.3)
      regexp_parser (>= 1.5, < 3.0)
      xpath (~> 3.2)
    concurrent-ruby (1.3.5)
    connection_pool (2.5.0)
    crass (1.0.6)
    daemon-spawn (0.4.2)
    date (3.4.1)
    debug (1.10.0)
      irb (~> 1.10)
      reline (>= 0.3.8)
    drb (2.2.1)
    ecdsa (1.2.0)
    erubi (1.13.1)
    eventmachine (1.2.7)
    eventmachine_httpserver (0.2.1)
    ffi (1.17.1-x86_64-linux-gnu)
    globalid (1.2.1)
      activesupport (>= 6.1)
    glueby (1.4.1)
      activerecord (>= 7.0, < 8.0)
      kaminari
      tapyrus (>= 0.3.1)
    i18n (1.14.7)
      concurrent-ruby (~> 1.0)
    importmap-rails (2.1.0)
      actionpack (>= 6.0.0)
      activesupport (>= 6.0.0)
      railties (>= 6.0.0)
    iniparse (1.5.0)
    io-console (0.8.0)
    irb (1.15.1)
      pp (>= 0.6.0)
      rdoc (>= 4.0.0)
      reline (>= 0.4.2)
    jbuilder (2.13.0)
      actionview (>= 5.0.0)
      activesupport (>= 5.0.0)
    json (2.9.1)
    json_pure (2.8.1)
    kaminari (1.2.2)
      activesupport (>= 4.1.0)
      kaminari-actionview (= 1.2.2)
      kaminari-activerecord (= 1.2.2)
      kaminari-core (= 1.2.2)
    kaminari-actionview (1.2.2)
      actionview
      kaminari-core (= 1.2.2)
    kaminari-activerecord (1.2.2)
      activerecord
      kaminari-core (= 1.2.2)
    kaminari-core (1.2.2)
    language_server-protocol (3.17.0.3)
    leb128 (1.0.0)
    logger (1.6.5)
    loofah (2.24.0)
      crass (~> 1.0.2)
      nokogiri (>= 1.12.0)
    mail (2.8.1)
      mini_mime (>= 0.1.1)
      net-imap
      net-pop
      net-smtp
    marcel (1.0.4)
    matrix (0.4.2)
    mini_mime (1.1.5)
    minitest (5.25.4)
    msgpack (1.7.5)
    murmurhash3 (0.1.7)
    net-imap (0.5.5)
      date
      net-protocol
    net-pop (0.1.2)
      net-protocol
    net-protocol (0.2.2)
      timeout
    net-smtp (0.5.0)
      net-protocol
    nio4r (2.7.4)
    nokogiri (1.18.2-x86_64-linux-gnu)
      racc (~> 1.4)
    parallel (1.26.3)
    parser (3.3.7.0)
      ast (~> 2.4.1)
      racc
    pg (1.5.9)
    pp (0.6.2)
      prettyprint
    prettyprint (0.2.0)
    psych (5.2.3)
      date
      stringio
    public_suffix (6.0.1)
    puma (6.5.0)
      nio4r (~> 2.0)
    racc (1.8.1)
    rack (3.1.8)
    rack-session (2.1.0)
      base64 (>= 0.1.0)
      rack (>= 3.0.0)
    rack-test (2.2.0)
      rack (>= 1.3)
    rackup (2.2.1)
      rack (>= 3)
    rails (7.2.2.1)
      actioncable (= 7.2.2.1)
      actionmailbox (= 7.2.2.1)
      actionmailer (= 7.2.2.1)
      actionpack (= 7.2.2.1)
      actiontext (= 7.2.2.1)
      actionview (= 7.2.2.1)
      activejob (= 7.2.2.1)
      activemodel (= 7.2.2.1)
      activerecord (= 7.2.2.1)
      activestorage (= 7.2.2.1)
      activesupport (= 7.2.2.1)
      bundler (>= 1.15.0)
      railties (= 7.2.2.1)
    rails-dom-testing (2.2.0)
      activesupport (>= 5.0.0)
      minitest
      nokogiri (>= 1.6)
    rails-html-sanitizer (1.6.2)
      loofah (~> 2.21)
      nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
    railties (7.2.2.1)
      actionpack (= 7.2.2.1)
      activesupport (= 7.2.2.1)
      irb (~> 1.13)
      rackup (>= 1.0.0)
      rake (>= 12.2)
      thor (~> 1.0, >= 1.2.2)
      zeitwerk (~> 2.6)
    rainbow (3.1.1)
    rake (13.2.1)
    rdoc (6.11.0)
      psych (>= 4.0.0)
    regexp_parser (2.10.0)
    reline (0.6.0)
      io-console (~> 0.5)
    rexml (3.4.0)
    rubocop (1.71.0)
      json (~> 2.3)
      language_server-protocol (>= 3.17.0)
      parallel (~> 1.10)
      parser (>= 3.3.0.2)
      rainbow (>= 2.2.2, < 4.0)
      regexp_parser (>= 2.9.3, < 3.0)
      rubocop-ast (>= 1.36.2, < 2.0)
      ruby-progressbar (~> 1.7)
      unicode-display_width (>= 2.4.0, < 4.0)
    rubocop-ast (1.37.0)
      parser (>= 3.3.1.0)
    rubocop-minitest (0.36.0)
      rubocop (>= 1.61, < 2.0)
      rubocop-ast (>= 1.31.1, < 2.0)
    rubocop-performance (1.23.1)
      rubocop (>= 1.48.1, < 2.0)
      rubocop-ast (>= 1.31.1, < 2.0)
    rubocop-rails (2.29.0)
      activesupport (>= 4.2.0)
      rack (>= 1.1)
      rubocop (>= 1.52.0, < 2.0)
      rubocop-ast (>= 1.31.1, < 2.0)
    rubocop-rails-omakase (1.0.0)
      rubocop
      rubocop-minitest
      rubocop-performance
      rubocop-rails
    ruby-progressbar (1.13.0)
    rubyzip (2.4.1)
    securerandom (0.4.1)
    selenium-webdriver (4.28.0)
      base64 (~> 0.2)
      logger (~> 1.4)
      rexml (~> 3.2, >= 3.2.5)
      rubyzip (>= 1.2.2, < 3.0)
      websocket (~> 1.0)
    siphash (0.0.1)
    sprockets (4.2.1)
      concurrent-ruby (~> 1.0)
      rack (>= 2.2.4, < 4)
    sprockets-rails (3.5.2)
      actionpack (>= 6.1)
      activesupport (>= 6.1)
      sprockets (>= 3.0.0)
    stimulus-rails (1.3.4)
      railties (>= 6.0.0)
    stringio (3.1.2)
    tapyrus (0.3.1)
      activesupport (>= 5.2.3)
      daemon-spawn
      ecdsa
      eventmachine
      eventmachine_httpserver
      ffi
      iniparse
      json_pure (>= 2.3.1)
      leb128 (~> 1.0.0)
      murmurhash3
      siphash
      thor
    thor (1.3.2)
    timeout (0.4.3)
    turbo-rails (2.0.11)
      actionpack (>= 6.0.0)
      railties (>= 6.0.0)
    tzinfo (2.0.6)
      concurrent-ruby (~> 1.0)
    unicode-display_width (3.1.4)
      unicode-emoji (~> 4.0, >= 4.0.4)
    unicode-emoji (4.0.4)
    useragent (0.16.11)
    web-console (4.2.1)
      actionview (>= 6.0.0)
      activemodel (>= 6.0.0)
      bindex (>= 0.4.0)
      railties (>= 6.0.0)
    websocket (1.2.11)
    websocket-driver (0.7.7)
      base64
      websocket-extensions (>= 0.1.0)
    websocket-extensions (0.1.5)
    xpath (3.2.0)
      nokogiri (~> 1.8)
    zeitwerk (2.7.1)

PLATFORMS
  x86_64-linux

DEPENDENCIES
  bootsnap
  brakeman
  capybara
  debug
  glueby
  importmap-rails
  jbuilder
  pg (~> 1.1)
  puma (>= 5.0)
  rails (~> 7.2.2, >= 7.2.2.1)
  rubocop-rails-omakase
  selenium-webdriver
  sprockets-rails
  stimulus-rails
  turbo-rails
  tzinfo-data
  web-console

BUNDLED WITH
   2.5.22

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

Successfully merging a pull request may close this issue.

1 participant