Macvim: The "open" command (when called from MacVim) is slower since MacOS Mojave

Created on 19 Oct 2018  路  25Comments  路  Source: macvim-dev/macvim

The "open" command (when called from MacVim) is slower since MacOS Mojave.

I have eg these lines in my .vimrc:

" Open File:
:map gf :!gvim <cfile><CR>

" Go to URL ("Go to Link"):
:map gl :!open -a "Google Chrome" "<cWORD>"<CR>
10.14 Mojave

Most helpful comment

The next binary release will be signed by an Apple Developer ID which will (for some reason) fix this. Use the tagged milestone in this issue to track progress and ETA.

All 25 comments

@tobireif I can confirm this is happening. I don't have High Sierra installed to test unfortunately, but was it instantaneous before Mojave?

Thanks for investigating!

Yes, it used to be very usable in a fast workflow. Now it's slow which is an issue, eg when I try to open several links in a row ...

I tried building MacVim with the latest changes under Xcode 10 and the issue seems to be gone somewhat. I don't know where the issue lied or whether some change actually fixed it or not, but after next time we do a release I'll ping here again to see if you see that issue.

Thanks!

This bug was fixed for me on mojave 10.14.1 (18B75) .

updated: oops, it did not.

(Yep, the issue persists here as well, on the same OS version.)

Perhaps someone could report it to Apple at https://bugreport.apple.com/web/ .

Are you using homebrew or the distributed release binaries @tobireif ?

I had installed MacVim (quite a while ago) from https://github.com/macvim-dev/macvim/releases , and since then it updates itself.

Ok. I think the issue is somehow because MacVim is currently not signed by an Apple Developer ID, which鈥β爁or some reason means calling open is slow. I will investigate #517 to see if I can get an developer ID to sign it, plus see if Apple could fix the issue (there are users who use MacVim by building locally hence shouldn't be forced to self-sign their apps).

Sounds good!

I hope it will be possible to fix this 馃榾

I don't see this delay on Mojave, but then again I have SIP disabled and Gatekeeper set to allow everything.

I can confirm that opening windows via the app is definitely broken under 10.14.2. If I run mvim from the cli a new window opens up quickly. I have 2 macs I can test with one with 10.14.2 and one with 10.13.6. I install from Binaries mostly.

The next binary release will be signed by an Apple Developer ID which will (for some reason) fix this. Use the tagged milestone in this issue to track progress and ETA.

Great. I did some testing and installed 151 to the desktop. Launching from there is as expected, but when installed into applications, then it is slow. I repeated same test with 153 and the behavior is the same. From the Desktop - speedy, from Applications - slow if at all.

Hmm, FWIW that's not the case for me. Compiled for 10.13 or signed application: Fast either way (desktop or Applications). Unsigned app built for 10.14: Slow either way. I don't think the behavior manifests depending on where you are running the app bundle form so I'm surprised you saw that.

The next binary release will be signed by an Apple Developer ID which will (for some reason) fix this.

Thank you!

I currently have the latest MacVim version "Custom Version 8.1.577 (153)". Which version should fix the issue? Thanks in advance :)

You need 154 which is not released yet. Use the tagged milestone to track the date it will be released (which is within this month).

Thanks!

Latest release (https://github.com/macvim-dev/macvim/releases/tag/snapshot-154) now signs the app. The open delay should be gone.

Thanks! I think the severe delay is gone. (Right at the start after opening a link there still is a certain amount of lag, but I don't know whether that's fixable.)

Hmm I don't see any delays anymore on my end. Let me know if it's really long. It should behave similar to older non-Mojave versions.

The issue where it takes really long (since Mojave) definitely is fixed. Thank you!

Was this page helpful?
0 / 5 - 0 ratings