-
Notifications
You must be signed in to change notification settings - Fork 511
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
Bug generating RBI for Rails 6.0.3, Ruby 2.7 #2994
Comments
See also:
|
I did a bit of investigating and found that the behavior indeed differs between versions:
Seems to be caused by this line on Ruby 2.7: https://github.com/rails/rails/blob/1b3a0a0388cea93ba33e6a951a3ac0aa2e4a8ed7/activerecord/lib/active_record/relation/delegation.rb#L64 There's no special We could explicitly add a check for EDIT: Apparently the 'hack' is the expected solution 🤷♂️ |
I switched to Tapioca and, with these steps, am successfully using Sorbet with Ruby 2.7. This works because Tapioca generates RBI files with |
I also chose to resolve this by switching to Tapioca. |
Going to close this in favor of Tapioca |
There are generation errors in Ruby 2.7. It seems to happen in the last few days. I found it out via. Sorbet-rails automated tests.
Sample errors: (notice the double ** and double &&)
The text was updated successfully, but these errors were encountered: