-
Notifications
You must be signed in to change notification settings - Fork 135
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
Incorrect line numbers reported when errors are emitted #77
Comments
I've figured out the cause of the bug. This occurs due to the method
The line |
yash-nisar
added a commit
to yash-nisar/tools-python
that referenced
this issue
Jul 13, 2018
This occurs due to the method `t_text_end` in the file `lexers\tagvalue.py`. The line `t.value.count('\n')` doesn't detect newlines because the earlier line is stripped of whitespaces and newlines. This issue is resolved by first counting the no. of newline chars and then stripping whitespaces and newlines so information is preserved. Signed-off-by: Yash Nisar <yash.nisar@somaiya.edu>
pombredanne
added a commit
that referenced
this issue
Aug 6, 2018
Report correct line no.s while showing errors #77 Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce:
FileCopyrightText: Copyright 2014 Acme Inc
in SPDXSimpleTag.tagexamples
directory.python parse_tv.py '../data/SPDXSimpleTag.tag'
The text was updated successfully, but these errors were encountered: