tagomoris / right_speed

MIT License
15 stars 1 forks source link

Cannot call JSON.dump #4

Open tagomoris opened 3 years ago

tagomoris commented 3 years ago
/Users/tagomoris/.rbenv/versions/3.0.0/lib/ruby/3.0.0/json/common.rb:639:in `dump': can not access instance variables of classes/modules from non-main Ractors (Ractor::IsolationError)
    from ractor.rb:7:in `block in <main>'
<internal:ractor>:694:in `take': thrown by remote Ractor. (Ractor::RemoteError)
    from ractor.rb:10:in `<main>'
/Users/tagomoris/.rbenv/versions/3.0.0/lib/ruby/3.0.0/json/common.rb:639:in `dump': can not access instance variables of classes/modules from non-main Ractors (Ractor::IsolationError)
    from ractor.rb:7:in `block in <main>'

We can do obj.to_json. Wow.