Re: Issue with the man page

EricZolf <[email protected]>
Newsgroups gmane.comp.sysutils.backup.rdiff-backup.general
Organization rdiff-backup.net
Message-ID <[email protected]>
Hello again,

I've installed fish and called the following:


$ python /usr/share/fish/tools/create_manpage_completions.py
/usr/share/man/man1/rdiff-backup.1.gz
$ ll ~/.local/share/fish/generated_completions/
total 12
-rw-rw-r--. 1 myuser myuser 9936 Oct 27 07:18 rdiff-backup.fish
$ cat ~/.local/share/fish/generated_completions/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…'
complete -c rdiff-backup -s b -l backup-mode --description 'Force backup
mode even if first argument appears to be an increment or mirror…'
complete -c rdiff-backup -l calculate-average --description 'Enter
calculate average mode.'
[... etc, 83 lines in total ...]


So it sounds to me like it works correctly. Fedora 32, rdiff-backup
2.0.5, fish 3.1.2

KR, Eric

On 26/10/2020 13:19, Eric L. wrote:
> Hi,
> 
> difficult to say without knowing what fish is looking for, and man pages
> are not meant to do automated auto-completion.
> 
> Anyway, I can only say that the `--allow-duplicate-timestamps` option is
> new with 2.0.5 and might be the reason for the issue.
> This said, I don't see anything suspicious and the man page renders
> properly.
> 
> Feel free to place a Merge Request to fix the issue though, once you've
> found the culprit.
> 
> If fish also allows to create its autocompletion script from a
> bash-autocompletion script, it would possibly be a better option.
> 
> KR, Eric
> 
> On 25.10.2020 16:10, David Croll wrote:
>> Hi,
>>
>>
>> after updating my Ubuntu to 20.10, I have rdiff-backup 2.0.5 now.
>>
>> There is a curious issue when using the fish console. It has a powerful
>> autocompletion feature, both regarding file paths and command options.
>>
>> We can hit
>>
>> fish_update_completions
>>
>> and then the files containing the command completions (suggestions like
>> --list-increment-size, --no-fsync) are being generated from the man
>> pages.
>>
>> But then, fish hits a snag. The completion file generated that way is
>> 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…'
>>
>> Did man page change in any way that fish_update_completions cannot
>> parse? Other man pages are parsed correctly, and fish generates a file
>> with all the options.
>>
>>
>>
>> With the best regards,
>>
>>
>> David
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.