Skip to content

SyntaxError is occurred on JRuby and TruffleRuby #4

Open
@mrkn

Description

@mrkn

https://github.com/red-data-tools/red-palette/runs/398432298#step:6:26

SyntaxError: /home/runner/.rubies/jruby-9.2.9.0/lib/ruby/gems/shared/gems/red-colors-0.1.1/lib/colors/convert.rb:56: Rational (1745329251994329577/1E+20) out of range.
    DEG2RAD = 0.01745329251994329577r  # 2 * pi / 360
                                    ^
           require at org/jruby/RubyKernel.java:978
  require_relative at org/jruby/RubyKernel.java:1006
            <main> at /home/runner/.rubies/jruby-9.2.9.0/lib/ruby/gems/shared/gems/red-colors-0.1.1/lib/colors.rb:2
           require at org/jruby/RubyKernel.java:978
            <main> at /home/runner/work/red-palette/red-palette/lib/palette.rb:1
           require at org/jruby/RubyKernel.java:978
            <main> at /home/runner/work/red-palette/red-palette/test/helper.rb:2
           require at org/jruby/RubyKernel.java:978
  require_relative at org/jruby/RubyKernel.java:1006
            <main> at test/run.rb:15

https://github.com/red-data-tools/red-palette/runs/398432310#step:6:26

/home/runner/.rubies/truffleruby-19.3.1/lib/gems/gems/red-colors-0.1.1/lib/colors.rb:2:in `require_relative': /home/runner/.rubies/truffleruby-19.3.1/lib/gems/gems/red-colors-0.1.1/lib/colors/convert.rb:56: Rational (1745329251994329577/1E+20) out of range. (SyntaxError)
	from /home/runner/.rubies/truffleruby-19.3.1/lib/gems/gems/red-colors-0.1.1/lib/colors.rb:2:in `<top (required)>'
	from /home/runner/work/red-palette/red-palette/lib/palette.rb:1:in `require'
	from /home/runner/work/red-palette/red-palette/lib/palette.rb:1:in `<top (required)>'
	from /home/runner/work/red-palette/red-palette/test/helper.rb:2:in `require'
	from /home/runner/work/red-palette/red-palette/test/helper.rb:2:in `<top (required)>'
	from test/run.rb:15:in `require_relative'
	from test/run.rb:15:in `<main>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions