Closed Algias closed 2 months ago
I believe the bug is on this line which is present in rolling as of the indicated commit:
Yep, that looks like it is the problem. Thanks for tracking it down. Would you be interested in opening a pull request to fix it? Then we can review it and get it in.
i happened to meet this problem, fix is ready https://github.com/ros2/ros2cli/pull/898
closing in favor of https://github.com/ros2/ros2cli/pull/898, all backports (jazzy, iron and humble) completed as well.
Bug report
Required Info:
Steps to reproduce issue
Similarly
Expected behavior
ActionTypeCompleter
should be a callable that returns a list of actions available from packages if an action name is not passed in.Actual behavior
A traceback occurs indicating the bug
Or in the case it is used in a verb with tab-complete, no items are displayed.
Additional information
I believe the bug is on this line which is present in rolling as of the indicated commit: https://github.com/ros2/ros2cli/blob/ce945cd70d83a9ff41f08594e40ea96a0e6ac308/ros2action/ros2action/api/__init__.py#L78
ServiceTypeCompleter
does not have this issue https://github.com/ros2/ros2cli/blob/ce945cd70d83a9ff41f08594e40ea96a0e6ac308/ros2service/ros2service/api/__init__.py#L95