From: "getajobmike (Mike Perham) via ruby-core" Date: 2026-08-19T17:47:09+00:00 Subject: [ruby-core:126444] [Ruby Feature#22252] improve "defined with an un-shareable Proc in a different Ractor" error Issue #22252 has been updated by getajobmike (Mike Perham). File rtest.rb added Attached is a script with the issue I ran into. `define_method` captures the surrounding context whereas `class_eval` does not. ---------------------------------------- Feature #22252: improve "defined with an un-shareable Proc in a different Ractor" error https://bugs.ruby-lang.org/issues/22252#change-118594 * Author: getajobmike (Mike Perham) * Status: Open ---------------------------------------- Hi, I'm trying to make my Ruby more compatible with Ractors. I'm seeing this error message but in an API with many abstractions, it can be difficult to determine the Proc in question. Would it be possible to include the source_location of the Proc to help improve debugging? ---Files-------------------------------- rtest.rb (350 Bytes) -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/