From: "ko1 (Koichi Sasada)" Date: 2021-12-02T21:01:53+00:00 Subject: [ruby-core:106420] [Ruby master Bug#18130] Showing exceptions from Ractor on console causes errors Issue #18130 has been updated by ko1 (Koichi Sasada). Status changed from Assigned to Closed The GH ticket is closed, so I close it too. ---------------------------------------- Bug #18130: Showing exceptions from Ractor on console causes errors https://bugs.ruby-lang.org/issues/18130#change-95061 * Author: tagomoris (Satoshi TAGOMORI) * Status: Closed * Priority: Normal * Assignee: ko1 (Koichi Sasada) * ruby -v: ruby 3.1.0dev (2021-08-13T06:26:44Z master ac4d53bd46) [arm64-darwin20] * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- `ErrorHighlight.formatter` fetches a default (or configured) exception formatter from the module variable, and if it occurs in Ractor, it causes additional exceptions. ``` /Users/tagomoris/.rbenv/versions/3.1.0-dev/lib/ruby/3.1.0/error_highlight/formatter.rb:21:in `formatter': can not access non-shareable objects in constant ErrorHighlight::DEFAULT_FORMATTER by non-main ractor. (Ractor::IsolationError) from /Users/tagomoris/.rbenv/versions/3.1.0-dev/lib/ruby/3.1.0/error_highlight/core_ext.rb:36:in `to_s' from /Users/tagomoris/.rbenv/versions/3.1.0-dev/lib/ruby/3.1.0/did_you_mean/core_ext/name_error.rb:21:in `rescue in to_s' from /Users/tagomoris/.rbenv/versions/3.1.0-dev/lib/ruby/3.1.0/did_you_mean/core_ext/name_error.rb:14:in `to_s' from snippets/ractor_server.rb:21:in `message' from snippets/ractor_server.rb:21:in `full_message' from snippets/ractor_server.rb:21:in `rescue in block (2 levels) in
' from snippets/ractor_server.rb:10:in `block (2 levels) in
' ``` -- https://bugs.ruby-lang.org/ Unsubscribe: