Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TOML to LabVIEW fails for table array when default values are injected #2

Open
justiceb opened this issue Dec 22, 2019 · 0 comments
Open

Comments

@justiceb
Copy link

The following TOML string fails in the step for TOML to LabVIEW:

MyTableArray=[
{value=1, string="hello" },
{ string="hello" },
]

Where value = i32.
More specifically, the Read TOML step parses all decimal numerics as I64. As a result of this action, the non-declared "value" in the 2nd line uses a default I64 value of 0. But the first line yields a I32 value. This upsets LabVIEW's attempt to unflatten the variant structure to a typedef.

The solution was pretty simple - add cases to LV_to_TOML to unflatten each numeric to its datatype explicitely

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant