Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use gem in Ruby 3 Ractor #289

Open
msa7 opened this issue Oct 22, 2021 · 0 comments
Open

Use gem in Ruby 3 Ractor #289

msa7 opened this issue Oct 22, 2021 · 0 comments

Comments

@msa7
Copy link

msa7 commented Oct 22, 2021

I am trying to use gem in Ruby 3 Ractor. I got few exceptions like this:

<internal:ractor>:694:in `take': thrown by remote Ractor. (Ractor::RemoteError)
.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/droplet_kit-3.15.0/lib/droplet_kit/client.rb:78:in `default_user_agent': can not access non-shareable objects in constant DropletKit::VERSION by non-main Ractor. (Ractor::IsolationError)

I think if you add .freeze on strings in the gem it will solve most of the issues

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant