fix: Fix potential NME when converting ParameterType to envelope#1789
Conversation
|
@luke-hill relatively straight-forward fix, although I'm not super pleased with the rspec test due to the method of interest being private. I don't think this warrants an update to any of the features since it's an admittedly weird way to declare a |
luke-hill
left a comment
There was a problem hiding this comment.
Not sure I agree on no source location being provided when a bound method. because it still exists there.
But I've not dug into it in more detail
Also we need to keep the contract up. I might ask how the other flavours deal with it
|
FYI I just encountered this at my job today. We used a lambda autofix from rubocop |
|
Few style tweaks but other than that this is good to merge soon @mitchgrout |
|
Note to self. Rebase with main (Should fix CCK issues), fix up CR style items and merge in |
|
Hi @mitchgrout are you around and able to fix this? If not I'll try pick it up this month |
|
Hi @mitchgrout can you rebase this and fix up the review points. It will make v11 (Which should be out in a month or less hopefully, if I can get the last bits of fixes for CCK in) |
7e305fa to
6cc7723
Compare
6cc7723 to
38af403
Compare
|
@mitchgrout thanks for this. Looks pretty good. Next steps is you'll need to wait a short time (Probably a few days), until I merge a big PR into At which point you'll need to rebase. And then CI should be fully green. NB: At this point you'll need a fully green build - alongside rubocop compliance |
|
@mitchgrout this is provisionally good. Can you rebase / merge with latest main. At which point a CI run should be fully green. Thankyou for your patience. I will endeavour to get this released soon in cucumber v11 |
|
No problem - sorry for the delay on my side. I'm overseas for the next 2 days, so will update after then. |
38af403 to
9856dcd
Compare
|
Rebased and checked locally (Win10 setup w/ Ruby 3.2.2) - some seemingly expected failures in unrelated specs, but nothing that seems related to this change. |
luke-hill
left a comment
There was a problem hiding this comment.
Thankyou for your patience. This will be released as part of v11 (Coming soon)
Description
Sets
source_referencetonilif the parameter type transformer does not provide a valid source location, i.e. isnil.Fixes #1788
Type of change
Bug fix (non-breaking change which fixes an issue)
Checklist:
Your PR is ready for review once the following checklist is
complete. You can also add some checks if you want to.
bundle exec rubocopreports no offenses