`ri Array#new` gives 'Nothing known about Array'. Looking at ruby-doc content is in /usr/share/ri/system but ri --list-doc-dirs /usr/share/ri/2.4.0/system /usr/share/ri/2.4.0/site /home/akurtakov/.rdoc /usr/share/gems/doc/coderay-1.1.0/ri /usr/share/gems/doc/rdoc-5.1.0/ri /usr/share/gems/doc/test-unit-3.2.4/ri /usr/share/gems/doc/test-unit-notify-1.0.4/ri /usr/share/gems/doc/test-unit-rr-1.0.5/ri so the place where ruby-doc puts its content is not looked up by ri.
First of all, your example is wrong, since Array#new would be instance method, while you should be looking for class method Array.new. But anyway, this is interesting, since the paths are wrong and they must be broken for ages (probably since Ruby 1.9.3 already) and nobody noticed yet. This needs to be fixed in rubygem-rdoc as well as in ruby (since ruby ships bundled version of rubygem-rdoc). This is where the paths are set: https://github.com/rdoc/rdoc/blob/e02728fdf440012ace74b62b00b4f4954d2f91c3/lib/rdoc/ri/paths.rb#L182 https://github.com/rdoc/rdoc/blob/e02728fdf440012ace74b62b00b4f4954d2f91c3/lib/rdoc/ri/paths.rb#L15 As a temporary workaround, you can use: ~~~ $ ri --doc-dir=/usr/share/ri/system/ Array.new ~~~ or ~~~ $ export RI=--doc-dir=/usr/share/ri/system/ $ ri Array.new ~~~
Same problem here on Fedora 25. I was looking for Regexp but ri gives me nothing: $ ri Regexp Nothing known about Regexp $ ri --list-doc-dirs /usr/share/ri/2.3.0/system /usr/share/ri/2.3.0/site /home/aaron/.rdoc /usr/local/share/gems/doc/ast-2.3.0/ri /usr/local/share/gems/doc/builder-3.2.3/ri /usr/local/share/gems/doc/bundler-1.14.6/ri /usr/local/share/gems/doc/coderay-1.1.1/ri /usr/local/share/gems/doc/git-1.3.0/ri /usr/local/share/gems/doc/gnuplot-2.6.2/ri /usr/local/share/gems/doc/method_source-0.8.2/ri /usr/local/share/gems/doc/pry-0.10.4/ri /usr/local/share/gems/doc/rake-12.0.0/ri /usr/local/share/gems/doc/slop-3.6.0/ri /usr/local/share/gems/doc/term-ansicolor-1.4.0/ri /usr/local/share/gems/doc/tins-1.13.2/ri While those rdocs are actually under /usr/share/ri/system/Regexp. The mentioned workaround works.
BTW, I think the problematic package is ruby-doc: it should install those ri doc files to /usr/share/ri/2.3.0/System instead of /usr/share/ri/System.
There is "--with-ridir=DIR" configuration option if I am not mistaken, this should help ...
It's worth fixing ruby-doc instead of relying on every user finding on his own additional params to pass.
(In reply to Alexander Kurtakov from comment #5) > It's worth fixing ruby-doc instead of relying on every user finding on his > own additional params to pass. Agree. I found this bug report before I'm aware of those switches.
Ok, let me try to rephrase comment #4: It seems that Ruby configure script has "--with-ridir=DIR" option, which should help to resolve the issue once for all and for everybody.
(In reply to Vít Ondruch from comment #7) > Ok, let me try to rephrase comment #4: > > It seems that Ruby configure script has "--with-ridir=DIR" option, which > should help to resolve the issue once for all and for everybody. Good to know this. Looking forward to have an updated package that has this problem fixed, thanks!
*** Bug 1475253 has been marked as a duplicate of this bug. ***
As it turns out, this is issue of independent rubygem-rdoc, which has ATM higher version then the rubygem-rdoc coming from ruby package.
rubygem-rdoc-5.1.0-2.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-0dd79e9cf5
rubygem-rdoc-4.2.2-3.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-29526f04d3
rubygem-rdoc-4.2.2-3.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-f1a98f12f3
rubygem-rdoc-4.2.2-3.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-f1a98f12f3
rubygem-rdoc-4.2.2-3.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-29526f04d3
rubygem-rdoc-5.1.0-2.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-0dd79e9cf5
Works for me, thanks.
rubygem-rdoc-5.1.0-2.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.
rubygem-rdoc-4.2.2-3.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
rubygem-rdoc-4.2.2-3.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.