New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Line number of error is incorrect #1256
Labels
bug
Something isn't working
Comments
This also exists in Snakemake 6.12.1 |
I think it's been fixed in v6.12.3 (thanks!) - please correct me if I'm wrong... |
kelly-sovacool
added a commit
to SchlossLab/mikropml-snakemake-workflow
that referenced
this issue
Jan 5, 2023
to prevent snakemake/snakemake#1256
This error persists in version 8.0.1. |
dariober
added a commit
to dariober/snakemake
that referenced
this issue
Jan 5, 2024
The test Snakefile has a syntax error on line 9. Some versions of Snakemake, including 8.0.1, incorrectly report the error on line 20
2 tasks
johanneskoester
pushed a commit
that referenced
this issue
Jan 8, 2024
### Description Add test for issues #1256 and #2574. The test Snakefile has a syntax error on line 9. Some versions of Snakemake, including 8.0.1, incorrectly report the error on line 20. I'm only submitting the test case, not the fix. ### QC * [x] The PR contains a test case for the changes or the changes are already covered by an existing test case. * [x] The documentation (`docs/`) is updated to reflect the changes or this is not necessary (e.g. if the change does neither modify the language nor the behavior or functionalities of Snakemake).
johanneskoester
added a commit
that referenced
this issue
Jan 8, 2024
### Description fix: #2583, #1256 and #2574 ### QC maybe #2583 * [ ] The PR contains a test case for the changes or the changes are already covered by an existing test case. * [ ] The documentation (`docs/`) is updated to reflect the changes or this is not necessary (e.g. if the change does neither modify the language nor the behavior or functionalities of Snakemake). --------- Co-authored-by: Johannes Köster <johannes.koester@tu-dortmund.de>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Snakemake version: 6.10.0 installed via bioconda/mamba
Describe the bug
When a snakefile contains a syntax error or some other bug, snakemake reports the wrong line number of the error. More specifically, it seems to me that:
This is quite a problem since it makes it difficult to locate bugs!
Minimal example
Here the syntax error is on line 9:
Snakemake 6.10.0 reports the error on line 18:
Snakemake 5.4.3 is correct:
The text was updated successfully, but these errors were encountered: