Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#2,151 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
git, macos, swift, zsh

調査の方向性

まず、CodeEdit の Git ブランチ検出と、Toolbar のサブタイトルに値を設定するために使用されている shell コマンドを追跡します。issue にはファイルもテストも記載されていません。~/.zprofile に echo 文を追加し、Git リポジトリを開いた状態で再現してから、ブランチだけが表示され、shell の出力が除外されることを確認します。

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
Swift
スター
23k
フォーク
1.2k
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CodeEditApp/CodeEdit のほかの issue

CodeEditApp/CodeEdit の issue をすべて見る

似ている issue

Swift の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。