Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

🐞 Git Branch detection captures shell outputs rather than just the branch

Offen
#2,151 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
45/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
git, macos, swift, zsh

Rechercherichtung

Beginne damit, die Erkennung von Git-Branches in CodeEdit und den Shell-Befehl nachzuverfolgen, der zum Befüllen des Toolbar-Untertitels verwendet wird; das Issue nennt keine Datei und keinen Test. Reproduziere das Problem mit einer echo-Anweisung in ~/.zprofile und einem geöffneten Git-Repository und überprüfe anschließend, dass nur der Branch angezeigt wird und die Shell-Ausgabe ausgeschlossen ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

bug
Description

In my ZSH configuration (~/.zprofile) I echo text out, this runs when I open a new shell, but the text echoed shows up in the Toolbar's subtitle where it shows the branch.

To Reproduce

This assumes the same machine configuration as me, since I'm unsure how much of this is CodeEdit's decisions VS my setup, though assuming you run ZSH as your standard shell I'd assume it would replicate properly.

open .zprofile
open ~/.zprofile -a CodeEdit
add an echo statement, such as
echo "This text should not show up in CodeEdit branch info, it should only be seen in interactive shells"
save .zprofile
Quite CodeEdit
Open a Git initialized repository in CodeEdit
Or make a temporary Git repo and open it...
    setopt INTERACTIVE_COMMENTS 
    # ↑ allow comments in the shells interactive mode (default off in zsh)


    dir="$(mktemp -d)" # makes a temporary folder (so it auto deletes by the OS later)

    cd $dir # go to our temporary directory
    
    git init # initialize a Git repository in the directory

    open . -a CodeEdit # open our temporary git repo in CodeEdit
and in the branch section you will see an output like the image attached
Expected Behavior

CodeEdit runs a non-interactive shell to capture the current branch, and only captures branch info via Git's stdout, rather than the shell contents

Version Information

CodeEdit: 0.3.6 (47)
macOS: 26.1.0

Additional Context

No response

Screenshots
Image
Vorherrschende Sprache
Swift
Sterne
23k
Forks
1.2k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus CodeEditApp/CodeEdit

Alle Issues in CodeEditApp/CodeEdit

Ähnliche Issues

Weitere Issues zu Swift

Neue Issues direkt in Ihr Postfach

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