Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't launch since 1.4.0 #342

Closed
felipec opened this issue Jan 30, 2022 · 6 comments
Closed

Can't launch since 1.4.0 #342

felipec opened this issue Jan 30, 2022 · 6 comments

Comments

@felipec
Copy link

felipec commented Jan 30, 2022

Since 1.4.0 I'm unable to launch irb. I get this error:

<internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- rdoc (LoadError)
	from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from /usr/lib/ruby/gems/3.0.0/gems/irb-1.4.1/lib/irb/input-method.rb:17:in `<top (required)>'

I don't have rdoc, and I don't see why it should be hard dependency.

@Maumagnaguagno
Copy link
Contributor

Maumagnaguagno commented Feb 26, 2022

I had the same error and installed rdoc to solve it.
The error is related to commit 0267004.
Maybe the require 'rdoc' from lib/irb/input-method.rb can be removed from line 17 as there is already a rescue LoadError at line 315 for rdoc.

EDIT: The rescue block has been removed in 5f749c6.

@junaruga
Copy link
Member

@felipec Are you using Fedora Ruby RPM package where the the irb (rubygem-irb RPM package)'s rdoc (rubygem-rdoc RPM package) is optional?

if it is, the solution for now is to run sudo dnf install rubygem-rdoc.

The issue was fixed on the latest master branch on this IRB project.

@felipec
Copy link
Author

felipec commented Sep 1, 2022

@junaruga No, I'm using Arch Linux. The issue seems to be fixes because ruby requires ruby-rdoc now. I don't think it should, but oh well, at least it works.

@junaruga
Copy link
Member

junaruga commented Sep 1, 2022

No, I'm using Arch Linux. The issue seems to be fixes because ruby requires ruby-rdoc now. I don't think it should, but oh well, at least it works.

OK. I am not sure if the Arch package system has a concept of soft dependency. In Fedora, the packaging system called RPM has a concept of "weak dependency" that is like soft dependency. Users can select if they will download weak dependencies of the main package by the packaging command's configuration setting. The rubygem-rdoc RPM is a weak dependency of the rubygem-irb RPM now.

@junaruga
Copy link
Member

junaruga commented Sep 1, 2022

Fixed at 54c8df0 and b248520 .

@felipec
Copy link
Author

felipec commented Sep 2, 2022

@junaruga Yes, pacman does have optional depends, but for some reason the maintainer of the package opted to not make them optional: PKGBUILD.

@hsbt hsbt closed this as completed Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants