Skip to content
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

Failure with Ruby 3.1.4 #29

Open
PierreR opened this issue Oct 25, 2023 · 8 comments
Open

Failure with Ruby 3.1.4 #29

PierreR opened this issue Oct 25, 2023 · 8 comments

Comments

@PierreR
Copy link
Contributor

PierreR commented Oct 25, 2023

I have this failure using ruby 3.1.4
Not sure if it is the way I am building hruby or the fact that I am now using ruby 3.x.y.

undefined method `current' for Ractor:Class
/nix/store/v001jk4sximy2fn9c704dj64a2vwfxsm-ruby-3.1.4/lib/ruby/3.1.0/psych.rb:727:in `config'
/nix/store/v001jk4sximy2fn9c704dj64a2vwfxsm-ruby-3.1.4/lib/ruby/3.1.0/forwardable.rb:232:in `load_tags='
/nix/store/v001jk4sximy2fn9c704dj64a2vwfxsm-ruby-3.1.4/lib/ruby/3.1.0/psych.rb:737:in `<module:Psych>'
/nix/store/v001jk4sximy2fn9c704dj64a2vwfxsm-ruby-3.1.4/lib/ruby/3.1.0/psych.rb:234:in `<top (required)>'
/nix/store/v001jk4sximy2fn9c704dj64a2vwfxsm-ruby-3.1.4/lib/ruby/3.1.0/yaml.rb:4:in `require'
/nix/store/v001jk4sximy2fn9c704dj64a2vwfxsm-ruby-3.1.4/lib/ruby/3.1.0/yaml.rb:4:in `<top (required)>'
/nix/store/05m5z8ir6akpcz87cv8i8l43pqja7d35-language-puppet-1.5.0-data/share/ghc-9.2.8/x86_64-linux-ghc-9.2.8/language-puppet-1.5.0/ruby/hrubyerb.rb:3:in `require'

Any idea ?

@bartavelle
Copy link
Owner

Ruby 3 is most certainly unsupported as of now. I'll try to take a look. which distribution are you using?

@PierreR
Copy link
Contributor Author

PierreR commented Oct 30, 2023

@bartavelle I am using an isolated environment using nix (https://nixos.org/). It doesn't matter much but I am on WSL (Ubuntu).
I have switched to Ruby 3 because Ruby 2 is EOL.

@bartavelle
Copy link
Owner

It is completely busted with ruby 3.0 😭

@bartavelle
Copy link
Owner

OK I give up for now, there is some memory corruption happening, and I don't think I can spend hours chasing after that. Perhaps I will have an illumination in the following days though.

@PierreR
Copy link
Contributor Author

PierreR commented Oct 31, 2023

@bartavelle On my side, I can still make it work with ruby 2.7.6 (ghc 8.10) but as soon as I switch to ruby2.7.8 (ghc 9.2.8) I have this error:

allocaBytesAligned: invalid argument (alignment (=152) must be a power of two!)

As surprising as it sounds, I guess this is due to the change from ruby 2.7.6 to 2.7.8 ?

Would be handy if I am able to switch to ruby 2.7.8 (ghc 9.2.8).

Thanks

@PierreR
Copy link
Contributor Author

PierreR commented Oct 31, 2023

From language-puppet, the error arises at the content of a ERB template. For instance: content => template('sudo/sudoers.erb'),

@bartavelle
Copy link
Owner

I know how to fix the alignment issue though :)

@bartavelle
Copy link
Owner

I just pushed a fix

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

No branches or pull requests

2 participants