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
This is a seperate issue to the one I previously raised (#756), but it also concerns the handling of list default/initial values.
When paths are selected MultiFileChooser and MultiDirChooser, the selected paths are separated using the OS path separator in the input box. This concatenated string is split by formatter.multiFileChooser before being passed back to the client program, so the client program receives a list of paths. If a list of paths is used as a default value/initial value for the field, then I'd expect the inverse transformation to be applied: the paths should be joined by the OS path separator.
At the moment, argparse_to_json.textinput_with_nargs_and_list_default only handles vanilla text inputs, and so the default list of paths is shown as a list in the input box. If the value isn't changed, it is passed back to the program as a singleton list with the only element being a stringified list of paths.
A minimal code example -- preferably copy/pastable in the issue itself (less time figuring out how to run your code == more time debugging!)
This is a seperate issue to the one I previously raised (#756), but it also concerns the handling of list default/initial values.
When paths are selected MultiFileChooser and MultiDirChooser, the selected paths are separated using the OS path separator in the input box. This concatenated string is split by formatter.multiFileChooser before being passed back to the client program, so the client program receives a list of paths. If a list of paths is used as a default value/initial value for the field, then I'd expect the inverse transformation to be applied: the paths should be joined by the OS path separator.
At the moment, argparse_to_json.textinput_with_nargs_and_list_default only handles vanilla text inputs, and so the default list of paths is shown as a list in the input box. If the value isn't changed, it is passed back to the program as a singleton list with the only element being a stringified list of paths.
The text was updated successfully, but these errors were encountered: