Actions
Bug #17377
closedA warning message doesn't display using -W option on irb
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.0.0preview1 (2020-09-25 master 0096d2b895) [x86_64-darwin19]
Description
Expected¶
Using -W option, a warning statement display when deprecated method call.
$ irb -W
irb(main):001:0> Object.tainted?
(irb):1: warning: Object#tainted? is deprecated and will be removed in Ruby 3.2
=> false
Actual¶
Although using -W option, a warning statement doesn't display when deprecated method call.
~/development/sandbox
$ ruby -v
ruby 3.0.0preview1 (2020-09-25 master 0096d2b895) [x86_64-darwin19]
~/development/sandbox
$ irb -v
irb 1.2.7 (2020-09-19)
~/development/sandbox
$ irb -W
irb(main):001:0> Object.tainted?
=> false
Updated by osyo (manga osyo) almost 4 years ago
Thanks issues :)
There was no warning message in Ruby 3.0.0.0dev either.
~ $ irb -W
irb(main):001:0> RUBY_DESCRIPTION
=> "ruby 3.0.0dev (2020-12-08T10:37:42Z master 09229c71bc) [x86_64-linux]"
irb(main):002:0> IRB::VERSION
=> "1.2.7"
irb(main):003:0> Object.tainted?
=> false
irb(main):004:0>
Updated by jeremyevans0 (Jeremy Evans) almost 4 years ago
irb -W
only sets $VERBOSE = true
, it doesn't enable deprecation warnings, unlike ruby -W
. Similar issue with irb -w
. I've submitted a pull request to irb: https://github.com/ruby/irb/pull/145
Updated by aycabta (aycabta .) almost 4 years ago
- Status changed from Open to Closed
Thank you for reporting and the Pull Request!
Actions
Like0
Like0Like0Like0