-
Notifications
You must be signed in to change notification settings - Fork 374
Open
Description
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.
- Eliminated hidden characters/encoding issues by generating the WDL file using
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
Labels
No labels