Skip to content

Make it easier to diagnose why dotnet-suggest does not run the executable #1771

Open

Description

@KalleOlaviNiemitalo

As described in #1588 (comment), if you register a command-line executable in one directory and then try to use tab completion via dotnet suggest on an identically-named executable in another directory, it won't work unless you register that executable separately. It is not obvious how to diagnose and fix such a problem. This could be improved in the some of the following ways:

  • dotnet-suggest diagnose EXECUTABLE-OR-COMMAND to describe whether EXECUTABLE has been registered, or whether the executable that COMMAND would run has been registered. Unlike dotnet-suggest get, this should Do What I Mean and not expect any -- syntax.
  • dotnet-suggest list --verbose to list the full path of each registered command.
  • dotnet-suggest list --help to tell the user about the ~/.dotnet-suggest-registration.txt file.

Activity

  1. added
    enhancement
    Area-Completions
    on Jun 21, 2022
  2. KalleOlaviNiemitalo commented on Jun 21, 2022

    @KalleOlaviNiemitalo
    Author

    I imagine you could also have a per-shell key binding that runs dotnet-suggest get with an extra option that makes it display its own command line, whether and how the command has been registered, and how it would execute the command. This feature would be harder for users to discover, though; and it might conflict with a user-defined key binding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Completionsenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions