Skip to content

Fix some errors in the xml_parser script#174

Merged
dellaert merged 1 commit intoborglab:masterfrom
yambati03:fix-xml-parser
Apr 16, 2025
Merged

Fix some errors in the xml_parser script#174
dellaert merged 1 commit intoborglab:masterfrom
yambati03:fix-xml-parser

Conversation

@yambati03
Copy link
Copy Markdown
Contributor

@yambati03 yambati03 commented Apr 16, 2025

During work to integrate docstring generation into our cibuildwheel workflow, we found some issues with the xml_parser.py script that results in errors being thrown if a specific interface does not have any associated Doxygen comments. When this is true, the member_defs variable will be an empty list, and indexing into it throws an out-of-bounds error. This is fixed with a simple ternary check. We also found an error with the concatenation of a PosixPath type with a string. This is fixed using Python format strings.

@p-zach please sanity check these fixes! Also tagging @dellaert for visibility.

@dellaert dellaert merged commit d0f775b into borglab:master Apr 16, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants