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

Updated the path of the argcomplete hooks #103

Closed
wants to merge 1 commit into from

Conversation

LastStarDust
Copy link

This is the environment where I confirmed the paths:

  • Official ROS2 Jazzy image
  • python3-colcon-argcomplete 0.3.3+ds-2

This is the environment where I confirmed the paths:
- Official ROS2 Jazzy image
- python3-colcon-argcomplete 0.3.3+ds-2
@cottsay
Copy link
Member

cottsay commented Nov 20, 2024

This is the environment where I confirmed the paths:

  • Official ROS2 Jazzy image
  • python3-colcon-argcomplete 0.3.3+ds-2

These paths are correct ONLY for this configuration. Other versions of Ubuntu and the package supplied by the colcon PackageCloud use the paths listed in the documentation.

Related discussion: colcon/colcon-argcomplete#43

EDIT: Never mind, colcon-cd and colcon-argcomplete are completely different packages. The argcomplete hooks provided by colcon_cd are only for colcon_cd, and colcon-argcomplete provides completion for the colcon CLI.

If you install both colcon-argcomplete and colcon-cd, you should source both hooks.

@cottsay cottsay closed this Nov 20, 2024
@LastStarDust
Copy link
Author

LastStarDust commented Nov 20, 2024

Thank for the feedback. I jumped to the wrong conclusion that colcon-argcomplete had been renamed into colcon-cd.

@LastStarDust LastStarDust deleted the patch-1 branch November 25, 2024 01:55
@LastStarDust
Copy link
Author

LastStarDust commented Nov 25, 2024

EDIT: Please feel free to ignore this as I have just found out about this other thread where the cause is being discussed.
colcon/colcon-argcomplete#43

@cottsay
Sorry to reopen this but I still cannot find the colcon-argcomplete.bash script inside a vanilla ROS2 Jazzy Docker image.

$ find / -name "*argcomplete*bash"
/opt/ros/jazzy/share/ros2cli/environment/ros2-argcomplete.bash
/opt/ros/jazzy/share/rosidl_cli/environment/rosidl-argcomplete.bash
/opt/ros/jazzy/share/ament_index_python/environment/ament_index-argcomplete.bash
/usr/share/colcon_cd/function/colcon_cd-argcomplete.bash
$ dpkg -l | grep colcon
ii  python3-colcon-argcomplete                       0.3.3+ds-2                           all          Extension for colcon to provide command line completion
ii  python3-colcon-bash                              0.5.0-1                              all          Extension for colcon to provide Bash scripts.
ii  python3-colcon-cd                                0.2.1-1                              all          A shell function for colcon to change the current working di
ii  python3-colcon-cmake                             0.2.28-1                             all          Extension for colcon to support CMake packages.
ii  python3-colcon-common-extensions                 0.3.0-1                              all          Meta package aggregating colcon-core and common extensions.
ii  python3-colcon-core                              0.18.3-1                             all          Command line tool to build sets of software packages.
ii  python3-colcon-defaults                          0.2.8-1                              all          Extension for colcon to read defaults from a config file.
ii  python3-colcon-devtools                          0.3.0-1                              all          Extension for colcon to provide information about all extens
ii  python3-colcon-installed-package-information     0.2.1-1                              all          Extensions for colcon to inspect packages which have already
ii  python3-colcon-library-path                      0.2.1-2                              all          Extension for colcon to find shared libraries
ii  python3-colcon-metadata                          0.2.5-3                              all          Extension for colcon to fetch and manage package metadata
ii  python3-colcon-mixin                             0.2.3-1                              all          Extension for colcon to read CLI mixins from files.
ii  python3-colcon-notification                      0.3.0-1                              all          Extension for colcon to provide status notifications.
ii  python3-colcon-output                            0.2.13-1                             all          Extension for colcon to customize the output in various ways
ii  python3-colcon-override-check                    0.0.1-1                              all          Extension for colcon to check for potential problems when ov
ii  python3-colcon-package-information               0.4.0-1                              all          Extension for colcon to output package information.
ii  python3-colcon-package-selection                 0.2.10-2                             all          Extension for colcon to select the packages to process.
ii  python3-colcon-parallel-executor                 0.3.0-1                              all          Extension for colcon to process packages in parallel.
ii  python3-colcon-pkg-config                        0.1.0-2                              all          Extension for colcon to find pkg-config files
ii  python3-colcon-powershell                        0.4.0-1                              all          Extension for colcon to provide PowerShell scripts.
ii  python3-colcon-python-setup-py                   0.2.9-1                              all          Extension for colcon to support Python packages with the met
ii  python3-colcon-recursive-crawl                   0.2.3-1                              all          Extension for colcon to recursively crawl for packages.
ii  python3-colcon-ros                               0.5.0-1                              all          Extension for colcon to support ROS packages.
ii  python3-colcon-test-result                       0.3.8-2                              all          Extension for colcon to provide information about test results
ii  python3-colcon-zsh                               0.5.0-1                              all          Extension for colcon to provide Z shell scripts.
$ complete -p
complete -o bashdefault -o default -o nospace -F _python_argcomplete colcon_cd
complete -o bashdefault -o default -o nospace -F _python_argcomplete ros2
complete -o bashdefault -o default -o nospace -F _python_argcomplete rosidl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants