Skip to content

Error is formatted incorrectly when 0-width characters are in use. #572

Open
@NorfairKing

Description

@NorfairKing

I know this is nitpicky but I felt it important to point out in case this is supposed to be supported.

Here is an example error:

Failed to parse message:
1:1:
  |
1 | <empty line>
  | ^
<pure>:1:64:
  |
1 | 34=149=XXXX_XXX_XXXX52=20240930-15:03:41.83656=XXXXX.TEST57=XXXXX.XXX298=0108=3010=198
  |                                                                ^
Unknown field tag: 57

As you can see, the ^ is pointing at the wrong character.
I think this is because there are invisible (0-width) \SOH characters inbetween fields.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions