Closed grenzr closed 11 years ago
Hi @grenzr, thanks for spotting this! @matthewmcnew and I spent a little time investigating this error. It turns out that most systems (e.g. all of our development machines) have Readline installed as part of the standard library, but some (e.g. your Jenkins box) do not.
The top line of the stack trace that you posted indicates that the failing line is actually in the cf gem. So while we can fix this problem in vcap-yeti, that won't solve the problem for the next person using cf without readline. In other words, this problem should be fixed in cf rather than in vcap-yeti.
Also, it seems a little strange to require the ruby implementation of readline when most systems do have Readline available. So rather than adding gem "rb-readline"
to the Gemfile, I would lean towards changing require "readline"
in console.rb to something like:
begin
require "readline"
rescue LoadError
warn "This version of Ruby was not compiled with Readline support. Falling back to a pure Ruby implementation."
require "rb-readline"
end
I'm closing this issue, but please open a pull request against cf and reference this issue -- unfortunately GitHub doesn't have a way to simply move issues from one repo to another :(
During bundler execution of rspec, results in: