Skip to content
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

greenlet.error: cannot switch to a different thread #254

Closed
phmarek opened this issue Apr 14, 2017 · 3 comments
Closed

greenlet.error: cannot switch to a different thread #254

phmarek opened this issue Apr 14, 2017 · 3 comments

Comments

@phmarek
Copy link

phmarek commented Apr 14, 2017

The python child processes crash (more often than not) with this error:

12852 08:57:04.770080 write(1, "\224\1\0\332\2&Traceback (most recent call last):\n
  File \"/usr/local/lib/python3.5/dist-packages/neovim/msgpack_rpc/async_session.py\", line 75, in _on_message\n
    self._handlers.get(msg[0], self._on_invalid_message)(msg)\n
  File \"/usr/local/lib/python3.5/dist-packages/neovim/msgpack_rpc/async_session.py\", line 96, in _on_response\n
    self._pending_requests.pop(msg[1])(msg[2], msg[3])\n
  File \"/usr/local/lib/python3.5/dist-packages/neovim/msgpack_rpc/session.py\", line 150, in response_cb\n
    gr.switch(err, rv)\n
greenlet.error: cannot switch to a different thread\n
\300", 557 <unfinished ...>

This results in the famous Invalid channel "1" error message in neovim, which is very annoying.

See also neovim/neovim#6249; but it seems to be related with the python client, so I'm copying the error here.

@bfredl
Copy link
Member

bfredl commented Apr 14, 2017

Please try #255. There would still be an error, but hopefully a more helpful traceback and not crashing the client.

@mcmire
Copy link

mcmire commented Jul 12, 2018

Just ran into this issue. Would love there to be a solution to this as Python support in Neovim seems broken otherwise.

@justinmk
Copy link
Member

Addressed by #255

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants