[#86520] [Ruby trunk Bug#14681] `syswrite': stream closed in another thread (IOError) — samuel@...
Issue #14681 has been reported by ioquatix (Samuel Williams).
3 messages
2018/04/12
[#86755] [Ruby trunk Feature#14723] [WIP] sleepy GC — normalperson@...
Issue #14723 has been reported by normalperson (Eric Wong).
6 messages
2018/04/29
[ruby-core:86535] [Ruby trunk Bug#14684][Assigned] IRB swallows exceptions
From:
hsbt@...
Date:
2018-04-13 00:50:06 UTC
List:
ruby-core #86535
Issue #14684 has been updated by hsbt (Hiroshi SHIBATA). Status changed from Open to Assigned Assignee set to keiju (Keiju Ishitsuka) ---------------------------------------- Bug #14684: IRB swallows exceptions https://bugs.ruby-lang.org/issues/14684#change-71474 * Author: RubyBugs (A Nonymous) * Status: Assigned * Priority: Normal * Assignee: keiju (Keiju Ishitsuka) * Target version: * ruby -v: ruby 2.3.4p301 (2017-03-30 revision 58214) [x86_64-darwin15] * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- # Summary IRB swallows exceptions, doesn't provide programatic access to raised exception in session. ## Details On Ruby 2.3.4, we find it surprising that exceptions in IRB are swallowed, and are not accessible at the two locations we checked: 1. In the global variable for most recent exception `$!` 2. In the return value of evaluating the expression `_` Consider this IRB session: ~~~ ruby def method_which_raises 1/0 end method_which_raises # ZeroDivisionError: divided by 0 # from (irb):10:in `/' # from (irb):10:in `method_which_raises' # from (irb):13 # from /Users/marcsiegel/.rubies/ruby-2.3.4/bin/irb:11:in `<main>' ~~~ ### Observed Neither `_` nor `$!` give access to the raised exception, so that during development or debugging, one could dig further into what had occurred. ### Expected Either `_` or `$!` would give programmatic access in IRB to an exception -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>