common-workflow-language/cwltool

Running cwltool with empty inputs_object fails without a meaningful error message

WhiteGobo opened this issue · 0 comments

Expected Behavior

When running cwltool any.cwl input.yaml and input.yaml is an empty file i expect a succesful run or a meaningful error message like

ERROR empty input

Actual Behavior

cwltool responds as rude as i have given him inputs, with an empty error message:

INFO /home/hfechner/.local/bin/cwltool 3.1.20240508115724
INFO Resolved 'test.cwl' to 'file://workdir/test.cwl'
ERROR I'm sorry, I couldn't load this CWL file, try again with --debug for more information.
The error was:

Full Traceback

  File "/home/hfechner/.local/lib/python3.12/site-packages/cwltool/main.py", line 1083, in main
    job_order_object, input_basedir, jobloader = load_job_order(
                                                 ^^^^^^^^^^^^^^^
  File "/home/hfechner/.local/lib/python3.12/site-packages/cwltool/main.py", line 383, in load_job_order
    job_order_object, _ = loader.resolve_ref(
                          ^^^^^^^^^^^^^^^^^^^
  File "schema_salad/ref_resolver.py", line 536, in resolve_ref
  File "schema_salad/ref_resolver.py", line 1013, in fetch

Your Environment

/home/hfechner/.local/bin/cwltool 3.1.20240508115724