-
Notifications
You must be signed in to change notification settings - Fork 188
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
TypeError: no case for org.truffleruby.core.cast.ToFNodeGen org.truffleruby.core.numeric.RubyBignum #2184
Comments
Full log (GitHub Actions logs disappear after some time):
|
Looks like we need negated guards for
There is already a specialization handling RubyBignum but it isn't taken (because the Object specialization was activated first).
Also @bjfish Could you do that? |
I am looking at the test case in my codebase. I do have a conditional guard on certain values, noting: Depending on platform and implementation details, it seems "legitimate" that certain Bignum's cannot be represented accurately by a float. It's possible this failure has to do with Github's platform moreso than TruffleRuby itself. I'm trying to put together a testcase that doesn't depend on my codebase. Specifically:
Notice I skip the |
@rickhull This case is a clear bug, at least in the LogNode, there is already handling for RubyBignum due to some missing check in the generic case. This is enough to reproduce the bug: |
Glad I could help! |
Here is the full error text:
TypeError: TruffleRuby doesn't have a case for the org.truffleruby.core.cast.ToFNodeGen node with values of type org.truffleruby.core.numeric.RubyBignum
I encountered this error as part of a testing matrix for my GitHub Action CI on a project of mine. This failure occurs for truffleruby and truffleruby-head but not for jruby or any MRI I tested. Here is the CI ouput: https://github.com/rickhull/compsci/runs/1520388175?check_suite_focus=true#logs
The text was updated successfully, but these errors were encountered: