-
Notifications
You must be signed in to change notification settings - Fork 170
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
[ros2interface] shows empty comments even with --no-comments #769
Comments
The bug isn't just for empty comments, but seems to be any comments that are weirdly indented:
|
Yeah. I spent a bit of time looking at this, and the problem is really down in https://github.com/ros2/rosidl/blob/07c292048a5706d165ef4a75c253759d0ce0c308/rosidl_adapter/rosidl_adapter/parser.py#L465 . In particular, the code to show an interface is calling During So there are 2 different things to pursue to fix it:
All of that said, I probably don't have more time to look at this in the near-term, so I'm going to put it with a |
right, currently it cannot tell if |
Bug report
Required Info:
Steps to reproduce issue
Actually, the
--no-comments
param is not necessary, because it's the default behavior. Just included here for clarification.Expected behavior
ros2interface should strip all comments:
Actual behavior
ros2interface does not strip empty comment lines (see the two lines starting with
#
). This is because of the empty comment lines intf2_msgs/msg/TFMessage
:Additional information
The text was updated successfully, but these errors were encountered: