-
Notifications
You must be signed in to change notification settings - Fork 29
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 numbers are reported pre-formatting #241
Comments
I'll take a look at whether it is possible to know the future line number at the time of logging this message. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The line numbers for warnings are reported on the old (pre-formatting) file. That means it is either hard to figure out where the issue is, or I need to run snakefmt again, to get the correct numbers reported in the re-formatted file.
Example:
First time running snakefmt:
which lists line 5 (
input:
) as where the issue is. However, the file was reformatted, and now looks like this:So the reported line should be 7 instead, to match with the new file content. This is reported when running snakefmt again on the file, but that seems cumbersome.
The text was updated successfully, but these errors were encountered: