snakefmt icon indicating copy to clipboard operation
snakefmt copied to clipboard

Double Line Comment in Run Directive leads to `InvalidPython`

Open gordonkoehn opened this issue 2 years ago • 1 comments

It appears two single-line comments at the start of the run directive lead to a parsing error Invalid Python in the line following after.

The rule runs fine. The error message disappears when any of the two comment lines are deleted.

The error message is very odd as it doesn't even show a line number and file. Yet, I am sure the error originates here.

My Rule

My Rule

The error message

The Error

gordonkoehn avatar Jul 20 '23 07:07 gordonkoehn

Yes you're probably correct with the source of the error. This response https://github.com/snakemake/snakefmt/issues/197#issuecomment-1647105838 also applies here.

mbhall88 avatar Jul 24 '23 02:07 mbhall88