Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

bundler 1.13.0 seems to break rails new #4970

Closed
jrochkind opened this issue Sep 12, 2016 · 3 comments
Closed

bundler 1.13.0 seems to break rails new #4970

jrochkind opened this issue Sep 12, 2016 · 3 comments

Comments

@jrochkind
Copy link
Contributor

Don't know if it's a bundler problem or a Rails problem, so I'm double-reporting. See also rails/rails#26472

$ ruby -v
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]
$ rails -v
Rails 5.0.0.1

$ rails new testapp
      create
      create  README.md
      create  Rakefile
      create  config.ru
      create  .gitignore
      create  Gemfile
      create  app
      create  app/assets/config/manifest.js
      create  app/assets/javascripts/application.js
      create  app/assets/javascripts/cable.js
      create  app/assets/stylesheets/application.css
      create  app/channels/application_cable/channel.rb
      create  app/channels/application_cable/connection.rb
      create  app/controllers/application_controller.rb
      create  app/helpers/application_helper.rb
      create  app/jobs/application_job.rb
      create  app/mailers/application_mailer.rb
      create  app/models/application_record.rb
      create  app/views/layouts/application.html.erb
      create  app/views/layouts/mailer.html.erb
      create  app/views/layouts/mailer.text.erb
      create  app/assets/images/.keep
      create  app/assets/javascripts/channels
      create  app/assets/javascripts/channels/.keep
      create  app/controllers/concerns/.keep
      create  app/models/concerns/.keep
      create  bin
      create  bin/bundle
      create  bin/rails
      create  bin/rake
      create  bin/setup
      create  bin/update
      create  config
      create  config/routes.rb
      create  config/application.rb
      create  config/environment.rb
      create  config/secrets.yml
      create  config/cable.yml
      create  config/puma.rb
      create  config/spring.rb
      create  config/environments
      create  config/environments/development.rb
      create  config/environments/production.rb
      create  config/environments/test.rb
      create  config/initializers
      create  config/initializers/application_controller_renderer.rb
      create  config/initializers/assets.rb
      create  config/initializers/backtrace_silencers.rb
      create  config/initializers/cookies_serializer.rb
      create  config/initializers/cors.rb
      create  config/initializers/filter_parameter_logging.rb
      create  config/initializers/inflections.rb
      create  config/initializers/mime_types.rb
      create  config/initializers/new_framework_defaults.rb
      create  config/initializers/session_store.rb
      create  config/initializers/wrap_parameters.rb
      create  config/locales
      create  config/locales/en.yml
      create  config/boot.rb
      create  config/database.yml
      create  db
      create  db/seeds.rb
      create  lib
      create  lib/tasks
      create  lib/tasks/.keep
      create  lib/assets
      create  lib/assets/.keep
      create  log
      create  log/.keep
      create  public
      create  public/404.html
      create  public/422.html
      create  public/500.html
      create  public/apple-touch-icon-precomposed.png
      create  public/apple-touch-icon.png
      create  public/favicon.ico
      create  public/robots.txt
      create  test/fixtures
      create  test/fixtures/.keep
      create  test/fixtures/files
      create  test/fixtures/files/.keep
      create  test/controllers
      create  test/controllers/.keep
      create  test/mailers
      create  test/mailers/.keep
      create  test/models
      create  test/models/.keep
      create  test/helpers
      create  test/helpers/.keep
      create  test/integration
      create  test/integration/.keep
      create  test/test_helper.rb
      create  tmp
      create  tmp/.keep
      create  tmp/cache
      create  tmp/cache/assets
      create  vendor/assets/javascripts
      create  vendor/assets/javascripts/.keep
      create  vendor/assets/stylesheets
      create  vendor/assets/stylesheets/.keep
      remove  config/initializers/cors.rb
         run  bundle install
/Users/jrochkind/.gem/ruby/2.3.1/gems/bundler-1.13.0/lib/bundler/rubygems_ext.rb:23:in `source': uninitialized constant Gem::Source (NameError)
Did you mean?  Gem::Source
    from /Users/jrochkind/.gem/ruby/2.3.1/gems/bundler-1.13.0/lib/bundler/rubygems_ext.rb:65:in `extension_dir'
    from /opt/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/basic_specification.rb:46:in `gem_build_complete_path'
    from /opt/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/specification.rb:2170:in `missing_extensions?'
    from /opt/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/basic_specification.rb:71:in `contains_requirable_file?'
    from /opt/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/specification.rb:1067:in `block in find_in_unresolved'
    from /opt/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/specification.rb:1067:in `each'
    from /opt/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/specification.rb:1067:in `find_all'
    from /opt/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/specification.rb:1067:in `find_in_unresolved'
    from /opt/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:73:in `require'
    from /Users/jrochkind/.gem/ruby/2.3.1/gems/bundler-1.13.0/lib/bundler/rubygems_ext.rb:23:in `source'
    from /Users/jrochkind/.gem/ruby/2.3.1/gems/bundler-1.13.0/lib/bundler/rubygems_ext.rb:65:in `extension_dir'
    from /opt/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/basic_specification.rb:46:in `gem_build_complete_path'
    from /opt/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/specification.rb:2170:in `missing_extensions?'
    from /opt/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/basic_specification.rb:71:in `contains_requirable_file?'
    from /opt/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/specification.rb:1067:in `block in find_in_unresolved'
    from /opt/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/specification.rb:1067:in `each'
    from /opt/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/specification.rb:1067:in `find_all'
    from /opt/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/specification.rb:1067:in `find_in_unresolved'
    from /opt/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:73:in `require'
    from /Users/jrochkind/.gem/ruby/2.3.1/gems/bundler-1.13.0/lib/bundler/rubygems_integration.rb:2:in `<top (required)>'
    from /opt/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:68:in `require'
    from /opt/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:68:in `require'
    from /Users/jrochkind/.gem/ruby/2.3.1/gems/bundler-1.13.0/lib/bundler.rb:11:in `<top (required)>'
    from /opt/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in `require'
    from /opt/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in `rescue in require'
    from /opt/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:40:in `require'
    from /Users/jrochkind/.gem/ruby/2.3.1/gems/railties-5.0.0.1/lib/rails/generators/app_base.rb:373:in `bundle_command'
    from /Users/jrochkind/.gem/ruby/2.3.1/gems/railties-5.0.0.1/lib/rails/generators/app_base.rb:401:in `run_bundle'
    from (eval):1:in `run_bundle'
    from /Users/jrochkind/.gem/ruby/2.3.1/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
    from /Users/jrochkind/.gem/ruby/2.3.1/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
    from /Users/jrochkind/.gem/ruby/2.3.1/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all'
    from /Users/jrochkind/.gem/ruby/2.3.1/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `each'
    from /Users/jrochkind/.gem/ruby/2.3.1/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `map'
    from /Users/jrochkind/.gem/ruby/2.3.1/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all'
    from /Users/jrochkind/.gem/ruby/2.3.1/gems/thor-0.19.1/lib/thor/group.rb:232:in `dispatch'
    from /Users/jrochkind/.gem/ruby/2.3.1/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
    from /Users/jrochkind/.gem/ruby/2.3.1/gems/railties-5.0.0.1/lib/rails/commands/application.rb:17:in `<top (required)>'
    from /opt/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:68:in `require'
    from /opt/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:68:in `require'
    from /Users/jrochkind/.gem/ruby/2.3.1/gems/railties-5.0.0.1/lib/rails/cli.rb:14:in `<top (required)>'
    from /opt/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:68:in `require'
    from /opt/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:68:in `require'
    from /Users/jrochkind/.gem/ruby/2.3.1/gems/railties-5.0.0.1/exe/rails:9:in `<top (required)>'
    from /Users/jrochkind/.gem/ruby/2.3.1/bin/rails:23:in `load'
    from /Users/jrochkind/.gem/ruby/2.3.1/bin/rails:23:in `<main>'

What I expect to happen is NOT getting an uncaught exception backtrace as a result of running rails new.

does not happen with bundler 1.12, which seems to work fine.

@chrismo
Copy link
Contributor

chrismo commented Sep 12, 2016

perhaps this is related? #4944

@segiddins
Copy link
Member

This is fixed on master and should be released in 1.13.1 soon. Thanks!

@arthurnn
Copy link
Member

thanks @segiddins

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

No branches or pull requests

4 participants