uninitialized constant ProgressBar::WithProgress
li-thy-um opened this issue · 0 comments
li-thy-um commented
Hi, I want to use #with_progress
but I can't
2.3.0 :001 > require 'progress_bar'
=> true
2.3.0 :002 > require 'progress_bar/with_progress'
LoadError: cannot load such file -- progress_bar/with_progress
from /Users/lithium/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/lithium/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from (irb):2
from /Users/lithium/.rvm/rubies/ruby-2.3.0/bin/irb:11:in `<main>'
2.3.0 :003 > ProgressBar
=> ProgressBar
2.3.0 :004 > ProgressBar::WithProgress
NameError: uninitialized constant ProgressBar::WithProgress
from (irb):4
from /Users/lithium/.rvm/rubies/ruby-2.3.0/bin/irb:11:in `<main>'
I check my ~/.rvm/gems/ruby-2.3.0/gems/progress_bar-1.0.5/
find there is no relative ruby files
use bundle exec irb
fixed the issue.