Closed mloughran closed 3 months ago
Thanks for the report :smile:
This is caused by a breaking change on Ripper. Ripper produces nil
for just yield
on Ruby 3.3.0.
$ ruby -v
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux]
$ ruby -rripper -e "p Ripper.sexp('yield')"
[:program, [[:yield0]]]
$ ruby -v
ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [x86_64-linux]
$ ruby -rripper -e "p Ripper.sexp('yield')"
nil
We may have to wait for Ruby itself to be fixed :thinking:
Thanks for investigating and identifying the issue.
Is it worth raising an issue on the ruby tracker (I can't see anything related)? I suspect you're better placed to do so than me. 😄
I've opened: https://bugs.ruby-lang.org/issues/20186
Formatting any ERB file containing
<%= yield %>
(as is customary in a template) returns an error on ruby3.3.0
:but worked fine on ruby
3.2.2
: