You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would think the spec is wrong here; I don't think that that shell command with just its internal indentation can work. You might want to indent inside the heredoc, but if Bash doesn't make allowances for it, and Python doesn't let you indent the entire script, I don't know why it makes sense for the WDL interpreter to provide special logic to give you this feature.
The spec seems to want runners to support stripping whitespace from overindented python code blocks:
https://github.com/openwdl/wdl/blob/9c0b9cf4586508a9e6260cc5c5e562e21f625aac/SPEC.md?plain=1#L3590-L3624
The current issue is the amount of whitespace to remove is done at the first seen line:
toil/src/toil/wdl/wdltoil.py
Line 241 in 4cb5bb3
In the spec example's case, it finds 2 spaces at
python <<CODE
but needs to remove 4 atwith open("~{infile}") as fp:
┆Issue is synchronized with this Jira Story
┆Issue Number: TOIL-1596
The text was updated successfully, but these errors were encountered: