-
Notifications
You must be signed in to change notification settings - Fork 34
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
Error detected while processing function remote#define#request: #11
Comments
Thanks for reporting! This seems to be caused by a similar initialization bug as #10. Do you mind sharing which OS and neovim frontend you are using? |
I'm using ArchLinux and plain neovim without any frontends. |
Odd, I'm using the exact same setup and don't experience the bug.
|
It boiled down to this. I can't minimize it any further. If I remove LanguageClient or far, the error goes away: set rtp+=~/.fzf
if &compatible
set nocompatible
endif
call plug#begin('~/.vim/plugged')
Plug 'numirias/semshi'
Plug 'autozimu/LanguageClient-neovim'
Plug 'brooth/far.vim'
call plug#end()
Sure. I ran this command when I was bisecting my vimrc as well. (reduce vimrc, start neovim to update remote plugins, start neovim again to check). |
I couldn't reproduce the bug with your config. There seems to be some race condition during initialization. However, I modified initialization (83f56bf) so that Semshi doesn't assume a particular event order anymore. Does that solve the problem for you? |
Thank you! It helped! On a side note (and sorry for putting all requests into the same issue), would it possible to have:
|
Thanks for your help resolving this bug!
Does that enable the workflow you had in mind? |
I'm sorry you're still having issues. Does the It's odd because the message indicates that the So it appears like neovim doesn't register the plugin's handlers in time to handle the event. Given that you also got
which is related to a different Python 3 plugin, could this be a bug in the neovim Python client? (Or do you only get any of those errors when you use it in conjunction with Semshi?)
I thought about that one. :) You can set the option |
No worries! I appreciate very much your desire to help and the effort you put into sorting things out!
Hmm, it looks like yes, all the time when Semshi is on. I think it didn't appear either when I forgot to run
That is correct. Only after installing Semshi I started to see these messages. Never seen 'em before.
Is there anything I can do to validate this hypothesis? Maybe it surfaces itself only after a certain number of plugins that rely on UpdateRemotePlugins command? Anyway, here is my list of such plugins (I think), maybe you could try different combinations of them and see whether the error shows up: set rtp+=~/.fzf
if &compatible
set nocompatible
endif
call plug#begin('~/.vim/plugged')
Plug 'numirias/semshi'
Plug 'autozimu/LanguageClient-neovim'
Plug 'brooth/far.vim'
Plug 'raghur/vim-ghost', {'do': ':GhostInstall'}
Plug 'arakashic/chromatica.nvim'
Plug 'Shougo/deoplete.nvim'
call plug#end()
"let mapleader=","
"let g:semshi#excluded_buffers = ['*']
"nnoremap <Leader>z :Semshi toggle<cr>
let g:semshi#mark_selected_nodes = 2 And also here is my complete vimrc: https://gist.github.com/balta2ar/71abb871416bb771b6259223c464e67b BTW, since the original message neovim has been released, so I'm on 0.3.0 version now. |
Great, I can now repro with your minimal config and exactly these three plugins: call plug#begin('~/.vim/plugged')
Plug 'numirias/semshi'
Plug 'autozimu/LanguageClient-neovim'
Plug 'brooth/far.vim'
call plug#end() All three share in common that they are Python 3 plugins and I observed that removing any single one of them stops the error. I also created a dummy plugin ( import neovim
@neovim.plugin
class Plugin:
def __init__(self, vim):
self._vim = vim
@neovim.autocmd('BufEnter', pattern='*', sync=True)
def foo(self):
self._vim.out_write('hey\n') (You'd load this via e.g. Enabling that plugin instead of Semshi shows the exact same behavior (again, unless you disable one of the others):
To me this indeed hints at a problem on Neovim's side. |
@balta2ar Unless you think this can be fixed in Semshi, I'd go ahead and file a bug at neovim/python-client. |
Sure! Do you mind leaving this open to keep the paper trail until there is more information on the issue? |
Just want to share that I have the same issue:
I use the same neovim, tmux, zsh config for my local Mac and Linux remote machines, I only have this issue running on my MacOS Mojave. |
@lkhphuc Thanks for noting. Are you using Neovim in the terminal, or a particular frontend? Do you get the error consistently or just sometimes? I still think this may be caused by a race condition in the Neovim Python client. If you like to help get it resolved, you might want to add you thoughts to neovim/pynvim#341. In particular, it would be interesting to see if you can reproduce the error with the methods I described there (which would also show that the bug can be triggered without Semshi). |
Sorry for late reply.
I use Neovim on Therm terminal (a minimal fork of iTerm 2), and it happens every time I start typing in a python file and it will not stop until I quit neovim. I will check out the issue you mentioned. I really like semshi and it's very annoying that I can't use it locally. Hope to get this issue resolved soon. |
@numirias neovim/pynvim#341 (comment) I can reproduce the problem over there. |
Hm, I haven't seen this error in a while on neither of my two machines, even before the mentioned pull request. I'll update python-neovim and I'll keep an eye on it. |
Thank, I updated everything and can now use Semshi again. |
I am experiencing exactly this issue again right now. Has anything changed that this happens again? |
#17 (comment) mentioned "Next Nvim release 0.3.2 (+ accompanying pynvim release) will fix this." |
Hi! I get this when I start neovim (0.2.2) and the latest semshi:
And then this:
The text was updated successfully, but these errors were encountered: