colcon / colcon-argcomplete

Completion for colcon command lines using argcomplete
http://colcon.readthedocs.io
Apache License 2.0
2 stars 3 forks source link

Missing install files for Ubuntu Noble? #43

Open ruffsl opened 5 months ago

ruffsl commented 5 months ago

Looks like the hooks for colcon-argcomplete are missing with the debians that ship for Ubuntu Noble.

Expected:

docker run -it --rm ros:iron bash
apt update && apt install -y \
   python3-colcon-argcomplete
find / -name colcon-argcomplete.bash
ls /usr/share/colcon_argcomplete/hook
/usr/share/colcon_argcomplete/hook/colcon-argcomplete.bash
colcon-argcomplete.bash  colcon-argcomplete.zsh

Result

docker run -it --rm ros:jazzy bash
apt update && apt install -y \
   python3-colcon-argcomplete
find / -name colcon-argcomplete.bash
ls /usr/share/colcon_argcomplete/hook

ls: cannot access '/usr/share/colcon_argcomplete/hook': No such file or directory

@cottsay @nuclearsandwich

ruffsl commented 5 months ago

Oddly enough, it looks like function for colcon-cd are still in the right place for jazzy:

$ ls /usr/share/colcon_cd/function
colcon_cd-argcomplete.bash  colcon_cd-argcomplete.zsh  colcon_cd.sh
tonynajjar commented 4 months ago

I independently confirm this observation

adivardi commented 3 months ago

I also have this issue. Any idea on what's the cause and possible fixes?

AngeLoGa commented 2 weeks ago

This is still an issue right? Is there any way of installing colcon-argcomplete in Ubuntu Noble?

cottsay commented 2 weeks ago

Debian/Ubuntu have decided to package colcon in their repositories. For better or worse, they made different decisions regarding where to place files on disk. Unfortunately, their deb packages sometimes take precedence over the deb packages we've produced on Package Cloud and distributed in the ROS repositories.

This is an artifact of those decisions. The installation and usage instructions reflect the packages we produced and have distributed, and unfortunately the "upstream" Debian/Ubuntu packages work differently.

$ apt list python3-colcon-argcomplete -a
Listing... Done
python3-colcon-argcomplete/noble,now 0.3.3+ds-2 all [installed,automatic]
python3-colcon-argcomplete/noble,noble 0.3.3-1 all

The first one is part of Ubuntu Noble, the second one has been in the colcon Package Cloud and ROS repositories for a long time. If you "downgrade" to our package, the file will appear as it always has in previous Ubuntu releases.

AngeLoGa commented 2 weeks ago

I see, my apologies, I failed searching the package correctly and that is why I thought it wasn't installed when in reality it was due to versions. Downgraded and indeed colcon_cd is where expected.

ruffsl commented 2 weeks ago

If you "downgrade" to our package, the file will appear as it always has in previous Ubuntu releases.

@cottsay , Isn't there an apt config to prioritize apt installing from various repositories?

Should we update the ROS install instructions to bolster the default preference prototype for ROS's apt source list?