ion-cli
ion-cli copied to clipboard
Unexpected error when reading a valid Ion file
For no apparent reason, ion CLI can read one of these files (gist), but fails when reading the other. There's not a lot of difference between the two files.
The error is as follows:
Error: invalid Ion syntax encountered
offset=4146
buffer head=<?
// TODO: set_macros can accept...>
buffer tail=<...n accept a module/macro export?
>
buffer len=56
Caused by:
invalid Ion syntax encountered
offset=4146
buffer head=<?
// TODO: set_macros can accept...>
buffer tail=<...n accept a module/macro export?
>
buffer len=56
I was not able to come up with a smaller reproducible example because if I remove any one of the top-level values from the bad_test_case.ion file, the error seems to goes away. In addition, if I add any scalar value or IVM to this line, that also makes the problem go away, but if I add a container value there, it doesn't make the problem go away.
I am using Ion CLI v0.9.1.