Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Counter-intuitive error message when parsing an empty file #681

Open
GlassOfWhiskey opened this issue Feb 28, 2023 · 1 comment
Open

Counter-intuitive error message when parsing an empty file #681

GlassOfWhiskey opened this issue Feb 28, 2023 · 1 comment

Comments

@GlassOfWhiskey
Copy link
Contributor

If Schema SALAD resolve_ref method is used to parse an empty file, the returned error message is counter-intuitive.

@mr-c
Copy link
Member

mr-c commented Feb 28, 2023

novice-tutorial-exercises$ touch workflow_input_3.yml
novice-tutorial-exercises$ cwltool rna_seq_workflow_2.cwl workflow_input_3.yml
INFO /home/michael/cwltool/env3.11/bin/cwltool 3.1
INFO Resolved 'rna_seq_workflow_2.cwl' to 'file:///home/michael/src/2022-12-06-clum-cwl-tutorial/novice-tutorial-exercises/rna_seq_workflow_2.cwl'
ERROR I'm sorry, I couldn't load this CWL file, try again with --debug for more information.
The error was: 

(that's the error, nothing!)

novice-tutorial-exercises$ cwltool --debug rna_seq_workflow_2.cwl workflow_input_3.yml
INFO /home/michael/cwltool/env3.11/bin/cwltool 3.1
INFO Resolved 'rna_seq_workflow_2.cwl' to 'file:///home/michael/src/2022-12-06-clum-cwl-tutorial/novice-tutorial-exercises/rna_seq_workflow_2.cwl'
ERROR I'm sorry, I couldn't load this CWL file.
The error was: 
Traceback (most recent call last):
  File "/home/michael/cwltool/cwltool/main.py", line 1066, in main
    job_order_object, input_basedir, jobloader = load_job_order(
                                                 ^^^^^^^^^^^^^^^
  File "/home/michael/cwltool/cwltool/main.py", line 368, in load_job_order
    job_order_object, _ = loader.resolve_ref(
                          ^^^^^^^^^^^^^^^^^^^
  File "schema_salad/ref_resolver.py", line 531, in resolve_ref
  File "schema_salad/ref_resolver.py", line 993, in fetch
StopIteration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants