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

NvimError: Cursor position outside buffer #10

Open
wallace11 opened this issue Nov 4, 2019 · 6 comments
Open

NvimError: Cursor position outside buffer #10

wallace11 opened this issue Nov 4, 2019 · 6 comments

Comments

@wallace11
Copy link

  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
@ripxorip
Copy link
Owner

ripxorip commented Nov 7, 2019

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?

@wallace11
Copy link
Author

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

@ripxorip
Copy link
Owner

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

@anuvyklack
Copy link

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

@ripxorip
Copy link
Owner

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

@anuvyklack
Copy link

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.

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

3 participants