FS#78125 - [ruby] ruby -debug crashes with LoadError

Attached to Project: Community Packages
Opened by Sam Linnfer (lllf) - Wednesday, 05 April 2023, 14:56 GMT
Last edited by Toolybird (Toolybird) - Thursday, 06 April 2023, 01:48 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

`ruby -debug` fails with:


Exception `LoadError' at /usr/lib/ruby/3.0.0/rubygems.rb:1323 - cannot load such file -- rubygems/defaults/operating_system
Exception `LoadError' at /usr/lib/ruby/3.0.0/rubygems.rb:1340 - cannot load such file -- rubygems/defaults/ruby
Exception `NameError' at -e:1 - undefined local variable or method `bug' for main:Object
-e:1:in `<main>': undefined local variable or method `bug' for main:Object (NameError)


Additional info:
* package version(s) 3.0.5-1
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:
$ ruby -debug
This task depends upon

Closed by  Toolybird (Toolybird)
Thursday, 06 April 2023, 01:48 GMT
Reason for closing:  Not a bug
Comment by Toolybird (Toolybird) - Thursday, 06 April 2023, 01:36 GMT
The correct switch is `--debug' [1]. What do you expect should happen?

[1] https://man.archlinux.org/man/ruby.1.en#debug
Comment by Sam Linnfer (lllf) - Thursday, 06 April 2023, 01:38 GMT
Apologies, I missed the double dash.

Loading...