After installing Keyboard Maestro on a second computer with syncing enabled, I noticed a daily macro was missing information that comes from variables in the output. It turns out that 'Set Variables with Prefix' is behaving strangely.
I have it set variables with a prefix of "JSON" in the action, but it creates variables called "JSON1" instead.
Here is a screenshot of the macro.
I can update the references to the variable, but I am curious why it isn't using the variable name I specified.
For searching the forums, it appears variable aren't synced, so there isn't a change of a collision in namespaces since each system has it's own set of variables.
Still, my best guess for the root cause is that KM thinks the variable name "JSON" is taken and auto increments it to avoid overwriting an existing variable. There isn't a variable by that name. I tried creating the variable "JSON" with a default value to see if KM would use it , but it continues to use "JSON1"
Ideas? As a work around, I'll change variable references to use the new variable name, but I'd like to see if there is a fix for this behavior.
Update: The issue is more complicated, so I'll do more troubleshooting after I get off of work tonight to look at it. It's not just the variable name prefix that is the issue, but it's no longer parsing the JSON correctly and creating JSON* variables like it was before .
Plus changing the variable name from JSON to JSON1 in the set variable macro caused it to create a new JSON11 variable. Anyway, I'll look at this tonight(MT). If you have seen this behavior before, feel free to post ideas on how to fix it.
e.g.