-
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
Report an error when an UNKNOWN_TAG
is found
#55
Comments
A better way to reproduce the bug would be:
the parsing should emit an error, but it continues to parse without raising any error. |
yash-nisar
added a commit
to yash-nisar/tools-python
that referenced
this issue
Apr 27, 2018
The cause of the error was the method `p_unknown_tag` in `parsers/tagvalue.py`. Due to the incorrect context-free grammar specification defined in the method, the line after the `unknown_tag` was not taken into consideration. The context-free grammar specification was rectified and tests were corresponding tests were added. Signed-off-by: Yash Nisar <yash.nisar@somaiya.edu>
yash-nisar
added a commit
to yash-nisar/tools-python
that referenced
this issue
Apr 27, 2018
The cause of the error was the method `p_unknown_tag` in `parsers/tagvalue.py`. Due to the incorrect context-free grammar specification defined in the method, the line after the `unknown_tag` was not taken into consideration. The context-free grammar specification was rectified and tests were corresponding tests were added. Signed-off-by: Yash Nisar <yash.nisar@somaiya.edu>
yash-nisar
added a commit
to yash-nisar/tools-python
that referenced
this issue
Apr 27, 2018
The cause of the error was the method `p_unknown_tag` in `parsers/tagvalue.py`. Due to the incorrect context-free grammar specification defined in the method, the line after the `unknown_tag` was not taken into consideration. The context-free grammar specification was rectified and tests were corresponding tests were added. Signed-off-by: Yash Nisar <yash.nisar@somaiya.edu>
yash-nisar
added a commit
to yash-nisar/tools-python
that referenced
this issue
Apr 27, 2018
The cause of the error was the method `p_unknown_tag` in `parsers/tagvalue.py`. Due to the incorrect context-free grammar specification defined in the method, the line after the `unknown_tag` was not taken into consideration. The context-free grammar specification was rectified and tests were corresponding tests were added. Signed-off-by: Yash Nisar <yash.nisar@somaiya.edu>
yash-nisar
added a commit
to yash-nisar/tools-python
that referenced
this issue
Apr 27, 2018
The cause of the error was the method `p_unknown_tag` in `parsers/tagvalue.py`. Due to the incorrect context-free grammar specification defined in the method, the line after the `unknown_tag` was not taken into consideration. The context-free grammar specification was rectified and tests were corresponding tests were added. Signed-off-by: Yash Nisar <yash.nisar@somaiya.edu>
yash-nisar
added a commit
to yash-nisar/tools-python
that referenced
this issue
Apr 28, 2018
The cause of the error was the method `p_unknown_tag` in `parsers/tagvalue.py`. Due to the incorrect context-free grammar specification defined in the method, the line after the `unknown_tag` was not taken into consideration. The context-free grammar specification was rectified and tests were corresponding tests were added. Signed-off-by: Yash Nisar <yash.nisar@somaiya.edu>
yash-nisar
added a commit
to yash-nisar/tools-python
that referenced
this issue
May 7, 2018
The cause of the error was the method `p_unknown_tag` in `parsers/tagvalue.py`. Due to the incorrect context-free grammar specification defined in the method, the line after the `unknown_tag` was not taken into consideration. The context-free grammar specification was rectified and tests were corresponding tests were added. Signed-off-by: Yash Nisar <yash.nisar@somaiya.edu>
yash-nisar
added a commit
to yash-nisar/tools-python
that referenced
this issue
Aug 6, 2018
The cause of the error was the method `p_unknown_tag` in `parsers/tagvalue.py`. Due to the incorrect context-free grammar specification defined in the method, the line after the `unknown_tag` was not taken into consideration. The context-free grammar specification was rectified and tests were corresponding tests were added. Signed-off-by: Yash Nisar <yash.nisar@somaiya.edu>
pombredanne
added a commit
that referenced
this issue
Aug 6, 2018
Report an error when `UNKNOWN_TAG` is found #55 Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
This issue is solved and can be closed. @nicoweidner |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce:
SPDXVersion: SPDX-1.2
toSPDXVersio: SPDX-1.2
, the tool should report an error likeFound unknown tag : SPDXVersio at line: 2
but instead it continues to parse.The tokenizing works fine, the problem is with the parsing method.
The text was updated successfully, but these errors were encountered: