Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#78293 - [python-poetry] gives invalid fish completions

Attached to Project: Community Packages
Opened by Larson (typecasto) - Sunday, 23 April 2023, 21:41 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 23 May 2023, 22:51 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Caleb Maclennan (alerque)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
Whenever you type `poetry ` (note the space) using fish, it prints a bunch of completion errors (attached).

Additional info:
- python-poetry is version 1.4.2-1, the latest.
- Happens on my desktop, laptop, and in the `archlinux` docker container.
- This has been happening for a few months now, it's not something the latest update introduced.

Steps to reproduce:
1. run `pacman -S fish python-poetry` to install the relevant packages
2. start `fish`
3. type `poetry ` without hitting enter
4. several errors appear
This task depends upon

Closed by  Toolybird (Toolybird)
Tuesday, 23 May 2023, 22:51 GMT
Reason for closing:  Upstream
Additional comments about closing:  Clearly an upstream issue. We await a fix from them.
Comment by David Runge (dvzrv) - Monday, 24 April 2023, 09:36 GMT
@typecasto: Thanks for the report.

Once this change [1] is available in [community-testing] and in case you're able to run testing, please give that a spin and report back.
We're currently in the py311 rebuild phase, which may block updates a bit.

Alternatively, use the current PKGBUILD, build using devtools and check whether that fixes your issue already.

[1] https://github.com/archlinux/svntogit-community/commit/fca80bcd9442398ada7332f01072f2805fcbfb9b
Comment by Larson (typecasto) - Sunday, 07 May 2023, 23:41 GMT
It doesn't happen when I type `poetry ` anymore, but hitting tab at that point will still print a bunch of errors (as well as give me the correct completions). Running python-poetry 1.4.2-2.
Comment by Zhang Hua (ZhangHua) - Friday, 19 May 2023, 03:54 GMT
It seems that there are some extra single quotation marks in some lines of /usr/share/fish/vendor_completions.d/poetry.fish
Take line 83 as an example, it is `complete -c poetry -A -n '__fish_seen_subcommand_from 'cache clear'' -l all -d 'Clear all entries in the cache.'` currently. However, the correct one should be `complete -c poetry -A -n '__fish_seen_subcommand_from cache clear' -l all -d 'Clear all entries in the cache.'`. So run `# sed -i "s/''/'/g;s/'__fish_seen_subcommand_from '/'__fish_seen_subcommand_from /g" /usr/share/fish/vendor_completions.d/poetry.fish` maybe a workaround for this. For permanent fix, I think we may need to send an issue to upstream because this file is generated by `poetry completion fish` command when building this package.

Edit: Maybe related issue: https://github.com/python-poetry/poetry/issues/5929

Loading...