theine icon indicating copy to clipboard operation
theine copied to clipboard

theine_current_ruby throws error

Open low-on-mana opened this issue 8 years ago • 1 comments

I first ran this

$ theine_set_ruby /Users/anoop/.rbenv/versions/jruby-9.0.3.0/bin/ruby
Set theine to run using /Users/anoop/.rbenv/versions/jruby-9.0.3.0/bin/ruby.

But shockingly I am getting this while using the following


$ theine_current_ruby

WARNING: Use strings for Figaro configuration. 100 was converted to "100".

NoMethodError: undefined method `include?' for nil:NilClass
  block in argv_to_s at /Users/anoop/.rbenv/versions/jruby-9.0.3.0/lib/ruby/gems/shared/gems/theine-0.0.14/lib/theine/worker.rb:105
                 map at org/jruby/RubyArray.java:2300
           argv_to_s at /Users/anoop/.rbenv/versions/jruby-9.0.3.0/lib/ruby/gems/shared/gems/theine-0.0.14/lib/theine/worker.rb:104
                 run at /Users/anoop/.rbenv/versions/jruby-9.0.3.0/lib/ruby/gems/shared/gems/theine-0.0.14/lib/theine/worker.rb:49
               <top> at /Users/anoop/.rbenv/versions/jruby-9.0.3.0/lib/ruby/gems/shared/gems/theine-0.0.14/lib/theine/worker.rb:142

low-on-mana avatar Sep 26 '16 11:09 low-on-mana

theine_current_ruby doesn't get the current ruby, it runs theine with the current ruby. Both theine and theine_current_ruby expect some argument because it's essentially calling rails. Fixed in https://github.com/rwilliams/theine/commit/0c43e7924acabb255f405f826086c84b4dc45980

rwilliams avatar Nov 26 '19 15:11 rwilliams