Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#2,151 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
git, macos, swift, zsh

Direzione di ricerca

Inizia tracciando il rilevamento dei branch Git di CodeEdit e il comando shell utilizzato per valorizzare il sottotitolo di Toolbar; l'issue non indica alcun file né alcun test. Riproduci il problema con un'istruzione echo in ~/.zprofile e un repository Git aperto, quindi verifica che venga mostrato solo il branch e che l'output della shell venga escluso.

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

Descrizione

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
Lingua principale
Swift
Stelle
23k
Fork
1.2k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CodeEditApp/CodeEdit

Tutte le issue di CodeEditApp/CodeEdit

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.