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

Autocomplete is broke #114

Open
mandoonandy opened this issue Oct 12, 2021 · 0 comments
Open

Autocomplete is broke #114

mandoonandy opened this issue Oct 12, 2021 · 0 comments

Comments

@mandoonandy
Copy link
Contributor

t$ sf-client artifact show Traceback (most recent call last):
  File "/srv/shakenfist/venv/bin/sf-client", line 10, in <module>
    sys.exit(cli())
  File "/srv/shakenfist/venv/lib/python3.7/site-packages/shakenfist_client/main.py", line 67, in __call__
    return self.main(*args, **kwargs)
  File "/srv/shakenfist/venv/lib/python3.7/site-packages/click/core.py", line 777, in main
    _bashcomplete(self, prog_name, complete_var)
  File "/srv/shakenfist/venv/lib/python3.7/site-packages/click/core.py", line 72, in _bashcomplete
    if bashcomplete(cmd, prog_name, complete_var, complete_instr):
  File "/srv/shakenfist/venv/lib/python3.7/site-packages/click/_bashcomplete.py", line 373, in bashcomplete
    return do_complete(cli, prog_name, shell == "zsh")
  File "/srv/shakenfist/venv/lib/python3.7/site-packages/click/_bashcomplete.py", line 334, in do_complete
    for item in get_choices(cli, prog_name, args, incomplete):
  File "/srv/shakenfist/venv/lib/python3.7/site-packages/click/_bashcomplete.py", line 318, in get_choices
    return get_user_autocompletions(ctx, all_args, incomplete, param)
  File "/srv/shakenfist/venv/lib/python3.7/site-packages/click/_bashcomplete.py", line 226, in get_user_autocompletions
    ctx=ctx, args=args, incomplete=incomplete
  File "/srv/shakenfist/venv/lib/python3.7/site-packages/shakenfist_client/commandline/artifact.py", line 19, in _get_artifacts
    choices = [a['uuid'] for a in ctx.obj['CLIENT'].get_artifacts()]
TypeError: 'NoneType' object is not subscriptable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant