Actions
Bug #19049
closedlib/debug.rb in Ruby 3.0.4 fails due to $SAFE not being set
Bug #19049:
lib/debug.rb in Ruby 3.0.4 fails due to $SAFE not being set
Description
Since $SAFE is not a special identifier in Ruby 3.0, lib/debug.rb throws an error as it references to $SAFE which is not set.
Code:
https://github.com/ruby/ruby/blob/ruby_3_0/lib/debug.rb#L6
Error:
lib/ruby/3.0.0/debug.rb:6:in <top (required)>': undefined method >' for nil:NilClass (NoMethodError)
Updated by jeremyevans0 (Jeremy Evans) about 3 years ago
- Status changed from Open to Closed
- Backport changed from 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN to 2.7: DONTNEED, 3.0: REQUIRED, 3.1: DONTNEED
I submitted a pull request to fix this in Ruby 3.0: https://github.com/ruby/ruby/pull/6528
Closing and marking for backport as debug.rb was removed in Ruby 3.1 in favor of the debug gem.
Actions