Error deserializing smtk::task::Group
I don't think that children of group tasks are being deserialized. To reproduce:
- Start modelbuilder
- Load the
smtkWindTunnelPlugin
- Load the
windtunnel-task-v0.1
project with this modified project.smtk file. - In the console, look for the error message "ERROR: In /home/local/KHQ/john.tourtellott/projects/cmb-master/git/smtk/smtk/task/json/jsonManager.cxx, line 125: Could not deserialize: [json.exception.type_error.304] cannot use at() with array." (line number is different because I have some printf statements.)
Some details:
- The underlying cause arises in
smtk::task::Group::configure()
. Line 70 ofGroup.cxx
callssmtk::task::from_json()
passing in the "children" of the group'sConfiguration
object. The "children" instance is a json array object and thesmtk::task::from_json()
is expecting a json object to be passed in. - I'm not sure what the corrected logic should be. Maybe pass in the the
Configuration
object (is it a json object?) and rename "children" ==> "tasks"???