Skip to content

flow.yaml validation errors output wrong line/column numbers #683

Open
@jshearer

Description

@jshearer

As I was following the docs on creating a derivation, I made an invalid flow.yaml file. The error tells me

Error: errors while loading catalog sources
Caused by:
    missing field `key` at line 1 column 541

My file’s first line certainly doesn’t have 541 characters in it. @psFried's comment on this is:

I think that might be caused by how we load resources. We first parse them into a generic serde_yaml::Value, and then transcode that into a serde_json::RawValue, and then we deserialize the rust type from that. So makes sense how the original location information would get lost

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions