Skip to content

BUG: collect not working on YAML.load_all #239

@schlichtanders

Description

@schlichtanders

Hi there, it would be great if one could get all yamls from the iterator load_all

julia> import YAML

julia> s = """
       a: 2
       ---
       b: hello
       """
"a: 2\n---\nb: hello\n"

julia> collect(YAML.load_all(s))
ERROR: MethodError: no method matching length(::YAML.YAMLDocIterator)

using Julia 1.10.4 and YAML 0.4.11

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions