Argparse API change breaks argcomplete

Bug #2063129 reported by Matthias Lüscher
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-argcomplete (Ubuntu)
New
Undecided
Unassigned

Bug Description

Description: Ubuntu Noble Numbat (development branch)
Release: 24.04
python3-argcomplete: 3.1.4-1

Python argparse introduced an API change that breaks argcomplete. The upstream version of argcomplete got fixed here: https://github.com/kislyuk/argcomplete/commit/54a4846b3a774cd9037167898f3cce38ba9d58e8

I detected the issue using my python based tool edi. The issue can be reproduced as follows:

1. Install edi according to https://docs.get-edi.io/en/latest/getting_started.html#installing-edi-from-the-package-repository
2. Start to type "edi -v project" and hit tab for auto completion. The first level sub command will be proposed instead of the second level subcommand.
3. Patch /usr/lib/python3/dist-packages/argcomplete/packages/_argparse.py according to the above commit.
4. Start to type "edi -v project" and hit tab for auto completion. The correct second level commands such as "make" will be proposed.

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.