Skip to content

Womtool Fails to Validate WDL 1.1/1.2 but Succeeds with version development on Ubuntu #7777

@LuckaHel

Description

@LuckaHel

Bug: womtool fails to validate WDL files with version 1.1 or 1.2

I am encountering a consistent and reproducible issue where womtool fails to validate WDL files when the version is declared as 1.1 or 1.2. The error occurs immediately after the version declaration:

ERROR: Finished parsing without consuming all tokens.

version 1.2 
^

However, the exact same WDL file validates successfully if the version is declared as development. This behavior persists across different Womtool JAR versions and even when attempting validation via Docker.

Environment

  • Operating System: Ubuntu 24.10 (Oracular Orca)
  • Java Version: openjdk 17.0.15 2025-04-15
  • Womtool JARs tested: womtool-87.jar, womtool-90.jar
  • Womtool Docker Image tested: broadinstitute/womtool:87
  • Locale: LANG=en_US.UTF-8
  • Other troubleshooting:
    • Eliminated hidden characters/encoding issues by generating the WDL file using echo directly in the shell.
    • Reinstalled Java, Cromwell, Womtool, and Docker.
    • Issue is reproducible across multiple scripts.

Example WDL Script

version development

workflow minimal_test {
  input {
    String? optional_var = None
  }
}

Observed Behavior

  • version 1.0: Fails as expected due to None not being recognized.
  • version 1.1 or 1.2: Fails with the following error:
    Finished parsing without consuming all tokens.
    
    version 1.1 
    ^
    
  • version development: Validation succeeds .

Command Used

java -jar ~/tools/womtool-90.jar validate test.wdl

Let me know if additional details or reproduction steps are needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions