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
When you only use a custom action in another custom action, it won't get marked as used, even if the custom action that used it is used. Such a Shortcut will compile, but the custom action won't be included, leaving the custom action that uses it to call it in vain.
I expected the action to be marked as used and included in the compiled Shortcut. Instead, its invocation is included, but the action isn't.
Screenshots
Pictured: test2 is the only function included in the compiled Shortcut.
Version Information:
Linux version): Linux cs-171148009998-default 6.1.77+ #1 SMP PREEMPT_DYNAMIC Sat May 4 16:42:09 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Golang version: go version go1.22.3 linux/amd64
Additional context
The checkCustomActionUsage function used to determine whether custom actions are included in the compiled Shortcut or not checks if any actions are used in contents, but by this point, contents has already been razed of custom actions, which means that uses in the bodies of custom actions aren't counted.
I made a fix for this that I'll be getting up later today! It's of dubious quality, though.
The text was updated successfully, but these errors were encountered:
Describe the bug
When you only use a custom action in another custom action, it won't get marked as used, even if the custom action that used it is used. Such a Shortcut will compile, but the custom action won't be included, leaving the custom action that uses it to call it in vain.
To Reproduce
Debug output
Expected behavior
I expected the action to be marked as used and included in the compiled Shortcut. Instead, its invocation is included, but the action isn't.
Screenshots
Pictured:
test2
is the only function included in the compiled Shortcut.Version Information:
Linux cs-171148009998-default 6.1.77+ #1 SMP PREEMPT_DYNAMIC Sat May 4 16:42:09 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
go version go1.22.3 linux/amd64
Additional context
The
checkCustomActionUsage
function used to determine whether custom actions are included in the compiled Shortcut or not checks if any actions are used incontents
, but by this point,contents
has already been razed of custom actions, which means that uses in the bodies of custom actions aren't counted.I made a fix for this that I'll be getting up later today! It's of dubious quality, though.
The text was updated successfully, but these errors were encountered: