-
-
Notifications
You must be signed in to change notification settings - Fork 73
Ruby: Re-enable Sorbet check #465
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
base: main
Are you sure you want to change the base?
Conversation
|
Oh exciting! I missed that Sorbet added support for RBS type aliases! |
4893e3d to
485aaca
Compare
485aaca to
1c2ce8d
Compare
493feaf to
58d10cb
Compare
templates/lib/herb/ast/nodes.rb.erb
Outdated
| output += "│ └── " | ||
| <%- end -%> | ||
| output += <%= field.name %>.tree_inspect(indent).gsub(/^/, " " * (indent + 1)).lstrip.gsub(/^/, "<%= prefix %>").delete_prefix("<%= prefix %>") | ||
| output += <%= field.name %>&.tree_inspect(indent)&.gsub(/^/, " " * (indent + 1))&.lstrip&.gsub(/^/, "<%= prefix %>")&.delete_prefix("<%= prefix %>") || "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if it might be worth to report this on Sorbet
|
Bumping this @marcoroth ⬆️ let me know if this approach makes sense or if there's something I can change |
|
Hey @mickeytgl, is this one ready to go from your side? |
|
Yes, all good. sorbet should now be green. I explicitely didn't add tying on some files (like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @mickeytgl, thanks for working on this! I just got around to review this!
This looks good so far, but I noticed that the *.rbs files are not up-to-date. If you run bundle exec rake rbs_inline it will regenerate the *.rbs files in sig/.
But doing so leads to both failing srb tc and steep check for me locally. Would you mind taking a look? Thank you!
e956677 to
8696681
Compare

Now that Sorbet supports RBS aliases, this PR updates the Gemfile and modifies the files under
/libto fix any type errors raised by SorbetResolves #114