-
Notifications
You must be signed in to change notification settings - Fork 89
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
Add Group & Wrapper source XML line in errors #2404
Conversation
- Added SourceContext to know where Groups/Wrappers has been declared - Added a test for the node & attribute line infos
…y/2320-xml-errors-feedback" - using getSourceContext() instead of getPath()
…ack-3' into feature/rey/error-xml-line-2-errors-impacting
- also renaming FileContext to DataFileContext
- code refactoring + doc edit
(used string_view to support raw string loading)
…S-DEV/GEOS into feature/rey/error-xml-line-2
Do you think we've addressed all the comments and that this should be merged? |
@TotoGaz Can you have a look on this one? #2404 (comment) (I can keep my initial proposal but I don't know if you are ok with it). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be ready to get in.
@klevzoff if you want to check that the fixes you pointed are really fixed, you're welcome!
@MelReyCG I've put the PR in the merge queue. |
This PR aims to:
Group
&Wrapper
in order to know from where they have been declared. When possible, this will allow to know in which source file and where exactly they have been defined (file line, offset), if not it will fallback to the Group hierarchy.This metadata will allow us to formulate error messages that can be clearer and faster to solve for users ( issue [EPIC] Improve feedback to user on XML errors #2320 ).
This PR propose to put this metadata in a
SourceContext
abstract object, so if theGroups
&Wrappers
are loaded differently, we will be able to change the attached information.To impact the modifications on most GEOS files, 4 PR have been created to process multiple batches of files separately :
I planned to add another PR where I'll propose to properly wrap the following
xmlWrapper
types:xmlNode
,xmlAttribute
, xmlType