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

Unexpected error when reading a valid Ion file #182

Open
popematt opened this issue Nov 21, 2024 · 0 comments
Open

Unexpected error when reading a valid Ion file #182

popematt opened this issue Nov 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@popematt
Copy link
Contributor

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.

@popematt popematt added the bug Something isn't working label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant