Git Product home page Git Product logo

Comments (10)

deivid-rodriguez avatar deivid-rodriguez commented on June 15, 2024

Can you also check RUBYOPT and RUBYLIB?

from bundler.

ojab avatar ojab commented on June 15, 2024

Empty on both runs.

from bundler.

deivid-rodriguez avatar deivid-rodriguez commented on June 15, 2024

Coulld you run ruby -e "require 'did_you_mean'; puts $LOADED_FEATURES.grep(/did_you_mean\.rb/)"?

from bundler.

ojab avatar ojab commented on June 15, 2024
Traceback (most recent call last):
-e:1:in `<main>': undefined method `grep' for nil:NilClass (NoMethodError)

from bundler.

ojab avatar ojab commented on June 15, 2024

If I run it from irb:

irb(main):001:0> require 'did_you_mean'; puts $LOADED_FEATURES.grep(/did_you_mean\.rb/)
/usr/share/gems/gems/did_you_mean-1.4.0/lib/did_you_mean.rb
=> nil

from bundler.

deivid-rodriguez avatar deivid-rodriguez commented on June 15, 2024

So if you run $ gem list | grep default, did_you_mean is not there, right?

It sounds like your ruby distribution doesn't ship did_you_mean as a default gem, nor as a default library, and ruby pretty much expects this.

How did you install ruby?

As a workaround, I guess you could try RUBYOPT=--disable-did_you_mean.

from bundler.

ojab avatar ojab commented on June 15, 2024

Basically ruby is built from this spec.
So after a bit of googling I've found ruby/did_you_mean#117 (comment) and looks like ruby/ruby@171803d should've made it default gem, but somehow it's not in fedora's 2.7.0.
Thanks for the help, I'll open a bug in fedora bugtracker.

from bundler.

deivid-rodriguez avatar deivid-rodriguez commented on June 15, 2024

Great, thanks.

I guess we could avoid loading did_you_mean here like:

diff --git a/lib/rubygems/ext/ext_conf_builder.rb b/lib/rubygems/ext/ext_conf_builder.rb
index 88be7ecfe8..0f9d40210a 100644
--- a/lib/rubygems/ext/ext_conf_builder.rb
+++ b/lib/rubygems/ext/ext_conf_builder.rb
@@ -40,7 +40,7 @@ class Gem::Ext::ExtConfBuilder < Gem::Ext::Builder
       destdir = ENV["DESTDIR"]
 
       begin
-        cmd = Gem.ruby.shellsplit << "-I" << File.expand_path("../../..", __FILE__) <<
+        cmd = Gem.ruby.shellsplit << "--disable-did_you_mean" << "-I" << File.expand_path("../../..", __FILE__) <<
               "-r" << get_relative_path(siteconf.path) << File.basename(extension)
         cmd.push(*args)

But still Fedora should probably change this.

from bundler.

deivid-rodriguez avatar deivid-rodriguez commented on June 15, 2024

I'm pretty sure they are already aware though, since they proposed ruby/ruby#2764 to ruby-core.

from bundler.

ojab avatar ojab commented on June 15, 2024

Oh, good. Then I workaround it in our images for the time being.

from bundler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.