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

BUG: collect not working on YAML.load_all #239

Open
schlichtanders opened this issue Jul 23, 2024 · 1 comment
Open

BUG: collect not working on YAML.load_all #239

schlichtanders opened this issue Jul 23, 2024 · 1 comment

Comments

@schlichtanders
Copy link

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

@schlichtanders schlichtanders changed the title collect not working on YAML.load_all BUG: collect not working on YAML.load_all Jul 23, 2024
@kescobo
Copy link
Collaborator

kescobo commented Jul 23, 2024

Somewhat related to #104 and #145, I think @Paalon is planning an overhaul of that part of the API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants