-
Notifications
You must be signed in to change notification settings - Fork 28
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
ogma-language-fret-cs
: Improve error message reporting upon requirement parsing errors
#96
Comments
ogma-language-fret-cs
: Error message information is insufficientogma-language-fret-cs
: Improve error message reporting upon requirement parsing errors
Change Manager: Confirmed that the issue exists. |
Technical Lead: Confirmed that the issue should be addressed. |
Technical Lead: Issue scheduled for Ogma 1.0.10. Fix assigned to: @ivanperez-keera. |
Ogma relies on an existing library for error message reporting of JSON files. That library, by default, provides very plain error messages and the line and column number of the error cannot be customized or contextualized. This causes error messages to seem to apply to a line and column in the file, when they really apply to the line and column of a specific requirement (which may be hard to indentify). This commit modifies the JSON parser for component specification files so that, if a parsing error in a temporal logic formula is found, the parser reports the name of the requirement that failed to parse.
The test case tests/fret_good.json contains no value in the CoCoSpec field, which makes the test fail even though that field is not used. This commit modifies the example to have a vacuous value in the CoCoSpec field.
The file ogma-cli/examples/fret.json is used as a test, and contains no value in the CoCoSpec field, which makes the test fail even though that field is not used. This commit modifies the example to have a vacuous value in the CoCoSpec field.
Implementor: Solution implemented, review requested. |
Change Manager: Verified that:
|
Change Manager: Implementation ready to be merged. |
Description
Ogma relies on an existing library for error message reporting of JSON files.
That library, by default, provides very plain error messages and the line and column number of the error cannot be customized or contextualized. This causes error messages to seem to apply to a line and column in the file, when they really apply to the line and column of a specific requirement (which may be hard to indentify).
Type
Additional context
None.
Requester
Method to check presence of bug
Not applicable (new feature).
Expected result
An error in a requirement in a FRET CS file indicates which requirement it applies to.
Desired result
An error in a requirement in a FRET CS file indicates which requirement it applies to.
Proposed solution
Modify parser to produce name of requirement on parsing errors.
Further notes
None.
The text was updated successfully, but these errors were encountered: