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

Too strict looking for config paths, difficult to combine different installs #8

Closed
osrf-migration opened this issue Dec 6, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@osrf-migration
Copy link

Original report (archived issue) by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


Prerequisites

  • [ X ] Put an X between the brackets on this line if you have done all of the following:

Description

By default, ign-tools will look at its own installed path for yaml config files of other libraries. This works fine when all libraries have been installed from debs, because they all end up under the same directory structure under /usr. But it fails for example when one was installed from debs and the other was installed from source to /usr/local or some other custom path.

Steps to Reproduce

  1. Install ign-tools from debs: sudo apt install libignition-tools-dev
  2. Build another library from source, such as ign-msgs.
  3. Try to run ign msg, and ign-tools won't be able to find the msg command.

Expected behavior:

Ignition tools should find the library, either by default, or with some documented configuration steps.

Actual behavior:

The command can't be found.

Additional Information

This discussion started on issue #2, look there for more context.

A partial solution is to set the IGN_CONFIG_PATH variable at runtime pointing at the library to be found. This works well if you only need to find libraries in a single path, but doesn't work for several libraries installed to different paths, because IGN_CONFIG_PATH only accepts a single path.

Another workaround is to use symlinks as described here, for example:

mkdir ~/.ignition/tools/configs -p
cd ~/.ignition/tools/configs/
ln -s ~/ws/install/ignition-transport6/share/ignition/transport6.yaml .
ln -s ~/ws/install/ignition-gui1/share/ignition/gui1.yaml .
...
export IGN_CONFIG_PATH=$HOME/.ignition/tools/configs
@osrf-migration
Copy link
Author

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


  • Edited issue description

@scpeters
Copy link
Member

multiple paths can now be specified in IGN_CONFIG_PATH using the : delimiter as of BitBucket pull request 13

@chapulina
Copy link
Contributor

Ohh I think we can remove a bunch of troubleshooting sections then, like this one:

https://github.com/ignitionrobotics/ign-fuel-tools/#known-issue-of-command-line-tools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants