carlitux / deoplete-ternjs

deoplete.nvim source for javascript
MIT License
277 stars 24 forks source link

Request from non-main thread #89

Closed ctfrancia closed 4 years ago

ctfrancia commented 4 years ago

I originally posted this here but was corrected that it belongs here. Basically it is nearly impossible for me to effectively type text in insert mode because every time a key is pressed I get bombarded with the error:

Request from non-main thread.
Requests from different threads should be wrapped with nvim.async_call(cb, ...)
  File "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/christian.francia/.config/nvim/plugged/deoplete-ternjs/rplugin/python3/deoplete/sources/ternjs.py", line 336, in completation
    self.vim.command('call deoplete#auto_complete()')
  File "/Users/christian.francia/Library/Python/3.8/lib/python/site-packages/pynvim/api/nvim.py", line 287, in command
    return self.request('nvim_command', string, **kwargs)
Request from non-main thread.
Requests from different threads should be wrapped with nvim.async_call(cb, ...)
  File "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/christian.francia/.config/nvim/plugged/deoplete-ternjs/rplugin/python3/deoplete/sources/ternjs.py", line 336, in completation
    self.vim.command('call deoplete#auto_complete()')
  File "/Users/christian.francia/Library/Python/3.8/lib/python/site-packages/pynvim/api/nvim.py", line 287, in command
    return self.request('nvim_command', string, **kwargs)

currently it's unusable and can't use vim because of this error. I have done :PlugUpdate to make sure that I have the newest version, but, didn't help. This error message started today

I have closed all my terminals, restarted neovim etc. but still there.

ctfrancia commented 4 years ago

same issue as #88