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

Deployer import function ambiguity #85

Open
meyerj opened this issue Jun 21, 2019 · 0 comments
Open

Deployer import function ambiguity #85

meyerj opened this issue Jun 21, 2019 · 0 comments
Labels

Comments

@meyerj
Copy link
Member

meyerj commented Jun 21, 2019

The deployer's import() operation fails to load a package if a subdirectory with the same name exists in the current working directory.

Example

$ mkdir ocl
$ deployer
Real-time memory: 517888 bytes free of 524288 allocated.
0.027 [ ERROR  ][ComponentLoader::importInstalledPackage(package, path_list)] Failed to import components, types or plugins from package or directory 'ocl' found in:
0.027 [ ERROR  ][ComponentLoader::importInstalledPackage(package, path_list)] ocl:ocl/gnulinux
   Switched to : Deployer

  This console reader allows you to browse and manipulate TaskContexts.
  You can type in an operation, expression, create or change variables.
  (type 'help' for instructions and 'ls' for context info)

    TAB completion and HISTORY is available ('bash' like)

    Use 'Ctrl-D' or type 'quit' to exit this program.

Deployer [S]> 

Options

  • Only interpret the argument as a filename if it contains at least one /. A package from a local directory would have to be imported with import("./<pkg>").
  • For non-absolute paths first try to load a package with the given name, and only fall back to relative directories if not found.
@meyerj meyerj added the bug label Jun 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant