Tab completion doesn't work with Juju 2.0

Bug #1647675 reported by Dean Henrichsmeyer on 2016-12-06
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju
High
Unassigned
juju-release-tools
High
Unassigned

Bug Description

I have Juju 2.0.0-0ubuntu0.16.04.2 installed on xenial. If I type juju destro<tab> I get:

_juju_complete_2_0: command not found

Richard Harding (rharding) wrote :

Juju doesn't currently ship with zsh tab completion. Based on the _juju_complete I'm wondering if you're using zsh?

Changed in juju-core:
status: New → Incomplete
Dean Henrichsmeyer (dean) wrote :

This is a fresh xenial install with Juju only ever installed from the archive.

Changed in juju-core:
status: Incomplete → Invalid
affects: juju-core → juju
Changed in juju:
status: Invalid → Triaged
importance: Undecided → High
Richard Harding (rharding) wrote :

Seeing it on a fresh VM on GCE with 16.04.

Error:
_juju_complete_2_0: command not found

Reproduction steps

  sudo apt-get install juju-2.0
  sudo apt-get update && sudo apt-get upgrade
  bash # attempt to refresh the shell just in case to pick up completion scripts
  juju list-<tab>
  _juju_complete_2_0: command not found

In doing a search

  locate juju | grep comple
  /usr/share/bash-completion/completions/juju
  /usr/share/bash-completion/completions/juju-2.0

I did also try a logout/back in and so it's not loading the completion files. I did check the 2.0 completion file and find the function is defined and registered:

  https://pastebin.canonical.com/173002/

Nicholas Skaggs (nskaggs) wrote :

Note this affects the ppa version of juju as well. Bash completion hasn't sourced everything. You can workaround like so in the interim.

juju-2.0 <tab>

Then

juju <tab>

will work.

Changed in juju-release-tools:
status: New → Triaged
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers