You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Loudly deprecate variables used as embedded arguments not matching custom patterns #4524
If you have a keyword accepting embedded arguments with a custom pattern like
Perform ${arg:[^ ]+}
Log To Console ${arg}
and use it with a variable like
Perform ${variable}
Robot will call the keyword regardless the variable value. This means that the keyword may be called with a value that doesn't match the explicit custom pattern. That's not great and needs to be changed.
We initially planned to change this already in RF 6.0 (#4069), but it turned out that the change would cause too much backwards compatibility problems and the change was reverted. The main reason for backwards compatibility problems was that custom patterns were often used to resolve conflicts with various keyword implementations matching a keyword usage. Conflict resolution was enhanced heavily in RF 6.0 (#4454), so it is now safer to require patters to match also when using variables as embedded arguments. The change is still backwards incompatible and cannot really be done in RF 6.1, but we can now deprecate it loudly. The actual change can then be finally done in RF 7.0.
This loud deprecation wasn't done in RF 6.1 and there never was RF 6.2. In RF 7 we now need to decide should we do deprecation or should we directly change the behavior (#4069). I'll now initially leave both of these to RF 7 scope, but we either need to move the other issue to RF 8 or just close this issue.
changed the title [-]Loundly deprecate variables used as embedded arguments not matching custom patterns[/-][+]Loudly deprecate variables used as embedded arguments not matching custom patterns[/+]on Sep 13, 2023
Activity
pekkaklarck commentedon Oct 31, 2022
This behavior was "silently" deprecated already in RF 6.0. See #4462 for more info and examples.
pekkaklarck commentedon Aug 25, 2023
This loud deprecation wasn't done in RF 6.1 and there never was RF 6.2. In RF 7 we now need to decide should we do deprecation or should we directly change the behavior (#4069). I'll now initially leave both of these to RF 7 scope, but we either need to move the other issue to RF 8 or just close this issue.
pekkaklarck commentedon Aug 28, 2023
We decided to took the safe root and only do deprecation (i.e. this issue) in RF 7. The behavior will be changed (#4069) in RF 8.
[-]Loundly deprecate variables used as embedded arguments not matching custom patterns[/-][+]Loudly deprecate variables used as embedded arguments not matching custom patterns[/+]