Open 0xErnie opened 2 weeks ago
Keymap names require lowercase characters.
The prompt explicetly asks for my github username, which does contain upercase letters.
This is a relic of sorts from when we allowed user keymaps in the repository. We had a couple instances where a user would have e.g. README.md
and readme.md
in the same directory, which works fine on Linux but can completely break in Git clones on MacOS or Windows. We requested keymap names to match GitHub usernames because it made maintenance easier for us if we had to edit a user's keymap. (Reading a directory name is easier than checking through the Git history.)
We no longer allow user keymaps in the repository, but the checks from that era are still around in places.
The prompt can be found at https://github.com/qmk/qmk_firmware/blob/67d512e639806b24e68cb35170789f614e779638/lib/python/qmk/cli/new/keyboard.py#L151 and https://github.com/qmk/qmk_firmware/blob/67d512e639806b24e68cb35170789f614e779638/lib/python/qmk/cli/new/keymap.py#L30
I would suggest propose it could be better to just ask for a name without those newlines:
{fg_yellow}Name Your Keymap{style_reset_all} (lowercase only): """
return question(prompt)
Just for clarity, we're having an internal discussion as to whether or not we relax the lowercase requirement in userspace repositories -- ultimately the owner of the userspace can make their own decisions. Will keep you posted when a decision is made.
Describe the Bug
Following README.md in qmk_userspace creating of a new keymap in my userspace failed with an arbitrary error.
Keyboard Used
splitkb/aurora/sofle_v2/rev1
Link to product page (if applicable)
No response
Operating System
WSL
qmk doctor Output
Is AutoHotKey / Karabiner installed
Other keyboard-related software installed
No response
Additional Context
No response