Giter Club home page Giter Club logo

colcon-cd's Introduction

colcon-common-extensions

A meta package aggregating colcon-core as well as a set of common extensions.

colcon-cd's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

colcon-cd's Issues

Does not run after install

After installing colcon-common-extensions, and verifying that python3-colcon-cd was installed, I cannot invoke the command.

allenh1@hunter-laptop:~$ dpkg -l | grep colcon-cd
ii  python3-colcon-cd                                     0.1.1-1                                          all          A shell function for colcon to change the current working di
allenh1@hunter-laptop:~$ colcon_cd
colcon_cd: command not found
allenh1@hunter-laptop:~$ colcon --help
usage: /usr/bin/colcon [-h] [--log-base LOG_BASE] [--log-level LOG_LEVEL]
                       {build,extension-points,extensions,graph,info,list,metadata,test,test-result,version-check}
                       ...

optional arguments:
  -h, --help            show this help message and exit
  --log-base LOG_BASE   The base path for all log directories (default: ./log,
                        to disable: /dev/null)
  --log-level LOG_LEVEL
                        Set log level for the console output, either by
                        numeric or string value (default: warning)

colcon verbs:
  build                 Build a set of packages
  extension-points      List extension points
  extensions            List extensions
  graph                 Generate a visual representation of the dependency graph
  info                  Package information
  list                  List packages, optionally in topological ordering
  metadata              Manage metadata of packages
  test                  Test a set of packages
  test-result           Show the test results generated when testing a set of
                        packages
  version-check         Compare local package versions with PyPI

  {build,extension-points,extensions,graph,info,list,metadata,test,test-result,version-check}
                        call `colcon VERB -h` for specific help

Environment variables:
  CMAKE_COMMAND         The full path to the CMake executable
  COLCON_ALL_SHELLS     Flag to enable all shell extensions
  COLCON_COMPLETION_LOGFILE
                        Set the logfile for completion time
  COLCON_DEFAULTS_FILE  Set path to the yaml file containing the default values
                        for the command line arguments (default:
                        $COLCON_HOME/defaults.yaml)
  COLCON_DEFAULT_EXECUTOR
                        Select the default executor extension
  COLCON_EXTENSION_BLACKLIST
                        Blacklist extensions which should not be used
  COLCON_HOME           Set the configuration directory (default: ~/.colcon)
  COLCON_LOG_LEVEL      Set the log level (debug|10, info|20, warn|30,
                        error|40, critical|50, or any other positive numeric
                        value)
  COLCON_WARNINGS       Set the warnings filter similar to PYTHONWARNINGS
                        except that the module entry is implicitly set to
                        'colcon.*'
  CTEST_COMMAND         The full path to the CTest executable
  POWERSHELL_COMMAND    The full path to the PowerShell executable

At first, I suspected I had some lingering pip3 installed packages mucking up paths, but I don't see any in my local site-packages folder...

allenh1@hunter-laptop:~$ ls ~/.local/lib/python3.6/site-packages/ | grep colcon
allenh1@hunter-laptop:~$ 

Finally, I checked where things are placed, and I do indeed see the script, though it is outside my PATH.

allenh1@hunter-laptop:~$ dpkg -L python3-colcon-cd
/.
/usr
/usr/lib
/usr/lib/python3
/usr/lib/python3/dist-packages
/usr/lib/python3/dist-packages/colcon_cd
/usr/lib/python3/dist-packages/colcon_cd/__init__.py
/usr/lib/python3/dist-packages/colcon_cd-0.1.1.egg-info
/usr/lib/python3/dist-packages/colcon_cd-0.1.1.egg-info/PKG-INFO
/usr/lib/python3/dist-packages/colcon_cd-0.1.1.egg-info/dependency_links.txt
/usr/lib/python3/dist-packages/colcon_cd-0.1.1.egg-info/entry_points.txt
/usr/lib/python3/dist-packages/colcon_cd-0.1.1.egg-info/requires.txt
/usr/lib/python3/dist-packages/colcon_cd-0.1.1.egg-info/top_level.txt
/usr/lib/python3/dist-packages/colcon_cd-0.1.1.egg-info/zip-safe
/usr/share
/usr/share/colcon_cd
/usr/share/colcon_cd/function
/usr/share/colcon_cd/function/colcon_cd.sh
/usr/share/doc
/usr/share/doc/python3-colcon-cd
/usr/share/doc/python3-colcon-cd/changelog.Debian.gz

@dirk-thomas could this script be placed somewhere more convenient like /usr/bin? I added that area to the path, and it is also not executable.

allenh1@hunter-laptop:~$ export PATH="/usr/share/colcon_cd/function:${PATH}"
allenh1@hunter-laptop:~$ colcon_cd
colcon_cd: command not found
allenh1@hunter-laptop:~$ colcon_cd.sh
bash: /usr/share/colcon_cd/function/colcon_cd.sh: Permission denied

Unable to cd to deb installs sourced in /opt/ros/<distro>/ when workspace is sourced

If you source your workspace setup.bash this will prevent the ability to cd to /opt/ros//share/.

In ROS1 you could roscd to installed ros packages which was useful if you ever wanted more insight on the options for a specific package. ros2 launch <package> is able to tab complete to these /opt/ros/<distro>/share/<package> directories to find launch files so clearly the functionality already exists, it just needs to be ported in some form here.

A recent update broke `colcon_cd` with zsh

I updated my system yesterday. Since then, I cannot use colcon_cd anymore (zsh 5.8.1).

Steps to reproduce:

zsh
source /usr/share/colcon_cd/function/colcon_cd.sh
colcon_cd

You get the error

colcon_cd:1: = not found

I tried to source /usr/share/colcon_cd/function/colcon_cd-argcomplete.zsh first but it doesn't help. It seems to work correctly on bash.

PS: thanks for this tool!

cd verb is unknown to colcon?!

The cd verb is unknown to colcon:

$ colcon cd my_package
              ...
colcon: error: argument verb_name: invalid choice: 'cd' (choose from 'alias', 'build', 'clean', 'extension-points', 'extensions', 'graph', 'info', 'list', 'metadata', 'mixin', 'test', 'test-result', 'version-check', 'clr')

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.