-
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Enter the name of the keyboard: filco87
Enter an ID for the keyboard (filco87):
Select a keyboard type:
shield A PCB which uses a separate controller board
> board A standalone PCB with onboard controller
[↑↓: select] [Enter: confirm] [Esc: cancel]
Select the platform/SoC the keyboard uses:
> nrf52840 Nordic nRF52840 SoC
other Any other platform
[↑↓: select] [Enter: confirm] [Esc: cancel]
Select a keyboard layout:
> unibody A keyboard with a single controller
split A keyboard with separate left/right controllers
[↑↓: select] [Enter: confirm] [Esc: cancel]
╭──────────────────────────────────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ in render_body:24 │
│ │
│ C:\Users\Administrator\pipx\venvs\zmk\lib\site-packages\mako\runtime.py:106 in __getitem__ │
│ │
│ 103 │ │ if key in self._data: ╭────────────────────────── locals ──────────────────────────╮ │
│ 104 │ │ │ return self._data[key] │ key = 'trim' │ │
│ 105 │ │ else: │ self = <mako.runtime.Context object at 0x000001A6AD8BB580> │ │
│ ❱ 106 │ │ │ return builtins.__dict__[key] ╰────────────────────────────────────────────────────────────╯ │
│ 107 │ │
│ 108 │ def _push_writer(self): │
│ 109 │ │ """push a capturing buffer onto this Context and return │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
KeyError: 'trim'
During handling of the above exception, another exception occurred:
╭──────────────────────────────────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ C:\Users\Administrator\pipx\venvs\zmk\lib\site-packages\zmk\commands\keyboard\new.py:208 in keyboard_new │
│ │
│ 205 │ │ ): │
│ 206 │ │ │ raise typer.Exit() from exc │
│ 207 │ │
│ ❱ 208 │ for name, data in get_template_files(template.folder, **template.data): │
│ 209 │ │ file = dest / name │
│ 210 │ │ file.write_bytes(data.encode()) │
│ 211 │
│ │
│ ╭───────────────────────────────────────────────────────────────────────────────── locals ─────────────────────────────────────────────────────────────────────────────────╮ │
│ │ board_root = WindowsPath('H:/zmk-config/boards') │ │
│ │ cfg = <zmk.config.Config object at 0x000001A6AD807940> │ │
│ │ ctx = <click.core.Context object at 0x000001A6AD807EB0> │ │
│ │ data = 'board_runner_args(nrfjprog "--nrf-family=NRF52" "--softreset")\n\ninclude(${ZEPHYR'+97 │ │
│ │ dest = WindowsPath('H:/zmk-config/boards/arm/filco87') │ │
│ │ file = WindowsPath('H:/zmk-config/boards/arm/filco87/board.cmake') │ │
│ │ force = False │ │
│ │ interconnect = None │ │
│ │ interconnect_id = None │ │
│ │ keyboard_id = 'filco87' │ │
│ │ keyboard_layout = <KeyboardLayout.UNIBODY: 'unibody'> │ │
│ │ keyboard_name = 'filco87' │ │
│ │ keyboard_platform = <KeyboardPlatform.NRF52840: 'nrf52840'> │ │
│ │ keyboard_type = <KeyboardType.BOARD: 'board'> │ │
│ │ name = 'board.cmake' │ │
│ │ repo = <zmk.repo.Repo object at 0x000001A6AD82C100> │ │
│ │ short_name = 'filco87' │ │
│ │ template = TemplateData( │ │
│ │ │ folder='board/nrf52840/unibody', │ │
│ │ │ dest='arm/filco87', │ │
│ │ │ data={ │ │
│ │ │ │ 'id': 'filco87', │ │
│ │ │ │ 'name': 'filco87', │ │
│ │ │ │ 'shortname': 'filco87', │ │
│ │ │ │ 'keyboard_type': 'board', │ │
│ │ │ │ 'interconnect': '', │ │
│ │ │ │ 'arch': 'arm', │ │
│ │ │ │ 'gpio': '&gpio0' │ │
│ │ │ } │ │
│ │ ) │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ C:\Users\Administrator\pipx\venvs\zmk\lib\site-packages\zmk\templates\__init__.py:49 in get_template_files │
│ │
│ 46 │ │ │
│ 47 │ │ yield ( │
│ 48 │ │ │ cast(str, file_name.render_unicode(**data)), │
│ ❱ 49 │ │ │ _ensure_trailing_newline(cast(str, template.render_unicode(**data))), │
│ 50 │ │ ) │
│ 51 │
│ 52 │
│ │
│ ╭────────────────────────────────────────────────────────────────────────── locals ───────────────────────────────────────────────────────────────────────────╮ │
│ │ data = {'id': 'filco87', 'name': 'filco87', 'shortname': 'filco87', 'keyboard_type': 'board', 'interconnect': '', 'arch': 'arm', 'gpio': '&gpio0'} │ │
│ │ file = WindowsPath('C:/Users/Administrator/pipx/venvs/zmk/lib/site-packages/zmk/templates/board/nrf52840/unibody/Kconfig') │ │
│ │ file_name = <mako.template.Template object at 0x000001A6AD8B9870> │ │
│ │ folder = 'board/nrf52840/unibody' │ │
│ │ lookup = <mako.lookup.TemplateLookup object at 0x000001A6AD82C370> │ │
│ │ template = <mako.template.Template object at 0x000001A6AD8ACAC0> │ │
│ │ template_name = 'board\\nrf52840\\unibody\\Kconfig' │ │
│ │ template_path = WindowsPath('C:/Users/Administrator/pipx/venvs/zmk/lib/site-packages/zmk/templates/board/nrf52840/unibody') │ │
│ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ C:\Users\Administrator\pipx\venvs\zmk\lib\site-packages\mako\template.py:443 in render_unicode │
│ │
│ 440 │ def render_unicode(self, *args, **data): │
│ 441 │ │ """Render the output of this template as a unicode object.""" │
│ 442 │ │ │
│ ❱ 443 │ │ return runtime._render( │
│ 444 │ │ │ self, self.callable_, args, data, as_unicode=True │
│ 445 │ │ ) │
│ 446 │
│ │
│ ╭────────────────────────────────────────────────────────────────────── locals ──────────────────────────────────────────────────────────────────────╮ │
│ │ args = () │ │
│ │ data = {'id': 'filco87', 'name': 'filco87', 'shortname': 'filco87', 'keyboard_type': 'board', 'interconnect': '', 'arch': 'arm', 'gpio': '&gpio0'} │ │
│ │ self = <mako.template.Template object at 0x000001A6AD8ACAC0> │ │
│ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ C:\Users\Administrator\pipx\venvs\zmk\lib\site-packages\mako\runtime.py:874 in _render │
│ │
│ 871 │ context._outputting_as_unicode = as_unicode │
│ 872 │ context._set_with_template(template) │
│ 873 │ │
│ ❱ 874 │ _render_context( │
│ 875 │ │ template, │
│ 876 │ │ callable_, │
│ 877 │ │ context, │
│ │
│ ╭───────────────────────────────────────────────────────────────────────── locals ─────────────────────────────────────────────────────────────────────────╮ │
│ │ args = () │ │
│ │ as_unicode = True │ │
│ │ buf = <mako.util.FastEncodingBuffer object at 0x000001A6AD8BA770> │ │
│ │ context = <mako.runtime.Context object at 0x000001A6AD8B92A0> │ │
│ │ data = {'id': 'filco87', 'name': 'filco87', 'shortname': 'filco87', 'keyboard_type': 'board', 'interconnect': '', 'arch': 'arm', 'gpio': '&gpio0'} │ │
│ │ template = <mako.template.Template object at 0x000001A6AD8ACAC0> │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ C:\Users\Administrator\pipx\venvs\zmk\lib\site-packages\mako\runtime.py:916 in _render_context │
│ │
│ 913 │ if not isinstance(tmpl, template.DefTemplate): │
│ 914 │ │ # if main render method, call from the base of the inheritance stack │
│ 915 │ │ (inherit, lclcontext) = _populate_self_namespace(context, tmpl) │
│ ❱ 916 │ │ _exec_template(inherit, lclcontext, args=args, kwargs=kwargs) │
│ 917 │ else: │
│ 918 │ │ # otherwise, call the actual rendering method specified │
│ 919 │ │ (inherit, lclcontext) = _populate_self_namespace(context, tmpl.parent) │
│ │
│ ╭───────────────────────────────────────────────────────────────────────── locals ─────────────────────────────────────────────────────────────────────────╮ │
│ │ args = () │ │
│ │ context = <mako.runtime.Context object at 0x000001A6AD8B92A0> │ │
│ │ kwargs = {'id': 'filco87', 'name': 'filco87', 'shortname': 'filco87', 'keyboard_type': 'board', 'interconnect': '', 'arch': 'arm', 'gpio': '&gpio0'} │ │
│ │ lclcontext = <mako.runtime.Context object at 0x000001A6AD8BB580> │ │
│ │ template = <module 'mako.template' from 'C:\\Users\\Administrator\\pipx\\venvs\\zmk\\lib\\site-packages\\mako\\template.py'> │ │
│ │ tmpl = <mako.template.Template object at 0x000001A6AD8ACAC0> │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ C:\Users\Administrator\pipx\venvs\zmk\lib\site-packages\mako\runtime.py:943 in _exec_template │
│ │
│ 940 │ │ │ e = sys.exc_info()[0] │
│ 941 │ │ │ _render_error(template, context, e) │
│ 942 │ else: │
│ ❱ 943 │ │ callable_(context, *args, **kwargs) │
│ 944 │
│ 945 │
│ 946 def _render_error(template, context, error): │
│ │
│ ╭──────────────────────────────────────────────────────────────────────── locals ────────────────────────────────────────────────────────────────────────╮ │
│ │ args = () │ │
│ │ context = <mako.runtime.Context object at 0x000001A6AD8BB580> │ │
│ │ kwargs = {'id': 'filco87', 'name': 'filco87', 'shortname': 'filco87', 'keyboard_type': 'board', 'interconnect': '', 'arch': 'arm', 'gpio': '&gpio0'} │ │
│ │ template = <mako.template.Template object at 0x000001A6AD8ACAC0> │ │
│ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ in render_body:26 │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
NameError: 'trim' is not defined```
Metadata
Metadata
Assignees
Labels
No labels