On Sun, Oct 25, 2020 at 04:02:07PM +0100, David Croll wrote: > 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…'
This is strange. Which version of the rdiff-backup package are you using? I tried generating completions for doc/rdiff-backup.1 from Ubuntu's rdiff-backup version 2.0.5, and the output was not truncated. I used rdiff-backup_2.0.5.orig.tar.gz from https://packages.ubuntu.com/source/groovy/rdiff-backup > > 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. Assuming the manpage itself is not truncated, this is probably just a problem in fish's manpage parser. Maybe send the manpage file here so we can try reproducing the problem. > > > 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 _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users