mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[BUG]: 0.1.19 ahk generated library requires whkd arg for Stop command #261
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @BlueDrink9 on GitHub (Nov 12, 2023).
Describe the bug
Title should explain enough. Presumably ahk users shouldn't care about whkd.
Introduced by
f4e0fb9To Reproduce
Update komorebi and regenerate ahk lib
Expected behavior
Stop takes no arg (or maybe has an ahk default arg)
@LGUG2Z commented on GitHub (Nov 12, 2023):
The AHK library functions are autogenerated with the
AhkFunctionproc macro from the structs used to define which arguments commands can take.If someone really wants to pick this up (or if they really love writing proc macros), they can add support for AHK optional arguments with defaults in the output generated by derive-ahk. I'm probably not gonna work on this though because this is honestly my least favourite part of the entire codebase/repo.
Given how difficult proc-macros are to work with, I'm also open to accepting "hacks" run on the post-proc-macro output (ie. immediately before the bytes are written) that can add defaults in this and other cases where it is appropriate.
@LGUG2Z commented on GitHub (Nov 13, 2023):
Figured it was best to do the hackery myself ;) This should be fixed now on
master@BlueDrink9 commented on GitHub (Nov 14, 2023):
While I'm here, was the 0.19 komorebic exe in the releases compiled at optimised level? I'm having massive performance issues with it. Using a terminal to send the commands, it takes almost a second to respond and change focus. If I replace it with the 0.18 exe I have no issues.
@nascentt commented on GitHub (Nov 18, 2023):
You might want to split off a separate issue for thay