The completion file is there, yes. But the file is somehow truncated:

david@nitro ~/.l/s/f/generated_completions> cat rdiff-backup.fish
# rdiff-backup
# Autogenerated from man page /usr/share/man/man1/rdiff-backup.1.gz
complete -c rdiff-backup -l allow-duplicate-timestamps --description
'This option is only to be used if you encounter the issue of metadata
mirrors…'

Other completion files in .local/share/fish/generated_completions seem
to be okay.

apt purge rdiff-backup
apt install rdiff-backup
fish_update_completions

did not resolve the issue.

I'll make a note on the rdiff-backup mailing list.


Best regards,

David



On 10/25/20 2:46 PM, Johannes Altmanninger wrote:
On Sun, Oct 25, 2020 at 11:25:08AM +0100, David Croll wrote:
To clarify: It's the autocompletion of options (like the
"--print-statistics" in rdiff-backup) that fails, not the autocompletion
of directories and filenames.
The generated completions should work here. The man page is parsed correctly on 
fish 3.1.2

        $ python3 /usr/share/fish/tools/create_manpage_completions.py --stdout 
/usr/share/man/man1/rdiff-backup.1.gz | grep print.statistics
        complete -c rdiff-backup -l print-statistics --description 'If set, 
summary statistics will be printed after a successful backup.'

Make sure that the directory with generated completions is in your 
$fish_complete_path

        $ printf %s\n $fish_complete_path
        ...
        ~/.local/share/fish/generated_completions

Since you already ran fish_update_completions, the completion file should be 
there already.
It could be that it is overridden by another completion file (only the first 
one is loaded).
You should have only one:

        $ printf %s\n $fish_complete_path/rdiff-backup.fish*
        /home/johannes/.local/share/fish/generated_completions/rdiff-backup.fish


On 10/25/20 11:16 AM, David Croll wrote:
Hi everybody,



after an update to Ubuntu 20.10 Groovy Gorilla, Fish's autocompletion
does not work anymore.

I'm using Fish 3.1.2 right now.

Steps taken:

- removed all fish files from .config/, .local/share/ and /etc

- sudo apt purge fish

- sudo apt install fish

- fish_update_completions


With the best regards,


David





_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users



_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users




_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to