-
-
Notifications
You must be signed in to change notification settings - Fork 925
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
Line number is incorrect for interpolation inside heredoc #7272
Comments
method_missing is issuing this but the #{name} processing must not be emitting a linenum instr. I think. Also affects 9.4.x |
Still valid in both 9.3 and 9.4 HEAD, but won't be fixed for 9.3.11. |
@judofyr Dunno if you are still out there, but this would be a great addition to ruby/spec. Could you write up a quick PR? Moving to 9.5 since this probably will get fixed in the move to Prism. |
This is currently failing in JRuby (see jruby/jruby#7272).
Like this ruby/spec#1135? |
While writing the test I also discovered that it only happens if you have the |
Great! I will comment there with some small suggestions.
Ah interesting. So it is wiping out the line numbers in the heredoc when it has other code following the opening tag. Perhaps that will help @enebo to fix this. Thank you! |
Script:
Environment Information
Expected Behavior
The error is reported at line 5:
Actual Behavior
The error is reported where the heredoc starts:
The text was updated successfully, but these errors were encountered: