-
Notifications
You must be signed in to change notification settings - Fork 634
Closed
1 / 11 of 1 issue completed
Copy link
Labels
bugSomething isn't workingSomething isn't working
Description
Snakemake version
7.7.0
Describe the bug
When using rule inheritance as described here, docstring-style comments are not supported. They are supported in rules generally, but here result in an uninformative error (see also #1596).
Minimal example
(taken from #1596)
rule copyfile:
input: "src1.txt"
output: "src1_cp.txt"
shell: "cp -v {input} {output}"
use rule copyfile as copyfile2 with:
"""lorem ipsum
dolor sit amet
"""
input: "src2.txt"
output: "src2_cp.txt"
snakemake fails to parse this rule with the following error:
SyntaxError in line 5 of example.smk:
Expecting a keyword or comment inside a 'use rule ... with:' statement. (example.smk, line 5)
File "./workflow/Snakefile", line 10, in <module>
Additional context
Removing
"""lorem ipsum
dolor sit amet
"""
fixes the issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working