Closed the-c0d3r closed 6 years ago
Is that message triggered after you press :q
on an buffer?
Or is that triggered by an autocmd which executes exit
?
I believe it is after pressing :q
on a buffer, doesn't matter if file is opened or empty buffer. I just checked my vimrc, there is no autocmd mapped for exit
.
Normally this message is for indicating NCM is not working.
When exiting, NCM will know it's normal shutdown by autocmd VimLeavePre * let s:leaving=1
, the s:leaving
will supress the message.
If the message is shown, it means the autocmd
is somehow not working.
Hmm... the autocomplete function is working for me. It's just showing that message. Is there any other way to suppress the message?
You could comment https://github.com/roxma/nvim-completion-manager/blob/6eff8ba5faa561a2929e157be1e1a091e58ad8ad/autoload/cm.vim#L445 for now.
I'll look into this.
Could you reproduce this with a minimal vimrc?
What system are you using?
I just tested. It seems like it's not reproducible with a minimal vimrc (only containing neovim complete manager plugin). Then I think it means there's something wrong with my vimrc that overwrites the autocmd. But as far as I can see, all autocmd doens't use VimExit, only VimEnter, and my vimrc only calls a function to clear whitespace on save.
hmm...
You could check the list of registered autocmd by :autocmd VimLeavePre
I didn't know you could check that. Thanks. Anyway, Seems like I do have a few autocmd mapped to VimLeavePre, it's done by some plugins. I've attached the image, is there a way to make it work?
I've pushed an update. Please test the latest version.
If it's still not working, use this config to enable more verbose logging.
let $NVIM_PYTHON_LOG_FILE="/tmp/nvim_log"
let $NVIM_NCM_LOG_LEVEL="DEBUG"
let $NVIM_NCM_MULTI_THREAD=0
let $NVIM_PYTHON_LOG_LEVEL="DEBUG"
Thanks a lot. The latest commit solved the problem.
note: not sure if my upgrading of neovim solved it or your update.
Like the title suggests, whenever I close neovim, it will show me that message
nvim-completion-manager core channel terminated%
Is there a way to stop the message from appearing on the console? It is annoying to see it everytime I close nvim. Below is the debug logs generated. Please tell me if my completion manager installation/configuration is broken or how to disable the message. Thanks