supermaven-inc / supermaven-nvim

The official Neovim plugin for Supermaven
https://supermaven.com/
MIT License
304 stars 16 forks source link

Index Out Of Bounds Exception #16

Closed wstewarttennes closed 1 month ago

wstewarttennes commented 1 month ago

Getting this after fresh install and moving around in a python file:

Error executing vim.schedule lua callback: ...e/nvim/lazy/supermaven-nvim/lua/supermaven-nvim/util.lua:100: Index out of bounds
stack traceback:
        [C]: in function 'nvim_buf_get_text'
        ...e/nvim/lazy/supermaven-nvim/lua/supermaven-nvim/util.lua:100: in function 'get_cursor_prefix'
        ...maven-nvim/lua/supermaven-nvim/binary/binary_handler.lua:288: in function 'poll_once'
        ...maven-nvim/lua/supermaven-nvim/binary/binary_handler.lua:24: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>
wstewarttennes commented 1 month ago

so far it seems to only show when editing at the end of a file I believe

sm-victorw commented 1 month ago

I'm having difficulty reproducing this, does it only occur after a fresh install?