clearpathrobotics / nix-ros-base

43 stars 3 forks source link

Tab complete not working in rolling. #7

Closed rshanor closed 8 months ago

rshanor commented 1 year ago

Hi, and thank you for putting this package together.

I just watched your ROSCon video and decided to try out using ROS2 with Nix. I got as far as launching into a nix shell with nix develop ros#rolling.ros_base.ws. The ros2 CLI seemed to work, but I could not tab complete anything. Any idea how to fix this?

Much appreciated!

mikepurvis commented 1 year ago

Can you try sourcing these files?

source ~/.nix-profile/etc/profile.d/nix.sh
source ~/.nix-profile/share/bash-completion/completions/nix

That may only get you completions for the nix command, I know on the ROS 1 side almost all of the completion stuff comes from rosbash; I assume this was modularized in the ROS 2 world, but I'm not as familiar with it, unfortunately.