You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from ros2action.api import ActionTypeCompleter
completer = ActionTypeCompleter()
completer("", None)
Similarly
from ros2action.api import action_type_completer
action_type_completer()
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
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/ros/humble/lib/python3.10/site-packages/ros2action/api/__init__.py", line 92, in __call__
return action_type_completer()
File "/opt/ros/humble/lib/python3.10/site-packages/ros2action/api/__init__.py", line 78, in action_type_completer
for package_name, action_names in get_action_interfaces.items():
AttributeError: 'function' object has no attribute 'items'
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:
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.
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:
ros2cli/ros2action/ros2action/api/__init__.py
Line 78 in ce945cd
ServiceTypeCompleter
does not have this issueros2cli/ros2service/ros2service/api/__init__.py
Line 95 in ce945cd
The text was updated successfully, but these errors were encountered: