Stack Trace while trying to use autocompletions on `bst workspace open`

Summary

While trying to autocomplete a bst workspace open command, for which I had accidentally mistyped the initial segment of a filename, I got the stack trace below:

$ bst workspace open pyh
Traceback (most recent call last):
  File "/home/tom/.local/bin//bst", line 5, in <module>
    from buildstream._frontend import cli
  File "/home/tom/Documents/work/buildstream/buildstream/_frontend/__init__.py", line 20, in <module>
    from .cli import cli
  File "/home/tom/Documents/work/buildstream/buildstream/_frontend/cli.py", line 1088, in <module>
    @click.pass_obj
  File "/home/tom/.local/lib/python3.7/site-packages/click/core.py", line 1163, in decorator
    cmd = command(*args, **kwargs)(f)
  File "/home/tom/.local/lib/python3.7/site-packages/click/decorators.py", line 115, in decorator
    cmd = _make_command(f, name, attrs, cls)
  File "/home/tom/.local/lib/python3.7/site-packages/click/decorators.py", line 89, in _make_command
    callback=f, params=params, **attrs)
TypeError: __init__() got an unexpected keyword argument 'hidden'

Edit: it seems autocompletions are not working for me generally here.

Steps to reproduce

I can reproduce reliably by:

  1. Clone libreml
  2. Type bst workspace open pyh and attempt to autocomplete.
  3. Observe the stack trace

What is the expected correct behavior?

There should be no traceback or output - nothing should happen.

Other relevant information


Edited by Tom Coldrick