rubyonjets / jets

Ruby on Jets
http://rubyonjets.com
MIT License
2.6k stars 181 forks source link

Jets new fails during jets webpacker:install #193

Closed lefthand closed 5 years ago

lefthand commented 5 years ago

My Environment

Software Version
Operating System Amazon Linux
Jets 1.8
Ruby 2.5.1

Expected Behaviour

Using Cloud9, jets new demo will setup my project.

Current Behavior

Setup fails during jets webpacker:install execution. config/webpack/environment.js doesn't get setup and this error is thrown /active_support/inflector/methods.rb:285:inconst_get': uninitialized constant Jets::Job::S3EventHelper (NameError)`

Step-by-step reproduction instructions

Using webpacker 3.2.0 from https://github.com/tongueroo/webpacker.git (at jets@3651cc3)
Bundle complete! 10 Gemfile dependencies, 76 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
         run  jets webpacker:install from "."
Traceback (most recent call last):
        18: from /home/ec2-user/.rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:24:in `<main>'
        17: from /home/ec2-user/.rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:24:in `eval'
        16: from /home/ec2-user/.rvm/gems/ruby-2.5.1/bin/jets:23:in `<main>'
        15: from /home/ec2-user/.rvm/gems/ruby-2.5.1/bin/jets:23:in `load'
        14: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/jets-1.8.0/exe/jets:14:in `<top (required)>'
        13: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/jets-1.8.0/lib/jets/cli.rb:5:in `start'
        12: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/jets-1.8.0/lib/jets/cli.rb:20:in `start'
        11: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/jets-1.8.0/lib/jets/cli.rb:48:in `boot_jets'
        10: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/jets-1.8.0/lib/jets/core.rb:18:in `boot'
         9: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/jets-1.8.0/lib/jets/booter.rb:14:in `boot!'
         8: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/jets-1.8.0/lib/jets/booter.rb:153:in `eager_load_jets'
         7: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/jets-1.8.0/lib/jets/booter.rb:153:in `select'
         6: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/jets-1.8.0/lib/jets/booter.rb:165:in `block in eager_load_jets'
         5: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/string/inflections.rb:68:in `constantize'
         4: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/inflector/methods.rb:281:in `constantize'
         3: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/inflector/methods.rb:281:in `inject'
         2: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/inflector/methods.rb:281:in `each'
         1: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/inflector/methods.rb:285:in `block in constantize'
/home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/inflector/methods.rb:285:in `const_get': uninitialized constant Jets::Job::S3EventHelper (NameError)
      insert  config/webpack/environment.js
Traceback (most recent call last):
        24: from /home/ec2-user/.rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:24:in `<main>'
        23: from /home/ec2-user/.rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:24:in `eval'
        22: from /home/ec2-user/.rvm/gems/ruby-2.5.1/bin/jets:23:in `<main>'
        21: from /home/ec2-user/.rvm/gems/ruby-2.5.1/bin/jets:23:in `load'
        20: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/jets-1.8.0/exe/jets:14:in `<top (required)>'
        19: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/jets-1.8.0/lib/jets/cli.rb:5:in `start'
        18: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/jets-1.8.0/lib/jets/cli.rb:21:in `start'
        17: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/jets-1.8.0/lib/jets/commands/base.rb:27:in `perform'
        16: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/jets-1.8.0/lib/jets/commands/base.rb:38:in `dispatch'
        15: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
        14: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
        13: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
        12: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor.rb:40:in `block in register'
        11: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/invocation.rb:115:in `invoke'
        10: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/group.rb:232:in `dispatch'
         9: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/invocation.rb:133:in `invoke_all'
         8: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/invocation.rb:133:in `map'
         7: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/invocation.rb:133:in `each'
         6: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/invocation.rb:133:in `block in invoke_all'
         5: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
         4: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
         3: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/jets-1.8.0/lib/jets/commands/new.rb:106:in `bootstrap_install'
         2: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/actions/inject_into_file.rb:27:in `insert_into_file'
         1: from /home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/actions.rb:94:in `action'
/home/ec2-user/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/actions/inject_into_file.rb:60:in `invoke!': The file /home/ec2-user/environment/welp/config/webpack/environment.js does not appear to exist (Thor::Error)
tongueroo commented 5 years ago

Addressed in #194. Released in v1.8.1