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
@erfanshekarriz Just a comment... I just encounter this bug as well on version 7.32.4 (the current version for Ubuntu 24.10). I noticed the warning goes away when double backslashes are used. i.e., \\d+.
I'm not sure if it is a bug or maybe we need to just escape backslashes from now on.
Snakemake Version: 8.25.5
When running snakemake I get the following
SyntaxWarning: invalid escape sequence
warning:In my
.smk
file's shell directive I'm using "\s" and "\d" regex characters, so I know this is where the warning comes from:Rule 1
Rule 2
But, when I run with the
-p
flag, it prints my commands fine and it also runs fine, so I don't want to change my code:Rule 1
Rule 2
I've double-checked and the shell command works as it should. It likely has to do with the way Snakemake parsers the shell command.
I was not experiencing this with the older version of Snakemake 7.28.1, just popped up as I updated it!
Is there a good way to bypass or suppress the warning?
Best,
Erfan
The text was updated successfully, but these errors were encountered: