Projects

Ticket #806 (closed defect: invalid)

Opened 19 months ago

Last modified 17 months ago

bundler does not work due to missing Gem::Specification::MatchPlatform

Reported by: macruby@… Owned by: lsansonetti@…
Priority: major Milestone:
Component: MacRuby Keywords:
Cc: macruby@…

Description

$ bundle install /Users/aman/.rvm/gems/macruby-0.6/gems/bundler-1.0.0.beta.9/bin/bundle:4:in `<main>': uninitialized constant Gem::Specification::MatchPlatform (NameError)

Change History

Changed 19 months ago by lsansonetti@…

I tried bundler on trunk, it fails inside the "thor" library where it assumes that #caller[1] returns something. I believe it's the same problem that broke rails app generation introduced after merging the interpreter change.

Changed 19 months ago by lsansonetti@…

Working around the #caller bug, it seems to load properly, at least.

$ VM_DISABLE_INTERPRETER=1 VM_DISABLE_RBO=1 DYLD_LIBRARY_PATH=. ./macruby /usr/bin/bundle --help
Tasks:
  bundle check            # Checks if the dependencies listed in Gemfile are satisfied by currently installed gems
  bundle console [GROUP]  # Opens an IRB session with the bundle pre-loaded
  bundle exec             # Run the command in context of the bundle
  bundle help [TASK]      # Describe available tasks or one specific task
  bundle init             # Generates a Gemfile into the current working directory
  bundle install          # Install the current environment to the system
  bundle lock             # Locks the bundle to the current set of dependencies, including all child dependencies.
  bundle open GEM         # Opens the source directory of the given bundled gem
  bundle package          # Locks and then caches all of the gems into vendor/cache
  bundle show [GEM]       # Shows all gems that are part of the bundle, or the path to a given gem
  bundle unlock           # Unlock the bundle. This allows gem versions to be changed.
  bundle version          # Prints the bundler's version information

$ VM_DISABLE_INTERPRETER=1 VM_DISABLE_RBO=1 DYLD_LIBRARY_PATH=. ./macruby /usr/bin/bundle install
Could not locate Gemfile

Changed 19 months ago by macruby@…

  • cc macruby@… added

Cc Me!

Changed 18 months ago by lsansonetti@…

I wrote a simple gemfile

source "http://rubygems.org"
gem "sinatra"

Then I ran the "check" and "install" bundler commands in the same directory, it worked without exception. (I had to specify VM_DISABLE_RBO=1 to work around the caller problem.)

If you could paste your gemfile here, I will give it a try. We need to reduce the constant lookup problem.

Changed 18 months ago by lsansonetti@…

  • keywords 0.7-blocker added

Adding 0.7-blocker keyword.

Changed 17 months ago by lsansonetti@…

  • status changed from new to closed
  • keywords 0.7-blocker removed
  • resolution set to invalid

The caller bug has been fixed by r4546 and r4555. I wasn't able to reproduce the const lookup bug reported in this radar, and since nobody was able to paste here a reduction, I'm closing the bug as invalid.

Note: See TracTickets for help on using tickets.