Skip to content

fix SyntaxWarning: invalid escape sequence '\+' (issue #107)#112

Open
frederic-mahe wants to merge 2 commits intodevfrom
tmp_issue_107
Open

fix SyntaxWarning: invalid escape sequence '\+' (issue #107)#112
frederic-mahe wants to merge 2 commits intodevfrom
tmp_issue_107

Conversation

@frederic-mahe
Copy link
Copy Markdown
Collaborator

  • eliminates warnings,
  • captured patterns should be the same (longest string without a space before the end of the line),
  • effect on output files is UNTESTED!

@frederic-mahe frederic-mahe linked an issue Nov 16, 2024 that may be closed by this pull request
@ImagoXV
Copy link
Copy Markdown
Owner

ImagoXV commented Dec 6, 2024

Thank you @frederic-mahe
It stopped triggering the warning. It does not seem to impact results as no error is triggered.
However, I feel like something is weird with correction.
Vscode does not properly recognize the syntax :

image

Any thoughts about this ?

@frederic-mahe
Copy link
Copy Markdown
Collaborator Author

I've seen similar issues when writing nextflow code. Including complex bash code in shell blocks, especially regular expressions, seems to create parsing issues. Maybe the best course of actions is to put complex bash code in bash scripts rather than in shell blocks?

@ImagoXV
Copy link
Copy Markdown
Owner

ImagoXV commented Dec 9, 2024

That could fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

warnings with nanoasv --dry-run

2 participants