rvm / rvm

Ruby enVironment Manager (RVM)
https://rvm.io
Other
5.1k stars 1.03k forks source link

rvm missing documentation for standard library #5375

Open bo-tato opened 1 year ago

bo-tato commented 1 year ago

after rvm install ruby-3.2.2 and then rvm docs generate all I am missing documentation for the standard library, ie ri Hash returns Nothing known about Hash. There is no error with rvm docs generate-ri it appears to complete successfully but I'm missing stdlib documentation. After rvm reinstall ruby-3.2.2 --docs everything is working and I do have documentation for stdlib. This behavior is consistent on master branch of rvm, on two computers I installed on, debian unstable and ubuntu 20

bo-tato commented 1 year ago

I just checked, and with rvm install 3.1.1 and then rvm docs generate-ri I do have the stdlib docs, this is just happening with version 3.2.2 that I need to pass --docs to the install command to get them

nsslh commented 3 months ago

I was very surprised by this behaviour. It persists up to Ruby 3.3.2, with the latest stable rvm (1.29.12). To be clear:

Working

rvm install --docs 3.3.2
# or rvm reinstall --docs 3.3.2
ri String

Not working

rvm install 3.3.2
rvm docs generate-ri
ri String

If a choice is going to require reinstallation to change, I think the default should favour interactive desktop users.