Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.6.0
Description
When scanning for a separator and encountering an out-of-scope separator/terminator, the diagnostic message is really poor.
It says what it found, that it was out-of-scope, but doesn't focus you on where it was within the scope, by giving an element name, or line number in the schema.
If you have a required element that is missing, so that the parser can't find that element's separator and instead finds the enclosing separator/terminator, the diagnostic message needs to include the required element that it did not find a separator before, or the prior element it did not find the separator after. One of the two. Or at least needs to point you at the sequence the two elements are found in. But since that sequence could be spread over many lines, it really does need to identify in terms of the term decl before and after where the separator was not found.