Comments (10)
Can you also check RUBYOPT
and RUBYLIB
?
from bundler.
Empty on both runs.
from bundler.
Coulld you run ruby -e "require 'did_you_mean'; puts $LOADED_FEATURES.grep(/did_you_mean\.rb/)"
?
from bundler.
Traceback (most recent call last):
-e:1:in `<main>': undefined method `grep' for nil:NilClass (NoMethodError)
from bundler.
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.
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.
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.
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.
I'm pretty sure they are already aware though, since they proposed ruby/ruby#2764 to ruby-core.
from bundler.
Oh, good. Then I workaround it in our images for the time being.
from bundler.
Related Issues (20)
- Migrate current Linux CI matrix to Github Actions
- RUBY VERSION ruby 2.6.0p0 BUNDLED WITH 1.17.3 ``` --- TEMPLATE END ---------------------------------------------------------------- Unfortunately, an unexpected error occurred, and Bundler cannot continue. First, try this link to see if there are any existing issue reports for this error: https://github.com/bundler/bundler/search?q=%22&type=Issues If there aren't any reports for this error yet, please create copy and paste the report template above into a new issue. Don't forget to anonymize any private data! The new issue form is located at:
- Improve OpenSSL load failure message HOT 1
- Bundler 2.1.4 errors with different prefix for path source gems HOT 10
- i can't run bundle install HOT 2
- LoadError: cannot load such file -- <file_name> HOT 3
- CHANGELOG is out of date on master (does not mention 2.1.4) HOT 1
- config are stored to global when using `bundle config set --local` more than once HOT 3
- Bundle install got stuck on 'Resolving dependencies'
- Running Github Page Locally
- init_gems_rb setting is ignored in bundle-gem
- https://github.com/bundler/bundler/search?q=unknown+encoding+name+-+CP720&type=Issues
- gem install bundler - fails HOT 1
- (please ignore or delete this issue) HOT 1
- Codeanywhere: Unfortunately, an unexpected error occurred, and Bundler cannot continue. HOT 1
- Gem::RemoteFetcher::FetchError: too many connection resets
- Gem::RemoteFetcher::FetchError: too many connection resets HOT 1
- Bundler removes more than it should HOT 1
- Bundle does not find gems after bundle install. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bundler.