osx - Ruby ri tool will not work. -
i trying make use of ri tools , cannot them work. have tried rvm docs generate
rvm docs generate-ri
. neither have solved issue. on mac osx version 10.8.2.
thanks
$ ri string /users/zackwarburg/.rvm/gems/ree-1.8.7-2012.02/gems/rdoc-4.0.1/lib/rdoc/store.rb:546:in `load': undefined class/module encoding (argumenterror) /users/zackwarburg/.rvm/gems/ree-1.8.7-2012.02/gems/rdoc-4.0.1/lib/rdoc/store.rb:546:in `load_cache' /users/zackwarburg/.rvm/gems/ree-1.8.7-2012.02/gems/rdoc-4.0.1/lib/rdoc/store.rb:545:in `open' /users/zackwarburg/.rvm/gems/ree-1.8.7-2012.02/gems/rdoc-4.0.1/lib/rdoc/store.rb:545:in `load_cache' /users/zackwarburg/.rvm/gems/ree-1.8.7-2012.02/gems/rdoc-4.0.1/lib/rdoc/ri/driver.rb:384:in `initialize' /users/zackwarburg/.rvm/gems/ree-1.8.7-2012.02/gems/rdoc-4.0.1/lib/rdoc/ri/paths.rb:54:in `each' /users/zackwarburg/.rvm/gems/ree-1.8.7-2012.02/gems/rdoc-4.0.1/lib/rdoc/ri/driver.rb:378:in `initialize' /users/zackwarburg/.rvm/gems/ree-1.8.7-2012.02/gems/rdoc-4.0.1/lib/rdoc/ri/driver.rb:355:in `new' /users/zackwarburg/.rvm/gems/ree-1.8.7-2012.02/gems/rdoc-4.0.1/lib/rdoc/ri/driver.rb:355:in `run' /users/zackwarburg/.rvm/gems/ree-1.8.7-2012.02/gems/rdoc-4.0.1/bin/ri:12 /users/zackwarburg/.rvm/gems/ree-1.8.7-2012.02/bin/ri:19:in `load' /users/zackwarburg/.rvm/gems/ree-1.8.7-2012.02/bin/ri:19 /users/zackwarburg/.rvm/gems/ree-1.8.7-2012.02/bin/ruby_noexec_wrapper:14
it looks your version of rdoc (4.0.1) new. @thetinman indicated, may want bump ruby version 1.9.x or 2.0.0 if possible.
alternatively, try removing 4.0.1 , installing 3.12.2, recent 3.x variant on rubygems.
i dug source code determine rdoc
attempting marshal.load
cache file. perhaps want clear cache , re-run rvm docs generate-ri
ensure cache encoding accurate.
Comments
Post a Comment