Tab completion doesn't work with Juju 2.0

Bug #1647675 reported by Dean Henrichsmeyer
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Won't Fix
High
Unassigned
juju-release-tools
Won't Fix
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

Revision history for this message
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
Revision history for this message
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
Revision history for this message
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/

Revision history for this message
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
Revision history for this message
Heather Lanigan (hmlanigan) wrote :

Tab completion works with bash today. Possibly with zsh as well.

Changed in juju-release-tools:
status: Triaged → Won't Fix
Changed in juju:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.