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

failed when convert into json empty (non existing) {{ input_content }} #624

Open
davidB opened this issue Mar 15, 2023 · 1 comment
Open
Labels
bug Something isn't working

Comments

@davidB
Copy link
Member

davidB commented Mar 15, 2023

with ffizer 2.8.0

  2023-03-15T15:16:33.572127Z ERROR ffizer: failed: Handlebars {
    when: "render template into buffer",
    template: "/Users/.../megalinter/.mega-linter.ffizer.hbs.yml",
    source: RenderError {
        desc: "serde_yaml::from_str",
        template_name: Some(
            "/Users/..../megalinter/.mega-linter.ffizer.hbs.yml",
        ),
        line_no: Some(
            4,
        ),
        column_no: Some(
            1,
        ),
        cause: Some(
            Error("EOF while parsing a value"),
        ),
        unimplemented: false,
    },
}

can be reproduced with

{{#to_json format="yaml"}}
{{ input_content }}
{{/to_json}}

or simply

{{#to_json format="yaml"}}

{{/to_json}}
@davidB davidB added the bug Something isn't working label Mar 15, 2023
@davidB
Copy link
Member Author

davidB commented Mar 15, 2023

workaround ?

{{#to_json format="yaml"}}
---
{{ input_content }}
{{/to_json}}

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