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#76051 - [python-black] Completions for black are overwritten by blackd

Attached to Project: Community Packages
Opened by Pig Monkey (pigmonkey) - Wednesday, 28 September 2022, 22:01 GMT
Last edited by Daniel M. Capella (polyzen) - Thursday, 29 September 2022, 00:18 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Daniel M. Capella (polyzen)
Maxim Baz (maximbaz)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

I currently have no completions for `black` in my shell. I use zsh. When I look in `/usr/share/zsh/site-functions/_black`, I only see completion definitions for `blackd` (which I do not use).

In the PKGBUILD I see that completions are installed by `_BLACK_COMPLETE=zsh_source test-env/bin/black > "$pkgdir/usr/share/zsh/site-functions/_black"`

A few lines later, the contents of that file are blown away by `_BLACKD_COMPLETE=zsh_source test-env/bin/blackd > "$pkgdir/usr/share/zsh/site-functions/_black`

All of the `>` redirects used to install the `blackd` completions should probably be replaced with `>>` so that they append to the completion file, rather than truncate it.

https://zsh.sourceforge.io/Doc/Release/Redirection.html

Additional info:
* 22.8.0-2

Steps to reproduce:

cat /usr/share/zsh/site-functions/_black
This task depends upon

Closed by  Daniel M. Capella (polyzen)
Thursday, 29 September 2022, 00:18 GMT
Reason for closing:  Fixed
Additional comments about closing:  22.8.0-3

Loading...