You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import yaml/[parser, stream], streams
procmain() =var s =newFileStream("bug.yml")
var p =newYamlParser()
var ev = p.parse(s)
try:
for x in ev:
echo x.kind
exceptYamlStreamErroras err:
echo err.msg
main()
and this is the result:
...
[NimYAML] Error in file C:\Users\Jangko\.nimble\pkgs\yaml-0.9.1\yaml\parser.nim at line 845:
assertion failed!
[NimYAML] Stacktrace:
Traceback (most recent call last)
test.nim(14) test
test.nim(10) main
stream.nim(208) finished
internal.nim(26) stateFlow
[NimYAML] Please report this bug.
Is this really a bug?, I think I just put something wrong in the yaml script. Perhaps an alternate error message is better.
Btw, your yaml library is awesome
The text was updated successfully, but these errors were encountered:
Well this is invalid YAML, but the parser does not properly handle it, therefore it is indeed a bug. It should not run into a failed assertion, but raise a proper parser error instead.
this is the yaml script
this is the Nim code
and this is the result:
Is this really a bug?, I think I just put something wrong in the yaml script. Perhaps an alternate error message is better.
Btw, your yaml library is awesome
The text was updated successfully, but these errors were encountered: