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

NoMethodError: undefined method `spec' for nil:NilClass #3558

Closed
digitalextremist opened this Issue Apr 11, 2015 · 5 comments

Comments

Projects
None yet
4 participants
@digitalextremist

That exception occurs when running bundle install on the current ruby-head ...
Have found this twice so far, and suspect I'll keep finding it if I keep looking:

@digitalextremist

This comment has been minimized.

Show comment
Hide comment
@digitalextremist

digitalextremist Apr 11, 2015

This is in fact a bundler error. Posting patch.

This is in fact a bundler error. Posting patch.

@segiddins

This comment has been minimized.

Show comment
Hide comment
@segiddins

segiddins Apr 11, 2015

Member

@digitalextremist could you please share the info requested in https://github.com/bundler/bundler/blob/master/ISSUES.md ? As it is, your issue doesn't really have enough in it to debug anything. Thanks!

Member

segiddins commented Apr 11, 2015

@digitalextremist could you please share the info requested in https://github.com/bundler/bundler/blob/master/ISSUES.md ? As it is, your issue doesn't really have enough in it to debug anything. Thanks!

@digitalextremist

This comment has been minimized.

Show comment
Hide comment
@digitalextremist

digitalextremist Apr 11, 2015

@segiddins: copied from the referenced issues:

Output of bundle install --verbose on celluloid/timers or any number of gems:

NoMethodError: undefined method `spec' for nil:NilClass
/home/de/.rvm/rubies/ruby-head/lib/ruby/site_ruby/2.3.0/rubygems/installer.rb:232:in `spec'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/source/path/installer.rb:19:in `generate_bin'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/source/path.rb:194:in `block in generate_bin'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/shared_helpers.rb:53:in `chdir'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/shared_helpers.rb:53:in `block in chdir'
/home/de/.rvm/rubies/ruby-head/lib/ruby/2.3.0/monitor.rb:211:in `mon_synchronize'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/shared_helpers.rb:52:in `chdir'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/source/path.rb:189:in `generate_bin'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/source/path.rb:73:in `install'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/installer.rb:107:in `install_gem_from_spec'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/installer.rb:269:in `block in install_sequentially'
/home/de/.rvm/rubies/ruby-head/lib/ruby/2.3.0/forwardable.rb:183:in `each'
/home/de/.rvm/rubies/ruby-head/lib/ruby/2.3.0/forwardable.rb:183:in `each'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/installer.rb:268:in `install_sequentially'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/installer.rb:90:in `run'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/installer.rb:18:in `install'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/cli/install.rb:80:in `run'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/cli.rb:157:in `install'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/cli.rb:10:in `start'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/bin/bundle:20:in `block in <top (required)>'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/friendly_errors.rb:7:in `with_friendly_errors'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/bin/bundle:18:in `<top (required)>'
/home/de/.rvm/gems/ruby-head/bin/bundle:23:in `load'
/home/de/.rvm/gems/ruby-head/bin/bundle:23:in `<main>'
/home/de/.rvm/gems/ruby-head/bin/ruby_executable_hooks:15:in `eval'
/home/de/.rvm/gems/ruby-head/bin/ruby_executable_hooks:15:in `<main>'

Resolved in #3559

@segiddins: copied from the referenced issues:

Output of bundle install --verbose on celluloid/timers or any number of gems:

NoMethodError: undefined method `spec' for nil:NilClass
/home/de/.rvm/rubies/ruby-head/lib/ruby/site_ruby/2.3.0/rubygems/installer.rb:232:in `spec'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/source/path/installer.rb:19:in `generate_bin'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/source/path.rb:194:in `block in generate_bin'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/shared_helpers.rb:53:in `chdir'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/shared_helpers.rb:53:in `block in chdir'
/home/de/.rvm/rubies/ruby-head/lib/ruby/2.3.0/monitor.rb:211:in `mon_synchronize'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/shared_helpers.rb:52:in `chdir'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/source/path.rb:189:in `generate_bin'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/source/path.rb:73:in `install'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/installer.rb:107:in `install_gem_from_spec'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/installer.rb:269:in `block in install_sequentially'
/home/de/.rvm/rubies/ruby-head/lib/ruby/2.3.0/forwardable.rb:183:in `each'
/home/de/.rvm/rubies/ruby-head/lib/ruby/2.3.0/forwardable.rb:183:in `each'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/installer.rb:268:in `install_sequentially'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/installer.rb:90:in `run'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/installer.rb:18:in `install'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/cli/install.rb:80:in `run'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/cli.rb:157:in `install'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/cli.rb:10:in `start'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/bin/bundle:20:in `block in <top (required)>'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/lib/bundler/friendly_errors.rb:7:in `with_friendly_errors'
/home/de/.rvm/gems/ruby-head/gems/bundler-1.9.2/bin/bundle:18:in `<top (required)>'
/home/de/.rvm/gems/ruby-head/bin/bundle:23:in `load'
/home/de/.rvm/gems/ruby-head/bin/bundle:23:in `<main>'
/home/de/.rvm/gems/ruby-head/bin/ruby_executable_hooks:15:in `eval'
/home/de/.rvm/gems/ruby-head/bin/ruby_executable_hooks:15:in `<main>'

Resolved in #3559

digitalextremist referenced this issue in rubygems/rubygems Apr 11, 2015

remove extra caching on `spec`
The package object already caches the spec object, so we don't need to
do it multiple times.  Also introduce a consturctor for in-memory
installations so that we can rm the `spec` setter method
@indirect

This comment has been minimized.

Show comment
Hide comment
@indirect

indirect Apr 11, 2015

Member

Closing this in favor of #3559.

Member

indirect commented Apr 11, 2015

Closing this in favor of #3559.

@indirect indirect closed this Apr 11, 2015

janraasch added a commit to tolingo/file-convert that referenced this issue Nov 10, 2015

Use latest bundler version on CI
as we ran into bundler/bundler#3558
on older ruby versions on TravisCI

miketheman added a commit to miketheman/lita-jenkins that referenced this issue Nov 13, 2015

Update bundler before installing gems
The default bundler included in Travis CI Ruby environments is too old
and contains a bug that triggers a failure and prevents testing.

Refs: bundler/bundler#3558 travis-ci/travis-ci#3531

miketheman added a commit to miketheman/lita-jenkins that referenced this issue Nov 13, 2015

Update bundler before installing gems
- The default bundler included in Travis CI Ruby environments is too old
  and contains a bug that triggers a failure and prevents testing.

  Refs: bundler/bundler#3558 travis-ci/travis-ci#3531

- Add testing for Ruby 2.2.3, color rspec output

tute added a commit to thoughtbot/factory_bot that referenced this issue Dec 14, 2015

Update bundler before in Travis CI builds
Builds are broken because the `bundler` version that Travis CI
automatically uses at this time (`1.7.6`) is coming across an
error that was fixed in a later version/release.

Having an outdated version of `bundler` in the Travis CI builds is an
ongoing issue and this is currently the easiest work-around.

See:

* bundler/bundler#3558
* travis-ci/travis-ci#3531

[fixes #846]

dplummer pushed a commit to dplummer/json_api_client that referenced this issue Dec 14, 2015

Donald Plummer
Update bundler before in Travis CI builds
Builds are broken because the `bundler` version that Travis CI
automatically uses at this time (`1.7.6`) is coming across an
error that was fixed in a later version/release.

Having an outdated version of `bundler` in the Travis CI builds is an
ongoing issue and this is currently the easiest work-around.

See:

* bundler/bundler#3558
* travis-ci/travis-ci#3531

DavidS added a commit to DavidS/puppet-syntax that referenced this issue Dec 15, 2015

DavidS added a commit to DavidS/puppet-syntax that referenced this issue Dec 15, 2015

MikaelSmith added a commit to MikaelSmith/puppet that referenced this issue Dec 15, 2015

(maint) Use newer bundler
Install a newer version of bundler to avoid the issue at
bundler/bundler#3558. We ran into it several
times with Ruby 1.9.3 runs.

dchandekstark added a commit to duke-libraries/ddr-models that referenced this issue Dec 18, 2015

dchandekstark added a commit to duke-libraries/ddr-models that referenced this issue Dec 18, 2015

Fix problems in Travis config
Upgrade bundler b/c something like bundler/bundler#3558

watsonarw pushed a commit to redbubble/handlebars.rb that referenced this issue Dec 21, 2015

Andrew Watson
Update bundler before install.
There is an issue with bundler installing from ruby_head in older
versions of bundler. bundler/bundler#3558

TravisCI recommends updating bundler before installing gems as a
workaround. travis-ci/travis-ci#3531

bquorning added a commit to zendesk/active_record_host_pool that referenced this issue Dec 21, 2015

bquorning added a commit to zendesk/active_record_host_pool that referenced this issue Dec 21, 2015

bquorning added a commit to zendesk/active_record_host_pool that referenced this issue Dec 21, 2015

@k0kubun k0kubun referenced this issue Dec 22, 2015

Merged

Fix CI failure #98

@aeberlin aeberlin referenced this issue Dec 28, 2015

Open

Rough STOMP Adapter #212

18 of 18 tasks complete

azul added a commit to azul/leap_web that referenced this issue Aug 15, 2016

[ci] fix travis by using container builds
This is supposed to fix the bundler error reported in
bundler/bundler#3558

sudo: false makes travis use the new infrastructure without sudo

randycoulman added a commit to kytrinyx/approvals that referenced this issue Sep 9, 2016

Install a more recent version of bundler on CI
On some Ruby versions, an older version of bundler is installed.  Some of these older versions have a [bug](bundler/bundler#3558) that causes our builds to fail.  Of recent note are some failures on Ruby 1.9.3 with bundler 1.7.6.

According to the [related issue on TravisCI](travis-ci/travis-ci#3531), the solution is to add a `before_install` step to the build to update bundler.

shawnacscott pushed a commit to shawnacscott/approvals that referenced this issue Sep 20, 2016

Install a more recent version of bundler on CI
On some Ruby versions, an older version of bundler is installed.  Some of these older versions have a [bug](bundler/bundler#3558) that causes our builds to fail.  Of recent note are some failures on Ruby 1.9.3 with bundler 1.7.6.

According to the [related issue on TravisCI](travis-ci/travis-ci#3531), the solution is to add a `before_install` step to the build to update bundler.

andrewjkerr added a commit to andrewjkerr/tumblr_client that referenced this issue Oct 31, 2016

Force TravisCI to update Bundler from 1.7.6.
According to bundler/bundler#3558, there is an issue with Bundler 1.7.6 which prevents TravisCI from successfully installing gems. Nice.

robwilliams added a commit to robwilliams/wisper-activerecord that referenced this issue Dec 10, 2016

Fix "undefined method `spec'.." on 1.9.3 build.
Forces the use of travis containers which have a newer version of
bundler that does not have this bug.

See bundler/bundler#3558

robwilliams added a commit to robwilliams/wisper-activerecord that referenced this issue Dec 13, 2016

Fix "undefined method `spec'.." on 1.9.3 build.
Forces the use of travis containers which have a newer version of
bundler that do not have this bug.

See bundler/bundler#3558

tmr08c added a commit to tmr08c/roo-xls that referenced this issue Jan 9, 2017

Updates TravisCI config to use containers.
TravisCI builds are failing due to an [issue with
bundler](bundler/bundler#3558).

One of the [suggested
solutions](bundler/bundler#3558 (comment))
was to use TravisCI's container-based infrastructure which has the added
benefit of being faster.

This commit updates `.travis.yml` to use the container-based
infrastructure.

marcioj added a commit to inaka/assisted_workflow that referenced this issue Jan 10, 2017

yasaichi added a commit to yasaichi/gakubuchi that referenced this issue Jan 31, 2017

matteeyah pushed a commit to matteeyah/disqus_api that referenced this issue Apr 24, 2017

jrafanie added a commit to jrafanie/binary_struct that referenced this issue May 4, 2017

Use container infrastructure
Resolves NoMethodError: undefined method `spec' for nil:NilClass on ruby
1.9.3 builds, see: bundler/bundler#3558

networkedbenny pushed a commit to networkedbenny/yam that referenced this issue Jul 6, 2017

@bdewater bdewater referenced this issue Sep 26, 2017

Merged

Adding remaining ISO currencies #98

2 of 2 tasks complete

donaldali added a commit to sendsonar/send_sonar_gem that referenced this issue Sep 26, 2017

@julik julik referenced this issue Oct 3, 2017

Closed

2.6.13 regression "undefined method `spec' for"... #2024

1 of 5 tasks complete

daronco added a commit to mconf/bigbluebutton_rails that referenced this issue Oct 4, 2017

petems added a commit to petems/petems-swap_file that referenced this issue Oct 5, 2017

Updating .travis.yml for new tests
* Update bundler to avoid bundler/bundler#3558
* Also Removing older Gemfile entries that fail travis

jamesbrauman added a commit to flippa/hexillion that referenced this issue Oct 20, 2017

sriraamas pushed a commit to lucidsoftware/cumulus that referenced this issue Oct 25, 2017

tachyons added a commit to tachyons/etcd-ruby that referenced this issue Oct 29, 2017

tachyons added a commit to tachyons/etcd-ruby that referenced this issue Oct 29, 2017

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