Update womtool graph command to support WDL 1.0
See original GitHub issueNow that we’ve updated our WDLs to 1.0, we’ve found that womtool graph
no longer works. It looks like it only supports draft2 and earlier WDL.
test.wdl
:
version 1.0
workflow Test { }
$ java -jar womtool-35.jar graph /tmp/test.wdl
Exception in thread "main" wdl.draft2.parser.WdlParser$SyntaxError: ERROR: Finished parsing without consuming all tokens.
version 1.0
^
at wdl.draft2.parser.WdlParser.parse(WdlParser.java:2330)
at wdl.draft2.parser.WdlParser.parse(WdlParser.java:2335)
at wdl.draft2.model.AstTools$.getAst(AstTools.scala:266)
at wdl.draft2.model.WdlNamespace$.$anonfun$load$1(WdlNamespace.scala:160)
at scala.util.Try$.apply(Try.scala:209)
at wdl.draft2.model.WdlNamespace$.load(WdlNamespace.scala:160)
at wdl.draft2.model.WdlNamespace$.loadUsingSource(WdlNamespace.scala:156)
at wdl.draft2.model.WdlNamespaceWithWorkflow$.load(WdlNamespace.scala:571)
at womtool.graph.GraphPrint$.generateWorkflowDigraph(GraphPrint.scala:19)
at womtool.WomtoolMain$.graph(WomtoolMain.scala:94)
at womtool.WomtoolMain$.dispatchCommand(WomtoolMain.scala:48)
at womtool.WomtoolMain$.runWomtool(WomtoolMain.scala:125)
at womtool.WomtoolMain$.delayedEndpoint$womtool$WomtoolMain$1(WomtoolMain.scala:130)
at womtool.WomtoolMain$delayedInit$body.apply(WomtoolMain.scala:18)
at scala.Function0.apply$mcV$sp(Function0.scala:34)
at scala.Function0.apply$mcV$sp$(Function0.scala:34)
at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
at scala.App.$anonfun$main$1$adapted(App.scala:76)
at scala.collection.immutable.List.foreach(List.scala:389)
at scala.App.main(App.scala:76)
at scala.App.main$(App.scala:74)
at womtool.WomtoolMain$.main(WomtoolMain.scala:18)
at womtool.WomtoolMain.main(WomtoolMain.scala)
The womgraph
command still works, but the output from that command is so verbose it’s unusable for viewing our workflows.
Issue Analytics
- State:
- Created 5 years ago
- Comments:16 (9 by maintainers)
Top Results From Across the Web
WOMtool - Cromwell - Read the Docs
Command line utilities for interacting with the Workflow Object Model (WOM). You can download the latest WOMtool from the Cromwell releases page on...
Read more >Learning WDL - Dave Tang's blog
WOMtool has a validate subcommand that performs full validation of the WDL file including syntax and semantic checking.
Read more >Bring WDL apps to the Platform - Seven Bridges
Once executed successfully, this command will convert the WDL app for use on the Platform and push it to the Platform project specified...
Read more >(howto) Install software for WDL workshops - Terra Support
The womtool toolkit is a utility package that provides accessory functionality for writing and running WDL scripts, including syntax validation and input ...
Read more >Design considerations for workflow management systems use ...
We chose WfMSs (Table 1) that support the widely adopted Global Alliance for ... For WDL, besides the de facto womtool utility and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Would that be possible to increase the priority of this issue? Would be really nice to easily generate the workflow graph for discussion and presentation purpose. Thanks!
We also need this feature, any news fot this ? (it’s been a year 😄 )