question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

id in CommandLineTool causes dot graph to not be printed correctly

See original GitHub issue

cwltool --print-dot workflow.cwl produces an empty output if CommandLineTool has an id field. I was not able to identify a further root cause, but If the id field is removed, than --print-dot works correctly as expected.

Expected Behavior

digraph {compound=true
"workflow_with_id.cwl#my_step" [label="my_step"]
}%

this is the expected graph. This is what gets correctly printed if I remove the id root field from the my_step.cwl file

Actual Behavior

digraph {compound=true
}%

Workflow Code

workflow:

class: Workflow
cwlVersion: v1.0
requirements:
- class: StepInputExpressionRequirement
- class: InlineJavascriptRequirement
- class: MultipleInputFeatureRequirement

inputs:
  foo: string

outputs:
  bar:
    type: string
    outputSource: my_step/bar

steps:
  my_step:
    run: ./my_step.cwl
    in:
      foo:
        source: foo
    out: [bar]

step:

class: CommandLineTool
cwlVersion: v1.0
id: my_step
baseCommand:
  - echo
inputs:
  foo: string
outputs:
  bar:
    type: string

Your Environment

1.0.20190915164430

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mr-ccommented, Sep 3, 2021

@itajaja With more recent versions of cwltool and schema-salad it seems your issue have been fixed!

0reactions
itajajacommented, Oct 15, 2019

Thanks for looking into this 🙏 what if the name is not set though?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Command Line | Graphviz
If no input files are supplied, the program reads from stdin. For example: $ echo 'digraph { a -> b }' | dot...
Read more >
Command-line application to compare graph (DOT/graphviz ...
This application compares two or more graph files (DOT or tabular). It prints a merged graph with different colors for nodes and edges...
Read more >
Graphviz: How to go from .dot to a graph? - Stack Overflow
PostScript output seems always there. I am not sure if dot has PNG output by default. This may depend on how you have...
Read more >
Encapsulating Data - Apple Developer
Figure 3-9 The correct relationship between a table view and its delegate ... application rather than a command line tool, you won't usually ......
Read more >
NET Framework 4 migration issues - Microsoft Learn
NET generates the id attribute for HTML elements. ... mode can cause managed .aspx pages to stop working properly during the child request....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found