Skip to content

enhance code generator error reporting #55

@pljakobs

Description

@pljakobs

code generator currently relies on the python traceback to provide insight on failure of compiling the schema.
It would be good to at least see the offending schema line to be able to more easily correct issues.

CFGDB app-config.cfgdb app-data.cfgdb defs.cfgdb
Parsing app-config ...
Parsing app-data ...
Parsing defs ...
Traceback (most recent call last):
  File "/home/pjakobs/devel/esp_rgbww_firmware/Components/ConfigDB/tools/dbgen.py", line 1406, in <module>
    main()
  File "/home/pjakobs/devel/esp_rgbww_firmware/Components/ConfigDB/tools/dbgen.py", line 1395, in main
    parse_database(db)
  File "/home/pjakobs/devel/esp_rgbww_firmware/Components/ConfigDB/tools/dbgen.py", line 679, in parse_database
    parse_properties(root, database.schema['properties'])
                           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
KeyError: 'properties'
make: *** [/home/pjakobs/devel/esp_rgbww_firmware/Components/ConfigDB/component.mk:25: /home/pjakobs/devel/esp_rgbww_firmware/out/ConfigDB/app-config.h] Fehler 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions