Powershell completions not working with empty help string. #5341
Labels
A-completion
Area: completion generator
C-bug
Category: Updating dependencies
E-help-wanted
Call for participation: Help is requested to fix this issue.
E-medium
Call for participation: Experience needed to fix: Medium / intermediate
I came across a problem with the uutils coreutils package where the powershell completions didnt work, uutils/coreutils#5933, and was directed here. I discovered this is because in the generated ps1 file the line [CompletionResuIt]::new('seq', 'seq', [CompletionResultType]::ParameterValue, '') exists, this line seems to cause the completions to fail and fall back on completing files, i also noticed this is not an issue and everything works as intended when adding something here, be it ' ' or anything else.
I dont know how this and i have never used clap so i dont know what to do to try to replicate it. But i can duplicate the issue in for example rustups completion by replacing it an empty string in one of the completion elements.
The text was updated successfully, but these errors were encountered: