We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Error:
fatal.nim(48) sysFatal Error: unhandled exception: sons is not accessible [FieldError]
Example code:
type Config = object templatePath: Option[string] var configList: seq[Config] let fileStream = newFileStream(filename) load(fileStream, configList) fileStream.close()
The text was updated successfully, but these errors were encountered:
This happens because Option is not supported by NimYAML. It would need two functions in yaml/serialization.nim:
Option
yaml/serialization.nim
proc constructObject*[T](s: var YamlStream, c: ConstructionContext, result: var Option[T])
and
proc representObject*[T](value: Option[T], ts: TagStyle, c: SerializationContext, tag: TagId)
I am not actively maintaining NimYAML, but a PR would be welcome.
Sorry, something went wrong.
1dfc2a3
It was a bit trickier than I expected; works as of v0.13.0 which I just released.
No branches or pull requests
Error:
Example code:
The text was updated successfully, but these errors were encountered: