-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Object#clone(freeze: boolean) is not supported (available since 2.4 in MRI) #1454
Comments
Just for a record, here is the original report: Here is a small script requiring running PostgreSQL. The below code failed during a try to create a table using # frozen_string_literal: true
require 'bundler/inline'
require 'logger'
gemfile do
source 'https://rubygems.org'
gem 'pg', '1.1.3'
gem 'sequel', '5.13.0'
end
DATABASE_URL = 'postgres://postgres:postgres@localhost:5432/truffleruby'
logger = Logger.new($stdout)
DB = Sequel.connect(DATABASE_URL, logger: logger)
DB.create_table?(:exchange_rates) do
Date :date, primary_key: true
BigDecimal :rate, size: [8, 4]
end Error:
|
@eregon @chrisseaton I isolated the problem mentioned above. |
@eregon I don't want to push on this. This is just a question and I realize you Truffleruby team has own priorities. But I'd like to ask if this can be solved in RC10 release if possible. I'd like to explore more stuff around |
It should be easy to fix - we'll try today. |
This is a bit trickier than I thought, because |
I think I've got a good fix. |
That's implemented now and will be in the next release. Thanks for the report. Priortising these issues is very useful to us, so if you have a next one you think is most important, comment on it. Do you know how to build from source in order to test our fixes? |
@chrisseaton I saw https://github.com/oracle/truffleruby/blob/master/doc/contributor/workflow.md But it seems to be a bit complicated. I wanted to create something like Anyway, are there some easy steps how to build it on macOS? |
@chrisseaton I've pointed several issues on which would be interesting to take a look at. |
This is easily reproducible under
truffleruby 1.0.0.rc9
.Object#clone(freeze: boolean)
option is available since Ruby 2.4. See https://ruby-doc.org/core-2.4.0/Object.html#method-i-cloneTruffleruby 1.0.0 claims it's Ruby 2.4 compatible. So this option would be supported as well.
To reproduce:
Error:
The text was updated successfully, but these errors were encountered: