Significant delay when exiting from vim8 #52
Comments
two main causes:
I'll leave this issue open, and document this as known issue. |
There's a daemon flag I missed to set for some of the threads. I managed to fix this issue. It runs more smoothly now. |
Is there a minimal vimrc as bellow so that I can start with: set nocompatible
syntax on
filetype plugin indent on
set encoding=utf-8 fileencodings=ucs-bom,utf-8,gbk,gb18030,latin1 termencoding=utf-8
call plug#begin(expand('<sfile>:h') . '/plugged/')
Plug 'roxma/nvim-completion-manager'
if !has('nvim')
Plug 'roxma/vim-hug-neovim-rpc'
endif
call plug#end() Besides, It seems vim-hug-neovim-rpc is not working. In this case, use I've just fixed a python2 issue on vim-hug-neovim-rpc. Remember to update both plugin to the latest version before further testing. |
The minimal vimrc: set nocompatible
syntax on
filetype plugin indent on
set encoding=utf-8 fileencodings=ucs-bom,utf-8,gbk,gb18030,latin1 termencoding=utf-8
call plug#begin('/tmp/plugged')
Plug 'roxma/nvim-completion-manager'
if !has('nvim')
Plug 'roxma/vim-hug-neovim-rpc'
endif
call plug#end() $ export NVIM_PYTHON_LOG_FILE=nvim.log NVIM_PYTHON_LOG_LEVEL=DEBUG vim8
$ vim -U NONE -u vimrc There are three logs generated(see here):
The error still persists in Vim8. NeoVim just works well. |
I cannot reproduce it. But notice that similar error could be triggered by
Maybe part of the plugin is trying to start vim. In this case, try Enter vim8, wait for the error, do nothing, open another terminal, check the process tree with something like |
The issue doesn't show up by setting Is the issue above only related to my local environment from your point of view? Does |
I think it's printing internally, but the message fails to forward to NCM core and than forward to vim. You could try inspect the process tree anyway.
I think it is.
Generally peaking, a user cannot feel the difference.
|
Sorry, @roxma . Just realized that my last feedback (works in Vim8 using $ export NVIM_NCM_MULTI_THREAD=0
$ vim -U NONE -u vimrc Any tips? |
We're getting close, check the output of these commands
|
If the last two commands prints the wrong result, a workaround would be |
:python3 import sys
:python3 print(sys.executable)
/usr/local/bin/vim
:echo g:_cm_py3
/usr/local/bin/vim Not sure whether it's the wrong result, but Vim8 gets to work finally via |
I notice the requirement for Vim8 in README. I believe |
The requirements are updated after this issue is figured out. Have you updated both plugins to the latest version? |
With the latest version and |
There is a bit of lag when exiting from vim.
The text was updated successfully, but these errors were encountered: