Skip to content
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

Invalid package.xml suppresses error and silently succeeds if setup.py present #146

Open
emersonknapp opened this issue Sep 12, 2023 · 0 comments

Comments

@emersonknapp
Copy link

emersonknapp commented Sep 12, 2023

If you have a package with both package.xml and setup.py - if the package.xml has invalid syntax, then colcon build silently falls back to a regular python build type, without even printing a warning.

I would expect this to actually fail the build, as it's a pretty serious error condition with confusing side effects. Instead it's only logged as a debug.

# COLCON_LOG_LEVEL=debug colcon build --packages-select mypkg
...
[0.216s] DEBUG:colcon.colcon_core.package_identification:Failed to parse potential ROS package manifest in'src/mypkg': Error(s) in package 'src/mypkg/package.xml':                                                                                     
The manifest contains invalid XML:                                                                                                                                                                                                                            
mismatched tag: line 4, column 12  
...
# echo $?
0
@emersonknapp emersonknapp changed the title Invalid package.xml does not cause build to fail in setup.py package Invalid package.xml swallows error silently succeeds if setup.py present Sep 12, 2023
@emersonknapp emersonknapp changed the title Invalid package.xml swallows error silently succeeds if setup.py present Invalid package.xml suppresses error and silently succeeds if setup.py present Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant