Closed VPetukhov closed 1 year ago
It seems something went wrong in the from_dict_generated
function, yeah the generated code is a bit large which is hard to debug but that's also why it's faster... I haven't had the time to dig into this function and locate which is causing this, but I'm expecting to have a rewrite of it to make it faster at some point or just switch to StructTypes
parser.
Let me have a look this weekend and see if I can figure out what's wrong.
Great, thank you! :)
Normal behavior. If I define an
@option
structure that has default values, and then initialize it from aDict
orkwargs
with only some arguments provided, it works fine:Broken behavior. However, if I want to change the type to
Symbol
, the function requires all arguments to be provided:The following code works as expected:
Defining conversion functions like the following doesn't seem to change anything:
Version:
Configurations v0.17.4
,julia v1.8.3
I'd be happy to submit a PR with a fix if you could point me to the place that needs to be changed. I got a bit overwhelmed by the generated code...