Skip to content

Instantly share code, notes, and snippets.

@postmodern
Last active December 24, 2015 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save postmodern/6877205 to your computer and use it in GitHub Desktop.
Save postmodern/6877205 to your computer and use it in GitHub Desktop.
Steps to Reproduce the rubinius 2.0.0 rubysl/bundler issue

Steps to Reproduce

  1. mkdir test_rubysl && cd test_rubysl
  2. echo "source 'https://rubygems.org/'" > Gemfile
  3. bundle install
  4. echo "p require 'bigdecimal'" > test.rb
  5. bundle exec ruby test.rb

Expected Result

true

Actual Result

An exception occurred running test.rb:

     (LoadError)
    The library "bigdecimal" is a provided by the "rubysl-bigdecimal" gem and needs to be
    installed to be loaded.
    
    If using Bundler, add this library or the standard library meta-gem to the
    Gemfile as follows:
    
      gem "rubysl-bigdecimal", "~> 2.0"
    
        OR
    
      gem "rubysl", "~> 2.0"
    
    Otherwise, install the gem with the following command:
    
      gem install rubysl-bigdecimal
    
        OR
    
      gem install rubysl
    
    If the "rubysl-bigdecimal" gem should be installed, ensure that the GEM_HOME or GEM_PATH
    environment variables are either not set or set correctly to the directories
    containing Rubinius gems.
    
    If these instructions do not help resolve the issue, please open a ticket at:
    
      https://github.com/rubinius/rubinius/issues
    
    The source code for "rubysl-bigdecimal" is on GitHub:
    
      https://github.com/rubysl/rubysl-bigdecimal

Backtrace:

 Rubinius::CodeLoader.missing_standard_library at kernel/delta/code_loader.rb:130
                    Object#__script__ at /home/hal/.rubies/rubinius-2.0.0/lib
                                         /bigdecimal.rb:4
          Rubinius::CodeLoader.require at kernel/common/code_loader.rb:243
                Kernel(Object)#require at kernel/common/kernel.rb:685
                     Object#__script__ at test.rb:1
      Rubinius::CodeLoader#load_script at kernel/delta/code_loader.rb:66
      Rubinius::CodeLoader.load_script at kernel/delta/code_loader.rb:182
               Rubinius::Loader#script at kernel/loader.rb:641
                 Rubinius::Loader#main at kernel/loader.rb:822

Caused by: no such file to load -- rubysl/bigdecimal (LoadError)

Backtrace:

       Rubinius::CodeLoader#load_error at kernel/common/code_loader.rb:436
  Rubinius::CodeLoader#resolve_require_path at kernel/common/code_loader.rb:423
   { } in Rubinius::CodeLoader#require at kernel/common/code_loader.rb:103
                  Rubinius.synchronize at kernel/bootstrap/rubinius.rb:137
          Rubinius::CodeLoader#require at kernel/common/code_loader.rb:102
          Rubinius::CodeLoader.require at kernel/common/code_loader.rb:237
                Kernel(Object)#require at kernel/common/kernel.rb:685
                    Object#__script__ at /home/hal/.rubies/rubinius-2.0.0/lib
                                         /bigdecimal.rb:2
          Rubinius::CodeLoader.require at kernel/common/code_loader.rb:243
                Kernel(Object)#require at kernel/common/kernel.rb:685
                     Object#__script__ at test.rb:1
      Rubinius::CodeLoader#load_script at kernel/delta/code_loader.rb:66
      Rubinius::CodeLoader.load_script at kernel/delta/code_loader.rb:182
               Rubinius::Loader#script at kernel/loader.rb:641
                 Rubinius::Loader#main at kernel/loader.rb:822

Additional Information

Tested against:

  • rubinius 2.0.0 (2.1.0 2013-10-04 JI) [x86_64-linux-gnu] (failed)
  • rubinius 2.0.0n275 (2.1.0 3f497e0b 2013-10-02 JI) [x86_64-linux-gnu] (failed)
  • ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux] (passed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment