macvim-dev / macvim-dev/macvim

MacVim opens from Terminal (mvim) but does not render interface from Finder

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

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

主要言語
Vim Script
スター
7.9k
フォーク
691
PR マージ指標
30日以内にマージされた PR はありません

説明

  • macOS Big Sur 11.1
  • MacVim Custom Version 8.2.2164 (169)
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Dec 19 2020 21:23:05)
macOS version
Included patches: 1-2164
Compiled by root@Mac-1608412769109.local
Huge version with MacVim GUI.

This is macvim: 8.2.2164,169 (auto_updates) installed as a cask from Homebrew.

When I launch MacVim using the mvim script from Terminal, it launches the app and renders a GUI window. Everything is as it should be.

But when launching from Finder (either Cmd-space and typing MacVim.app, or double clicking the app bundle from the Applications folder, the app runs; it creates an icon in the dock, it presents a menu, but it doesn't render a window for the editor. Cmd-O opens a dialog to select a file to open, but opening a file does not render an editor window for the file. The Window menu does not list any open app windows. It's running and responding appropriately, but not rendering a window when launched from Finder.

I've seen this behavior in several macOS releases now over the years. It's sporadic. When the issue occurs, it's frustrating and I move on, but at some point I switch back to the MacVim task and open a new window, and it just works as if there was never an issue.

As an experiment I backed up and removed my existing .vim/, .viminfo and .vimrc which are customized. Afterward, MacVim launched correctly (rendered windows) from Finder. I'll review settings but it's not clear to me why a customization would cause failures running from finder vs. running from start script in Terminal.

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

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

はじめの一歩

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

調査の方向性

まず、mvim スクリプトから起動した MacVim と、Finder から起動した MacVim.app を比較し、報告されている .vim/、.viminfo、.vimrc のカスタマイズを主な変数として使用します。ユーザーの設定でウィンドウが表示されない挙動を再現し、その後、どのカスタマイズまたは起動コンテキストの違いによってエディターウィンドウがレンダリングされないのかを特定し、無関係な設定を削除せずに Finder からの起動が機能することを確認します。

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

評価

技術スタック
macos, vim
領域
desktop
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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