【发布时间】:2020-12-16 15:18:08
【问题描述】:
我在 Windows 系统上安装了 JRuby 9.2.11.1。 安装成功完成后,不存在 core/stdlib 的 ri 文档。 例如:
C:\>ri Array
Nothing known about Array
我尝试了这个解决方案How do I install the Ruby ri documentation?(诚然,对于 Ruby Installer,而不是 JRuby)无济于事。尝试运行rdoc --all --ri 后,我收到以下错误消息:
Before reporting this, could you check that the file you're documenting
has proper syntax:
C:/jruby-9.2.11.1/bin/jruby.exe -c NEWS
RDoc is not a full Ruby parser and will fail when fed invalid ruby programs.
The internal error was:
(NameError) undefined local variable or method `console' for IO:Class
Did you mean? console_size
(注意:安装的 RDoc gem 版本为 6.1.2)
【问题讨论】: