macvim-dev / macvim-dev/macvim
Unable to open new window
还没有人认领这个 Issue。
- 主要语言
- Vim Script
- 星标
- 7.9k
- 派生
- 691
- PR 合并指标
- 30 天内没有已合并 PR
描述
Hate to open this issue as I have no clue how to reproduce, and I currently have it fixed...for now...
Occasionally when I attempt to open MacVim, I'll get a single icon in the Dock for it (and the menu bar), but no window. It doesn't matter if I'm trying to open a blank file or passing in a file to open -- typically from an external app like Perforce/P4V. If I try to File > Open... and select a file, it will close the app down.
I tried looking in ~/Library/Logs for anything, but it doesn't look like it's writing anything there. At least not that I could find.
The only resolve I've found is to close the app, delete ~/viminfo and ~/.vimrc (or just rename to something like ~/vimrc), reopen MacVim. Then I can bring my ~/.vimrc back and things work fine again. For awhile.
I'm currently on 8.0.1420 (144), but I've encountered this on past versions as well. Usually my first step is to make sure I'm on the latest release. Let me know if there's something I should do now while it's still working to prep for the next time it happens. Or what I should look for next time it does.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先检查报告中的 MacVim 启动和 File > Open 行为,包括与 P4V 等外部应用的交互。比较 ~/viminfo 和 ~/.vimrc 存在时的行为与将它们临时重命名后的行为,并在下次出现问题时收集诊断信息。完成的标准是找到可复现的原因,并验证修复有效,或提供明确的诊断指导。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- macos, vim
- 领域
- desktop
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100