我如何在JRuby中安装ri文档?

问题描述 投票:0回答:1

我在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)

jruby rdoc ri
1个回答
0
投票

[抱歉,我发现:io/console的JRuby版本似乎无法与Windows命令提示符:https://github.com/jruby/jruby/blob/master/lib/ruby/stdlib/io/console/jruby.rb一起很好地工作。

例如,一种解决方案是在rdoc --all --ri中而不是在命令提示符下发出Windows Git Bash命令。

© www.soinside.com 2019 - 2024. All rights reserved.