Bug 1695853

Summary: Bash autocomplete for "dnf" is broken in F30 (beta)
Product: [Fedora] Fedora Reporter: Kostya Vasilyev <kmansoft>
Component: dnfAssignee: rpm-software-management
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 30CC: bryan.sutherland, damian01w, dmach, ego.cordatus, jmracek, jrohel, mblaha, mhatina, packaging-team-maint, pkratoch, rpm-software-management, vmukhame, zebob.m
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dnf-4.2.2-2.fc30 dnf-4.2.2-2.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-08 00:01:25 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 Kostya Vasilyev 2019-04-03 19:39:50 UTC
Description of problem:

Bash autocomplete for "dnf" is broken in F30 (beta)

Version-Release number of selected component (if applicable):

dnf-4.2.2-1.fc30.noarch

How reproducible:

100%


Steps to Reproduce:
1. I just updated to Fedora 30 (beta)
2. In bash type "sudo dnf ins" <TAB>

Actual results:

3. Nothing happens

Expected results:

The "ins" is autocompleted to "install".

Additional info:

Package names are not autocompleted either, e.g.

"sudo dnf info kern"<TAB> -> nothing
"sudo dnf install golang"<TAB> -> nothing (there are 100's of "golang*" packages)

bash-completion is installed but I believe dnf autocomplete is provided by dnf package:

$ rpm -qf /usr/share/bash-completion/completions/dnf 
dnf-4.2.2-1.fc30.noarch

$ echo $BASH_VERSION 
5.0.2(1)-release

Other auto-completions do work fine, e.g.

"ls --"<TAB> shows options that "ls" can take, 
"rpm -ql kern"<TAB> shows packages matching "kern*"

and so on.

Comment 1 Robert-André Mauchin 🐧 2019-04-04 12:54:37 UTC
I believe it is because the file /usr/lib/python3.7/site-packages/dnf/cli/completion_helper.py is missing from the installation.

Comment 2 Robert-André Mauchin 🐧 2019-04-04 13:43:58 UTC
PR: https://github.com/rpm-software-management/dnf/pull/1367

Comment 3 Marek Blaha 2019-04-05 08:24:32 UTC
Thank you, the PR has been merged.

Comment 4 Marek Blaha 2019-04-05 09:06:02 UTC
*** Bug 1692028 has been marked as a duplicate of this bug. ***

Comment 5 Fedora Update System 2019-04-05 11:51:51 UTC
dnf-4.2.2-2.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-4555b39d6c

Comment 6 Fedora Update System 2019-04-05 11:51:59 UTC
dnf-4.2.2-2.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-157a96961d

Comment 7 Fedora Update System 2019-04-06 18:38:13 UTC
dnf-4.2.2-2.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-4555b39d6c

Comment 8 Fedora Update System 2019-04-06 20:50:58 UTC
dnf-4.2.2-2.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-157a96961d

Comment 9 Fedora Update System 2019-04-08 00:01:25 UTC
dnf-4.2.2-2.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2019-04-08 01:52:48 UTC
dnf-4.2.2-2.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.

Comment 11 Bryan Sutherland 2019-04-22 09:26:29 UTC
This bug appears to still be there after updating to dnf-4.2.2-2
    Installed: dnf-0:4.2.2-2.fc30.noarch at Fri 19 Apr 2019 09:21:34 PM GMT

When trying to use tab completion dnf stops responding, must ^C twice to break the process

System info:

cat /etc/system-release
  Fedora release 30 (Thirty)

cat /etc/system-release-cpe
  cpe:/o:fedoraproject:fedora:30


Please advise on any diagnostics you require

Comment 12 Pavla Kratochvilova 2019-04-25 15:39:11 UTC
Hi Bryan, I think this might be an unrelated issue. Can you please open new bug report?

Comment 13 Damián Barberón 2019-04-25 16:00:06 UTC
Hi, same problem here, but in my case it was related to https://bugzilla.redhat.com/show_bug.cgi?id=1625674