dotnet / dotnet/command-line-api

Renamed: PowerShell Tab completion issues (you need to restart commandline to see refreshed dotnet suggest list)

Aperta
#749 10 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Area-Completions bug
Lingua principale
C#
Stelle
3.7k
Fork
428
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I did follow steps for [dotnet-suggest](https://github.com/dotnet/command-line-api/wiki/dotnet-suggest):

- executed: dotnet tool install -g dotnet-suggest
- I see dotnet-suggest installed in $env:USERPROFILE\.dotnet\tools
- added shell script to my PowerShell profile
- when I start PowerShell I see that $env:DOTNET_SUGGEST_SCRIPT_VERSION has value 1.0.0

I am trying to get Tab completion to work but I never see any suggestion. Are they any other requirements? I have a

I build .NET Core 3.1 console application called Test using "System.CommandLine" version "2.0.0-beta1.20071.2" (configured options are --int-option, --bool-option and --file-option). When I press Tab in the following PowerShell command line nothing happens:

`PS> Test.exe --int`

When I press Tab in the following PowerShell command line I just see standard PowerShell completion (files from the same directory):

`PS> Test.exe `

I am sure there is something obvious that I missing. Could you please point in the right direction to get the tab completion/suggestion to work for my CommandLine console tools?

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia con la configurazione di dotnet-suggest nel wiki collegato, lo script del profilo PowerShell e l'esempio Test.exe che usa System.CommandLine 2.0.0-beta1.20071.2. Riproduci il completamento per `Test.exe --int` e `Test.exe ` e determina i requisiti necessari perché vengano visualizzati i suggerimenti; il lavoro è completato quando la configurazione documentata produce il completamento delle opzioni previsto senza riavviare PowerShell.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp, powershell
Ambito
cli
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.