Ruby: Re-enable Sorbet check#465
Conversation
|
Oh exciting! I missed that Sorbet added support for RBS type aliases! |
4893e3d to
485aaca
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.
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.
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
3913b5d to
105b482
Compare
marcoroth
left a comment
There was a problem hiding this comment.
@mickeytgl I was able to rebase it and resolve the last few issues, thank you!
|
Nice! Sorry I ended up forgetting about this one |

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