New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vim's job_start() does not work in MacVim and causes high CPU #272
Comments
My gut feeling is that this all-new jobs/channels stuff in core vim (which I've not had a chance to look at much since it doesn't interest me) is causing the backend vim process that MacVim runs to do things that stimulate messages to our frontend process at times where we didn't expect them, resulting in sadness. |
the root cause is, I guess, NetBeans support in MacVim. It has not been maintained anymore. And I'm the author of the patch😄 . I'll remove it and test it. |
Fixed in #278, but still |
I tested again with MacVim 7.4.1825 built via Homebrew.
The log looks like this when the job's output is logged:
And like this when the job's output isn't logged:
Using Having said all that, when I run jobs asynchronously in vim-gitgutter with the MacVim GUI, they now work :) |
job_start()
does not work in MacVim and causes high CPU
I have no idea about your demo.vim is correct or not. At least, current master has no issues in |
I was having the same problem, and it persists for me on master. I noticed this with the "dein" plugin manager when trying to update plugins. In the GUI, the first eight jobs get started (invoking git), but no job reports results, so the updating stalls at that point. It works fine in the terminal (and in gVim on Windows, too). The logs look pretty much like those posted by airblade. |
I confirm this solves the problem for me. Thank you! |
Steps to reproduce:
demo.vim
:mvim -u NONE -U NONE -N -S demo.vim
.:messages
.OutHandler: channel 0 open :: FILE
for each file in the current directory, followed byOutHandler: channel 0 closed :: DETACH
.cat channel.log
(in the shell).The messages and channel log show that the
out_cb
callback is never called. For some reason MacVim never starts to look for messages on the channels.Compare this to
mvim -v
where everything works as expected.I'm using MacVim 7.4.1795 built with Homebrew.
The text was updated successfully, but these errors were encountered: