flyx / NimYAML

YAML implementation for Nim
https://nimyaml.org
Other
191 stars 36 forks source link

Parsing large files creates odd results. #50

Closed treeform closed 6 years ago

treeform commented 6 years ago

Please download this file: https://github.com/ua-parser/uap-core/blob/master/tests/test_device.yaml

And run this program: https://gist.github.com/treeform/c140984cf3e69e7c8ed8e76feba5c004

It reads the file twice and compares the results. They are not equal and assert is triggered. They should be equal its the same file.

Its random what will happen but once you compile a program same random thing will happen in the binary. Compiling without changes produces the same binary. Compiling with changes causes it to crash some place else. Some times no issues happens it it runs fine.

So far I have seen:

treeform commented 6 years ago

I have updated to new nim:

Nim Compiler Version 0.17.3 [MacOSX: amd64]
Copyright (c) 2006-2017 by Andreas Rumpf

git hash: 8fbe37b2d813f00ca934cee2fe17bc2e24f82f88
active boot switches: -d:release

And also pulled from github directly. I don't see the issue at the moment. Maybe some thing old was bad.

treeform commented 6 years ago

I think its was a nim problem and has been fixed. I will reopen if I see it again.