-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[parsing] Stop using mutable globals #16791
[parsing] Stop using mutable globals #16791
Conversation
+@rpoyner-tri for feature review, please. |
4caff44
to
f0fe21a
Compare
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.
Reviewed 5 of 5 files at r1, all commit messages.
Reviewable status: LGTM missing from assignee sherm1(platform) (waiting on @sherm1)
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.
Reviewable status: 1 unresolved discussion, LGTM missing from assignee sherm1(platform) (waiting on @jwnimmer-tri and @sherm1)
tools/workspace/sdformat/patches/no_global_config.patch, line 3 at r1 (raw file):
Change the global singleton into a bomb. Use the default config when parsing the built-in root.sdf.
Working
I should tune up this comment slightly, before we merge this PR.
Suggestion:
Use the default config when parsing the built-in root.sdf, and in
the ign_sdf command-line tool.
f0fe21a
to
8a3f931
Compare
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.
Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: LGTM missing from assignee sherm1(platform) (waiting on @sherm1)
8a3f931
to
9da5f8c
Compare
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.
Reviewed 1 of 5 files at r1, 1 of 1 files at r2, 3 of 3 files at r3, all commit messages.
Reviewable status: complete! all discussions resolved, LGTM from assignees rpoyner-tri(platform),sherm1(platform) (waiting on @jwnimmer-tri)
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.
Reviewed all commit messages.
Reviewable status: complete! all discussions resolved, LGTM from assignees rpoyner-tri(platform),sherm1(platform) (waiting on @jwnimmer-tri)
Copied from patch in RobotLocomotion/drake#16791 by jwnimmer-tri. Signed-off-by: Steve Peters <[email protected]>
* Fix a lack of ParserConfig propagation. Copied from patch in RobotLocomotion/drake#16791 by jwnimmer-tri. * Pass ParserConfig to parser helper functions Require ParserConfig argument in parser.cc's private helper functions: initDoc, initXml, and _initFile. Signed-off-by: Steve Peters <[email protected]>
This ensures that our parsing configuration is always what we asked for.
Towards #16784.
A related issue has been filed upstream as gazebosim/sdformat#881.
This change is