Describe the Bug
When you generate a keymap.json file from your keymap.c file with the qmk c2json command and you upload this keymap to the config.qmk.fm configurator the layer key references are lost.
This happens when you are using a enum for layers.
E.g.
enum layers {
QWERTY = 0,
COLMAK
}
...
[QWERTY] = LAYOUT(
DF(COLMAK), ...
)
...
[COLMAK] = LAYOUT(
DF(QWERTY), ...
)
This results in an keymap which look like this:
...
"layers": [
[ DF(COLMAK), ... ],
[ DF(QWERTY), ... ]
]
...
Because the Enum layer names are not converted to its indices and the layer names are not exported the reference will be lost.
I created an issue and a pull request within the qmk_firmware, but right now nobody cares.
Maybe someone of you have the same problem?
Here is the issue: Issue
Here is the PR: PR
Additional Context?
No response