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

sprintf error #2451

Closed
petenorth opened this issue Sep 28, 2021 · 3 comments
Closed

sprintf error #2451

petenorth opened this issue Sep 28, 2021 · 3 comments
Assignees
Labels
Milestone

Comments

@petenorth
Copy link

petenorth commented Sep 28, 2021

truffleruby 21.3.0-dev-5e49a731, like ruby 2.7.4, GraalVM CE Native [x86_64-linux]

Started seeing this

     TypeError:
       TruffleRuby doesn't have a case for the org.truffleruby.core.format.write.bytes.WritePaddedBytesNodeGen node with values of type java.lang.Integer=8 java.lang.Integer=-1 [B
       	from org.truffleruby.core.format.write.bytes.WritePaddedBytesNodeGen.executeAndSpecialize(WritePaddedBytesNodeGen.java:90)
       	from org.truffleruby.core.format.write.bytes.WritePaddedBytesNodeGen.execute(WritePaddedBytesNodeGen.java:56)
       	from org.truffleruby.core.format.control.SequenceNode.execute(SequenceNode.java:29)
       	from org.truffleruby.core.format.FormatRootNode.execute(FormatRootNode.java:60)
       	from org.graalvm.compiler.truffle.runtime.OptimizedCallTarget.executeRootNode(OptimizedCallTarget.java:650)
     # <internal:core> core/string.rb:1436:in `sprintf'
     # <internal:core> core/string.rb:1436:in `%'

https://github.com/petenorth/schools-experience/runs/3729226773?check_suite_focus=true

From https://github.com/petenorth/schools-experience/blob/58a3e32fb82a69fdcbd6954e4a42da4c322fe9c0/app/services/bookings/gitis/event_logger.rb#L26

@gogainda
Copy link
Contributor

gogainda commented Sep 28, 2021

related to #2436 Example from this issue fails with the same error

@eregon
Copy link
Member

eregon commented Sep 28, 2021

@aardvark179 Could you take a look?

@eregon eregon added the bug label Sep 28, 2021
@petenorth
Copy link
Author

This seems to have been fixed in

truffleruby 22.0.0-dev-641865bc, like ruby 2.7.4, GraalVM CE Native [x86_64-linux]

@eregon eregon added this to the 22.0.0 milestone Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants