bolt.nvim icon indicating copy to clipboard operation
bolt.nvim copied to clipboard

NvimError: Cursor position outside buffer

Open wallace11 opened this issue 4 years ago • 6 comments

  1. Installed via Plug 'ripxorip/bolt.nvim', { 'do': ':UpdateRemotePlugins' }
  2. NVIM v0.4.2
  3. Getting the following error upon typing :Bolt:
Error detected while processing function remote#define#request:
line    2:
Error invoking '~/.local/share/nvim/plugged/bolt.nvim/rplugin/python3/vim_tc_explorer:autocmd:TextChangedI:TC_Input' on
 channel 3 (python3-rplugin-host):
error caught in request handler '~/.local/share/nvim/plugged/bolt.nvim/rplugin/python3/vim_tc_explorer:autocmd:TextChan
gedI:TC_Input []':
Traceback (most recent call last):
  File "~/.local/share/nvim/plugged/bolt.nvim/rplugin/python3/vim_tc_explorer/__init__.py", line 128, in insert_changed

    self.TcExplorer.handle_input()
  File "~/.local/share/nvim/plugged/bolt.nvim/rplugin/python3/vim_tc_explorer/vim_tc_explorer.py", line 554, in handle_
input
    exp.window.cursor = (exp.selected + exp.headerLength, 0)
  File "/usr/lib/python3.7/site-packages/pynvim/api/window.py", line 27, in cursor
    return self.request('nvim_win_set_cursor', pos)
  File "/usr/lib/python3.7/site-packages/pynvim/api/common.py", line 51, in request
    return self._session.request(name, self, *args, **kwargs)
  File "/usr/lib/python3.7/site-packages/pynvim/api/nvim.py", line 182, in request
    res = self._session.request(name, *args, **kwargs)
  File "/usr/lib/python3.7/site-packages/pynvim/msgpack_rpc/session.py", line 102, in request
    raise self.error_wrapper(err)
pynvim.api.nvim.NvimError: b'Cursor position outside buffer'
Press ENTER or type command to continue

wallace11 avatar Nov 04 '19 00:11 wallace11

Hi thanks for the bug report. I have not seen this behavior before. Is this report from a vanilla NeoVim or with other plugins running as well?

ripxorip avatar Nov 07 '19 13:11 ripxorip

Hey, Sorry for the late response. I could reproduce this issue with no other plugins installed.

wallace11 avatar Nov 18 '19 14:11 wallace11

Are you still on the same version? I cant reproduce it no matter what I try. Are you running the latest version?

ripxorip avatar Apr 22 '21 10:04 ripxorip

Error detected while processing function remote#define#request:
line    2:
Error invoking '/home/anuvyklack/.local/share/nvim/site/pack/packer/start/bolt.nvim/rplugin/python3/vim_tc_explorer:autocmd:TextChangedI:TC_Input' on channel 3 (python3-rplugin-hos
t):
error caught in request handler '/home/anuvyklack/.local/share/nvim/site/pack/packer/start/bolt.nvim/rplugin/python3/vim_tc_explorer:autocmd:TextChangedI:TC_Input []':
Traceback (most recent call last):
  File "/home/anuvyklack/.local/share/nvim/site/pack/packer/start/bolt.nvim/rplugin/python3/vim_tc_explorer/__init__.py", line 128, in insert_changed
    self.TcExplorer.handle_input()
  File "/home/anuvyklack/.local/share/nvim/site/pack/packer/start/bolt.nvim/rplugin/python3/vim_tc_explorer/vim_tc_explorer.py", line 556, in handle_input
    exp.window.cursor = (exp.selected + exp.headerLength, 0)
  File "/usr/lib/python3/dist-packages/pynvim/api/window.py", line 27, in cursor
    return self.request('nvim_win_set_cursor', pos)
  File "/usr/lib/python3/dist-packages/pynvim/api/common.py", line 58, in request
    return self._session.request(name, self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/pynvim/api/nvim.py", line 182, in request
    res = self._session.request(name, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/pynvim/msgpack_rpc/session.py", line 104, in request
    raise self.error_wrapper(err)
pynvim.api.common.NvimError: Cursor position outside buffer

Seem like I have the same problem. I am running the latest nightly build of Neovim, with pynvim version: 0.4.1

anuvyklack avatar May 15 '21 09:05 anuvyklack

Hmm.. can you try to reproduce in a docker environment? Or can I? What system are you on?

ripxorip avatar May 19 '21 13:05 ripxorip

I don't know how to work with docker. I can, if you explain how.

I am using Pop!_OS 20.10 which is Ubuntu 20.10 with a different gnome-shell. I'm using neovim nightly with python3-pynvim package version 0.4.1-2 from Ubuntu apt repo.

anuvyklack avatar May 19 '21 17:05 anuvyklack