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
Bundler 1.3.2 throws an exception if Gemfile.lock is not exists #2205
Comments
Can you please give us a way to reproduce the problem? That would help us, thank you. |
Sorry I keep this issue in my mind, but currently I do not have a time to reproduce/debug it. Please bear with me. |
Here's example Gemfile/Gemfile.lock pair you can use to reproduce this bug: https://gist.github.com/cheba/0c80638ca7fef38bef55 Put in in one folder and run I used bundler 1.3.4. |
I was able to reproduce this and created this log file for the JIT https://gist.github.com/brixen/5199143. Running with -Xint (the JIT off) did not cause the error. Here's a snippet of debugging output. If I Using streamio-ffmpeg (0.9.0) Using term-ansicolor (1.0.7) Using twitter-stream (0.1.16) Using tinder (1.9.2) from git://github.com/collectiveidea/tinder.git (at master) true #<Method: String#kind_of? (defined in Kernel at kernel/alpha.rb:161)> String #<Method: String#<=> (defined in String at kernel/common/string.rb:82)> "activerecord" "mongoid" | Breakpoint: String#<=>(other) at kernel/common/string.rb:89 (107) | 89: Rubinius::Debugger.start Debugging added to def <=>(other)
if other.kind_of?(String)
return @data.compare_bytes(other.__data__, @num_bytes, other.bytesize)
else
STDERR.puts other.kind_of?(String), other.method(:kind_of?).inspect, other.class, other.method(:<=>).inspect, self.inspect, other.inspect
if other.class.equal?(String)
require 'rubinius/debugger'
Rubinius::Debugger.start
end
return unless other.respond_to?(:to_str) && other.respond_to?(:<=>)
return unless tmp = (other <=> self)
return -tmp # We're not supposed to convert to integer here
end
end |
This appears to be caused by this commit 9973136. I updated this gist https://gist.github.com/brixen/5199143 with a log after reverting that commit. |
@cheba thanks for helping in this issue |
I experienced the following exception if Gemfile.lock is missing If it is contains some data (even if it is outdated) the exception does not raises.
Under MRI 1.8.7, 1.9.3 no problems appear.
Please kindly investigate this issue. Thanks.
The text was updated successfully, but these errors were encountered: