-
Notifications
You must be signed in to change notification settings - Fork 46
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
load_all fails on Windows #132
Labels
Comments
2 tasks
At 5bb060a, WIndows (CRLF)
|
From #214. This is really not OS specific but about julia> first(YAML.load_all("---\r\nx:\r\n...\r\n"))
ERROR: AssertionError: forward!(composer.input) isa DocumentStartEvent
Stacktrace:
[1] compose_document(composer::YAML.Composer)
@ YAML ~/git/YAML.jl/src/composer.jl:44
[2] compose(events::YAML.EventStream, resolver::YAML.Resolver)
@ YAML ~/git/YAML.jl/src/composer.jl:33
[3] load(tokenstream::YAML.TokenStream, constructor::YAML.Constructor)
@ YAML ~/git/YAML.jl/src/YAML.jl:69
[4] next(it::YAML.YAMLDocIterator, state::Nothing)
@ YAML ~/git/YAML.jl/src/YAML.jl:112
[5] iterate
@ ~/git/YAML.jl/src/YAML.jl:120 [inlined]
[6] first(itr::YAML.YAMLDocIterator)
@ Base ./abstractarray.jl:472
[7] top-level scope
@ REPL[71]:1 |
kescobo
pushed a commit
that referenced
this issue
Jun 25, 2024
* Add tests for issue 132. * Add `.gitattributes` to prevent uninteded EOL newlines conversion by Git. - Fix EOL for normal test YAML files LF. - With postfix `.crlf.yaml` files are use CRLF. - Change windows_newlines content from `"hello:\r\n\r"` to `"hello:\r\n"`. * Add expected data for tests issue 132. * Fix LF to CRLF.
GunnarFarneback
added a commit
to GunnarFarneback/YAML.jl
that referenced
this issue
Jun 28, 2024
This reverts commit 2daef25.
GunnarFarneback
added a commit
to GunnarFarneback/YAML.jl
that referenced
this issue
Jun 28, 2024
…er files. Revise an in-memory test of JuliaData#132 to actually test windows newlines. Add back revision of windows_newlines.yaml.
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given a YAML file like:
the following code:
results in
This issue only happens on Windows (specifically Windows 11), but works fine on Mac and Linux.
Thanks for any help!
The text was updated successfully, but these errors were encountered: