microsoft / hidtools

Human Interface Device (HID) Tools for Windows and Devices
MIT License
146 stars 20 forks source link

`usages` crashes Waratah #14

Closed reinderien closed 10 months ago

reinderien commented 10 months ago

This piece of TOML.:

            [[applicationCollection.inputReport.logicalCollection.arrayItem]]
            usages = ['Auxiliary Display', 'Stat Not Ready', 'Stat Ready', 'Err Not a loadable character']

gets past the parser, and then crashes with

Unable to cast object of type 'System.String' to type 'System.Object[]'.

This occurs on Waratah 1.3.0.0. Of course the above syntax is invalid, but ideally a better error message should be generated.

matwilli commented 10 months ago

Great catch! I've fixed this in the most recent PR. A new build will be uploaded soon.