localstack / localstack/awscli-local

On Windows 11 the terminal proprt apears before the prints

Offen
#89 1 Kommentar 4 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
Python
Sterne
1.3k
Forks
94
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

It's a bit hard to explain the issue I'm facing so adding a print screen:
![image](https://github.com/user-attachments/assets/d867c570-3fcf-4753-9555-5257914036d7)

You can see that I get a prompt for the next command before the `awslocal` command has finished running.
This causes several issues when we have several inputs to enter one after another like the `configure` command of aws cli, in case I want to enter credentials.

![image](https://github.com/user-attachments/assets/15145e68-f2ee-497f-9bbd-2850d8752fa9)
You can see I got a prompt for the next command even though I'm supposed to be in the context of the first one.

I tried this on 2 different computers, both in CMD and Powershell.
Any ideas?
Is this a bug?

As a workaround, I added this to my Powershell Profile:
```powershell
function awsl {
param(
[Parameter(ValueFromRemainingArguments = $true)]
[string[]]$Args
)
aws @Args --profile local --endpoint-url http://localhost:4566
}
```
So instead of `awslocal` I'm my custom `awsl` at the end of each `aws` command (not only endpoint but also my custom aws-local profile).

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit, das Verhalten von awslocal unter Windows 11 sowohl in CMD als auch in PowerShell zu reproduzieren, insbesondere mit dem AWS CLI configure command. Vergleiche es mit dem gemeldeten PowerShell awsl-Workaround und ermittle, wann die Eingabeaufforderung im Verhältnis zum Abschluss des Befehls erscheint. Als erledigt gilt die Aufgabe, wenn awslocal wartet, bis der Befehl und die interaktive Eingabe abgeschlossen sind, bevor die nächste Eingabeaufforderung zurückgegeben wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
aws, python
Bereich
cli
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.