Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

More macOS 13 compatibility issues

未關閉
#362 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
45/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
swift
領域
desktop

研究方向

從 TextViewController、FindViewController 和 SuggestionViewController 開始,重點關注它們的 loadView 方法以及 NSNib/NSViewController 的崩潰追蹤。將 macOS 13 workaround 與 commit 941f378 進行比較,並調查 styleTextView/ScrollView/MinimapView 相對於建立 FindViewController 的順序。完成的標準是編輯器能夠在不崩潰的情況下啟動,且在 macOS 13 上不顯示空白檢視。

由索引模型根據 Issue 內容生成。

描述

Problem

On macOS 13, the editor crashes on launch, then shows a blank view after workaround.

Crash trace:

-[NSNib _initWithNibNamed:bundle:options:]
-[NSViewController _nibWithName:bundle:]
-[NSViewController loadView]
Workaround

The following changes make it work on macOS 13, but we don't fully understand why they're only needed on macOS 13:

  1. Replace super.loadView() with self.view = NSView() in TextViewController, FindViewController, SuggestionViewController

  2. Move styleTextView/ScrollView/MinimapView() before FindViewController creation in TextViewController.loadView()

See: https://github.com/nekohasekai/CodeEditSourceEditor/commit/941f378

主要語言
Swift
星號
720
分支
162
PR 合併指標
30 天內沒有已合併 PR

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

CodeEditApp/CodeEditSourceEditor 的其他 Issue

查看 CodeEditApp/CodeEditSourceEditor 的全部 Issue

相似的 Issue

更多 Swift Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。