More macOS 13 compatibility issues
還沒有人認領這個 Issue。
評估
研究方向
從 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:
-
Replace
super.loadView()withself.view = NSView()inTextViewController,FindViewController,SuggestionViewController -
Move
styleTextView/ScrollView/MinimapView()beforeFindViewControllercreation inTextViewController.loadView()
See: https://github.com/nekohasekai/CodeEditSourceEditor/commit/941f378
- 主要語言
- Swift
- 星號
- 720
- 分支
- 162
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
CodeEditApp/CodeEditSourceEditor 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 84/100
CodeEditApp/CodeEditSourceEditor#377 · 1 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 76/100
CodeEditApp/CodeEditSourceEditor#376 · 1 則留言 ·
-
難度 1/5 1-3 小時 新手友好度 68/100
-
難度 3/5 1-2 天 新手友好度 68/100
CodeEditApp/CodeEditSourceEditor#378 · 1 則留言 ·
-
難度 4/5 3-5 天 新手友好度 32/100
查看 CodeEditApp/CodeEditSourceEditor 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 75/100
-
area:general bug P1 security
難度 2/5 1-3 小時 新手友好度 75/100
uttrflow/uttrflow-swift#1333 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 2/5 1-3 小時 新手友好度 75/100
maxgoedjen/secretive#840 ·
-
難度 2/5 1-3 小時 新手友好度 88/100
manaflow-ai/cmux#13763 ·