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
-
难度 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 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
openwallet-foundation/multipaz#2028 ·