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
do not produce valid shortcuts when the magnitude is a variable.
To Reproduce
@d=date("October 5, 2022")@a=2addDays(d,a)
Debug output The compilation is successful, but below is a screenshot of the Shortcut.
Expected behavior
Screenshots See above.
Version Information (please complete the following information):
macOS version (run uname -a): Darwin Michaels-MacBook-Air.local 23.2.0 Darwin Kernel Version 23.2.0: Fri Oct 13 09:28:08 PDT 2023; root:xnu-10002.60.54~14/RELEASE_ARM64_T8112 arm64
Golang version (run go version): go version go1.21.4 darwin/arm64
Additional context
N/A
The text was updated successfully, but these errors were encountered:
@electrikmilk, if you could give me a few pointers for some of these past issues, I might be able to help.
Sure, I will do my best. A lot of these issues boil down to variations in data structure for these different actions. They require a custom structure for the value of one of their parameters. Thus they require adding a custom solution to fit their data structure and insert a variable or an inline variable value into their parameters within a make function defined on the action definition.
For example with this issue, these date actions have their make function called adjustDate() which creates them based on the structure for this type of action. In this case, this has a custom structure for the magnitude value that has a custom serialization type to specify (which most action parameters do not need to specify) and a unit value that needs to be in the same data as the magnitude value, this is not standard for the rest of the actions in the compiler.
For more insight on this fix, check out 04a4e8a, which fixes this issue.
Describe the bug
Add to date:
&
Subtract from date:
do not produce valid shortcuts when the magnitude is a variable.
To Reproduce
Debug output
The compilation is successful, but below is a screenshot of the Shortcut.
Expected behavior
Screenshots
See above.
Version Information (please complete the following information):
uname -a
): Darwin Michaels-MacBook-Air.local 23.2.0 Darwin Kernel Version 23.2.0: Fri Oct 13 09:28:08 PDT 2023; root:xnu-10002.60.54~14/RELEASE_ARM64_T8112 arm64go version
): go version go1.21.4 darwin/arm64Additional context
N/A
The text was updated successfully, but these errors were encountered: