Bug 1692028

Summary: dnf bash completion stopped working after upgrade to F30
Product: [Fedora] Fedora Reporter: Artem <ego.cordatus>
Component: dnfAssignee: rpm-software-management
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 30CC: bnrj.rudra, dmach, jmracek, jrohel, mblaha, mhatina, nphilipp, packaging-team-maint, pkratoch, rpm-software-management, vmukhame
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-05 09:06:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Artem 2019-03-23 13:18:48 UTC
Description of problem:
  After upgrading from F29 to F30 dnf bash completion not working any more at all. Auto completion not working for any dnf command, not only for packages from repos.

Version-Release number of selected component (if applicable):
  dnf-4.2.1-1.fc30

How reproducible:
  Try to run any command like:
    dnf <foo[TAB]>

Steps to Reproduce:
  sudo dnf ins[TAB]
    or
  dnf ins[TAB]

Actual results:
  Nothing.

Expected results:
  sudo dnf install

Comment 1 Nils Philippsen 2019-04-04 15:18:01 UTC
*** Bug 1695082 has been marked as a duplicate of this bug. ***

Comment 2 Nils Philippsen 2019-04-04 15:20:21 UTC
Bug #1695082 has "set -x" output for an attempt of tab expansion.

I've come across this myself, tried to execute this line from the output (towards the end)...:

/usr/bin/python3 -c 'import sys; from dnf.cli import completion_helper as ch; ch.main(sys.argv[1:])' _cmds '' -d 0 -q -C --assumeno --nogpgcheck

...and found that the completion_helper module isn't installed (which it is with the same version-release on F-29).

Comment 3 Nils Philippsen 2019-04-04 15:35:54 UTC
(In reply to Nils Philippsen from comment #2)
> ...and found that the completion_helper module isn't installed (which it is
> with the same version-release on F-29).

Clarifying, I mean that python3-dnf contains the module in F-29, but doesn't in F-30, Rawhide.

Comment 4 Marek Blaha 2019-04-05 09:06:02 UTC

*** This bug has been marked as a duplicate of bug 1695853 ***