Vimr: coc.nvim causes vimr to instantly close the window

Created on 11 Dec 2019  ·  16Comments  ·  Source: qvacua/vimr

With the following minimal .vimrc, where only coc.nvim is enabled via vim-plug, the VimR window is closed right after starting the app. It doesn't crash, it still sits running in the dock, but when I click the app icon it shows for less than a second and is closed again.

call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
call plug#end()

Is there any way at all to get VimR to give me anything like a log file?

I'm using Version 0.29.0-329 installed via brew on Catalina 10.15.1.

Most helpful comment

I'm seeing this also, but only in .29 -- .28 doesn't have this same issue.

All 16 comments

It doesn't do this for me. Instead, it hangs when I use coc-vimtex. I mean when I type anything and press ESC. not sure how to debug. CocLog (on debug) is quite useless. Quite frustrating all this shit.

It only happens in vimr and not in nvim in terminal (0.5 at least).

Is there any more info I can provide to help get this fixed? Looks like I'm not the only one having this problem.

For what it's worth, I only started seeing this after I upgraded from Mojave (10.14) to Catalina (10.15)

I'm having the same issue.

I'm seeing this also, but only in .29 -- .28 doesn't have this same issue.

Same issue here. 0.29 crashes immediately with coc. I don't know how to access crash logs. My coc config is pretty minimal. Good to know I'm not the only one with this problem.

I'll look into it, but it will take some time. Currently, my free time is somewhat limited. :(

Hm.. I cannot reproduce this issue. I did the following:

  • Delete ~/.vim
  • Replace my ~/.config/nvim/init.vim with the minimal config of @lukad
  • Open VimR and do PlugInstall
  • Close the VimR window and open another VimR window.

I'm on 10.15.2 (and using node 13.6.0 and yarn 1.21.0).

Hm.. I cannot reproduce this issue. I did the following:

  • Delete ~/.vim
  • Replace my ~/.config/nvim/init.vim with the minimal config of @lukad
  • Open VimR and do PlugInstall
  • Close the VimR window and open another VimR window.

I'm on 10.15.2 (and using node 13.6.0 and yarn 1.21.0).

Tried it right now on 10.15.2, node 13.1.0 and yarn 1.21.1. Right after entering :PlugInstall the plugin installation caused the program to quit. It left a vimr application open, but cmd-alt-tabbing to it causes a vimr instance to pop up and immediately close, exactly as reported in the issue. Installed node 13.6.0 with nvm, switched to it, re-did the whole setup, and I still see the issue. Vimr version is 0.29.0-p329.

Edit: in latest snapshot SNAPSHOT-332, the issue is different. The vimr window doesn't close anymore right after loading, but it remains unresponsive. It seems to load the UI correctly, all text is rendered correctly, but no input either by keyboard or mouse actually cause any change. Vimr CPU usage is close to 100% and it doesn't respond to cmd-q either - I have to kill -9 it.

I see exactly what @metalelf0 saw with snapshot 332. I tried an empty Coc configuration file, and VimR still hangs. I am installing coc with: Plug 'neoclide/coc.nvim', {'branch': 'release'}. I'm not doing any other config. I can't think of anything in my config that could be different than the default config.
When Coc installs, it compiles its maple and python dynamic modules with rust. Not sure if there is a conflict happening between the compiled binaries and VimR.

I did get a stack trace from VimR so maybe this will help https://gist.github.com/mrinterweb/dabf6d575a9abb7b7a82e462aa465503

I did not know coc.nvim until now, but it's awesome. I now must fix this bug... :)

I could reproduce the issue (as described by @metalelf0). The problem was some code-signing issue. TBH, I don't know why there was a problem and why it is fixed now by https://github.com/qvacua/vimr/commit/765f2c43d7c2396f64f85dd08565c045ed9dbeaf. Please try SNAPSHOT-334.

Works for me! ⭐️

Thank you for this fix. Good to be using vimr again.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hakamadare picture hakamadare  ·  4Comments

pjg picture pjg  ·  8Comments

romaninsh picture romaninsh  ·  7Comments

numbcoder picture numbcoder  ·  3Comments

qvacua picture qvacua  ·  7Comments