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

Add support for truffleruby (22.1.0) on Linux #1028

Merged
merged 1 commit into from
Sep 29, 2023

Conversation

Tiikara
Copy link
Contributor

@Tiikara Tiikara commented Jun 14, 2022

Add support for truffleruby (22.1.0).

Cause this feature is not supported by truffleruby (22.1.0) yet: https://github.com/oracle/truffleruby/blob/master/doc/user/compatibility.md#standard-libraries

Without commit PR got error:

<internal:core> core/kernel.rb:236:in `gem_original_require': cannot load such file -- pty (LoadError)
        from /root/.rbenv/versions/truffleruby+graalvm-22.1.0/graalvm/languages/ruby/lib/gems/gems/wicked_pdf-2.6.3/lib/wicked_pdf/progress.rb:3:in `<module:Progress>'
        from /root/.rbenv/versions/truffleruby+graalvm-22.1.0/graalvm/languages/ruby/lib/gems/gems/wicked_pdf-2.6.3/lib/wicked_pdf/progress.rb:2:in `<class:WickedPdf>'
        from /root/.rbenv/versions/truffleruby+graalvm-22.1.0/graalvm/languages/ruby/lib/gems/gems/wicked_pdf-2.6.3/lib/wicked_pdf/progress.rb:1:in `<top (required)>'
        from <internal:core> core/kernel.rb:234:in `gem_original_require'
        from /root/.rbenv/versions/truffleruby+graalvm-22.1.0/graalvm/languages/ruby/lib/gems/gems/wicked_pdf-2.6.3/lib/wicked_pdf.rb:18:in `<top (required)>'
        from <internal:core> core/kernel.rb:234:in `gem_original_require'
        from /root/.rbenv/versions/truffleruby+graalvm-22.1.0/graalvm/languages/ruby/lib/gems/gems/bundler-2.3.15/lib/bundler/runtime.rb:60:in `block (2 levels) in require'
        from /root/.rbenv/versions/truffleruby+graalvm-22.1.0/graalvm/languages/ruby/lib/gems/gems/bundler-2.3.15/lib/bundler/runtime.rb:55:in `each'
        from /root/.rbenv/versions/truffleruby+graalvm-22.1.0/graalvm/languages/ruby/lib/gems/gems/bundler-2.3.15/lib/bundler/runtime.rb:55:in `block in require'
        from /root/.rbenv/versions/truffleruby+graalvm-22.1.0/graalvm/languages/ruby/lib/gems/gems/bundler-2.3.15/lib/bundler/runtime.rb:44:in `each'
        from /root/.rbenv/versions/truffleruby+graalvm-22.1.0/graalvm/languages/ruby/lib/gems/gems/bundler-2.3.15/lib/bundler/runtime.rb:44:in `require'
        from /root/.rbenv/versions/truffleruby+graalvm-22.1.0/graalvm/languages/ruby/lib/gems/gems/bundler-2.3.15/lib/bundler.rb:187:in `require'
        from /etc/base_ruby_on_rails_trade/trade/config/application.rb:20:in `<top (required)>'
        from <internal:core> core/kernel.rb:234:in `gem_original_require'
        from /root/.rbenv/versions/truffleruby+graalvm-22.1.0/graalvm/languages/ruby/lib/gems/gems/railties-7.0.3/lib/rails/commands/server/server_command.rb:137:in `block in perform'
        from <internal:core> core/kernel.rb:510:in `tap'
        from /root/.rbenv/versions/truffleruby+graalvm-22.1.0/graalvm/languages/ruby/lib/gems/gems/railties-7.0.3/lib/rails/commands/server/server_command.rb:134:in `perform'
        from /root/.rbenv/versions/truffleruby+graalvm-22.1.0/graalvm/languages/ruby/lib/gems/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
        from /root/.rbenv/versions/truffleruby+graalvm-22.1.0/graalvm/languages/ruby/lib/gems/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
        from /root/.rbenv/versions/truffleruby+graalvm-22.1.0/graalvm/languages/ruby/lib/gems/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
        from /root/.rbenv/versions/truffleruby+graalvm-22.1.0/graalvm/languages/ruby/lib/gems/gems/railties-7.0.3/lib/rails/command/base.rb:87:in `perform'
        from /root/.rbenv/versions/truffleruby+graalvm-22.1.0/graalvm/languages/ruby/lib/gems/gems/railties-7.0.3/lib/rails/command.rb:48:in `invoke'
        from /root/.rbenv/versions/truffleruby+graalvm-22.1.0/graalvm/languages/ruby/lib/gems/gems/railties-7.0.3/lib/rails/commands.rb:18:in `<top (required)>'

        from <internal:core> core/kernel.rb:234:in `gem_original_require'
        from bin/rails:4:in `<main>'

@unixmonkey unixmonkey merged commit 0d056ea into mileszs:master Sep 29, 2023
@unixmonkey
Copy link
Collaborator

Thanks!

unixmonkey added a commit that referenced this pull request Jan 25, 2024
@unixmonkey
Copy link
Collaborator

This is now released in version 2.8.0 of the Wicked PDF gem. Thank you so much for your help!

Please let me know if you have any issues!

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

Successfully merging this pull request may close these issues.

2 participants