Skip to content

zsh completion shim does not work as expected #1849

Open
@Blackclaws

Description

@Blackclaws

As the title says the zsh completion shim doesn't work as expected or rather doesn't work at all in some cases.

The problem stems from the fact that dotnet-suggest on my system gives the following for dotnet-suggest list

dotnet-ef
dotnet ef
security-scan
dotnet-grpc-cli
dotnet grpc-cli
dotnet-suggest
dotnet suggest
dotnet-grpc
dotnet grpc
reportgenerator

So for all the dotnet prefixed global commands there is always the one with a space included as well. This leads to the situation where dotnet-suggest is registered as a completion provider for dotnet.

Resulting in this issue:

_values:compvalues:11: not enough arguments

Because there is no completion returned by dotnet-suggest for dotnet

If I understand the issue correctly this stems from this line:

In general if there is no completion returned there shouldn't even be a _values object that is set as far as I understand.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-CompletionsRelated to support for tab completionbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions