You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems, in this case it looks on a problem with metaprogramming and extending modules.
To reproduce
require 'ethon'
Error:
NoMethodError: undefined method `enum' for Ethon::Curl:Module
from ~/.gem/truffleruby/2.4.4/gems/ethon-0.11.0/lib/ethon/curls/constants.rb:16:in `Curl'
from ~/.gem/truffleruby/2.4.4/gems/ethon-0.11.0/lib/ethon/curls/constants.rb:2:in `Ethon'
from ~/.gem/truffleruby/2.4.4/gems/ethon-0.11.0/lib/ethon/curls/constants.rb:1:in `<top (required)>'
from ~/.rubies/truffleruby-1.0.0-rc10/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:54:in `gem_original_require'
from ~/.rubies/truffleruby-1.0.0-rc10/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from ~/.gem/truffleruby/2.4.4/gems/ethon-0.11.0/lib/ethon/curl.rb:26:in `Curl'
from ~/.gem/truffleruby/2.4.4/gems/ethon-0.11.0/lib/ethon/curl.rb:13:in `Ethon'
from ~/.gem/truffleruby/2.4.4/gems/ethon-0.11.0/lib/ethon/curl.rb:8:in `<top (required)>'
from ~/.rubies/truffleruby-1.0.0-rc10/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:54:in `gem_original_require'
from ~/.rubies/truffleruby-1.0.0-rc10/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from ~/.gem/truffleruby/2.4.4/gems/ethon-0.11.0/lib/ethon.rb:15:in `<top (required)>'
from ~/.rubies/truffleruby-1.0.0-rc10/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:130:in `gem_original_require'
from ~/.rubies/truffleruby-1.0.0-rc10/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:130:in `require'
from (irb):3
from ~/.rubies/truffleruby-1.0.0-rc10/bin/irb:29:in `<main>'
The text was updated successfully, but these errors were encountered:
I'm looking at improving our FFI implementation, which is currently fairly minimal and causing this, see #1529. I'll keep this issue open to make sure require "ethon" works.
I fixed this in 59fb511 and added complete support for the FFI, with a pure-Ruby implementation using Truffle NFI.
I checked and require "ethon" now works.
It will be in the next release (1.0.0-rc16).
Thank you for the report.
It seems, in this case it looks on a problem with metaprogramming and extending modules.
To reproduce
Error:
The text was updated successfully, but these errors were encountered: