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

menu.lua:68: Cursor position outside buffer #416

Closed
2 tasks done
stefanboca opened this issue Dec 2, 2024 · 1 comment
Closed
2 tasks done

menu.lua:68: Cursor position outside buffer #416

stefanboca opened this issue Dec 2, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@stefanboca
Copy link
Collaborator

Make sure you have done the following

  • I have updated to the latest version of blink.cmp
  • I have read the README

Bug Description

Got this error somehow:
image
I wasn't doing anything unusual, but I can't reproduce this.

raw text:

 Error executing vim.schedule lua callback: ...lazy/blink.cmp/lua/blink/cmp/completion/windows/menu.lua:68: Cursor position outside buffer
stack traceback:
	[C]: in function 'nvim_win_set_cursor'
	...lazy/blink.cmp/lua/blink/cmp/completion/windows/menu.lua:68: in function 'open'
	...lazy/blink.cmp/lua/blink/cmp/completion/windows/menu.lua:55: in function 'open_with_items'
	...re/nvim/lazy/blink.cmp/lua/blink/cmp/completion/init.lua:40: in function 'callback'
	.../nvim/lazy/blink.cmp/lua/blink/cmp/lib/event_emitter.lua:28: in function 'emit'
	...re/nvim/lazy/blink.cmp/lua/blink/cmp/completion/list.lua:73: in function 'show'
	...re/nvim/lazy/blink.cmp/lua/blink/cmp/completion/init.lua:32: in function <...re/nvim/lazy/blink.cmp/lua/blink/cmp/completion/init.lua:29>

Relevant configuration

menu = {
  winblend = vim.o.pumblend,
  draw = {
    columns = { { "kind_icon" }, { "label", "label_description", gap = 1 }, { "kind" } },
  },
},

neovim version

NVIM v0.11.0-dev+1261-gab9cfc4dc Build type: RelWithDebInfo LuaJIT 2.1.1720049189

blink.cmp version: branch, tag, or commit

main (4559ec5)

@stefanboca stefanboca added the bug Something isn't working label Dec 2, 2024
@s-cerevisiae
Copy link

Encountered the same thing here, maybe it has something to do with window size or triggering completion at the right edge of the screen.

@Saghen Saghen closed this as completed in bb5407d Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants