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
$ cwltool --debug --validate ./workflow.cwl
INFO /home/user/Documents/checkouts/cwltool/venv/bin/cwltool 3.1.20230630061538
INFO Resolved './workflow.cwl' to 'file:///home/user/test-folder/workflow.cwl'
ERROR I'm sorry, I couldn't load this CWL file.
The error was:
Traceback (most recent call last):
File "/home/user/Documents/checkouts/cwltool/cwltool/main.py", line 1119, in main
tool = make_tool(uri, loadingContext)
File "/home/user/Documents/checkouts/cwltool/cwltool/load_tool.py", line 588, in make_tool
tool = loadingContext.construct_tool_object(processobj, loadingContext)
File "/home/user/Documents/checkouts/cwltool/cwltool/workflow.py", line 55, in default_make_toolreturn Workflow(toolpath_object, loadingContext)
File "/home/user/Documents/checkouts/cwltool/cwltool/workflow.py", line 137, in __init__
static_checker(
File "/home/user/Documents/checkouts/cwltool/cwltool/checker.py", line 211, in static_checker
sinksf =sorted(
File "/home/user/Documents/checkouts/cwltool/cwltool/checker.py", line 212, in <genexpr>
p["pattern"] for p in sink.get("secondaryFiles", []) if p.get("required", True)
AttributeError: 'str' object has no attribute 'get'
The code that checks whether secondaryFiles are compatible warns even if the src and sink are the same, but one represented as an array, and one as a single value in secondaryFiles
The code that reports this doesn't account for the fact that secondaryFiles properties may be an array or a single element
The text was updated successfully, but these errors were encountered:
Expected Behavior
No error should be thrown
Actual Behavior
An error is thrown
Workflow Code
workflow.cwl
tool.cwl
Full Traceback
Your Environment
Check using
cwltool --version
(this is using the latest commit in main)
I think the cause of this is two-fold:
secondaryFiles
secondaryFiles
properties may be an array or a single elementThe text was updated successfully, but these errors were encountered: