🐞 Git Branch detection captures shell outputs rather than just the branch
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
- Ambito
- desktop, developer-experience
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
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
- 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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di CodeEditApp/CodeEdit
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
CodeEditApp/CodeEdit#2190 ·
-
Is this project dead? Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 15/100
CodeEditApp/CodeEdit#2195 · 5 reazioni ·
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
CodeEditApp/CodeEdit#2185 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
CodeEditApp/CodeEdit#2181 ·
-
creashes on starting Apertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
CodeEditApp/CodeEdit#2180 ·
Tutte le issue di CodeEditApp/CodeEdit
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
manaflow-ai/cmux#13763 ·
-
type: feature request
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
googleapis/google-cloud-swift#1036 · 1 commento ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
wultra/mtoken-sdk-ios#253 ·
-
The correction-threshold rationale says 17 restraint cases collide; the current corpus has 16 Apertaarea:dictation documentation P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
uttrflow/uttrflow-swift#1180 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100