Skip to content

Errors when inserting on the first line of a file #240

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

Closed
2 tasks done
eero-lehtinen opened this issue Nov 2, 2024 · 2 comments
Closed
2 tasks done

Errors when inserting on the first line of a file #240

eero-lehtinen opened this issue Nov 2, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@eero-lehtinen
Copy link
Contributor

Make sure you have done the following

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

Bug Description

Autocomplete window just crashes when trying to complete on the first line of a file. On other lines it is fine.

Error executing vim.schedule lua callback: ...im/lazy/blink.cmp/lua/blink/cmp/windows/autocomplete.lua:149: Invalid 'window': Expected Lua number 
stack traceback: 
        [C]: in function 'nvim_win_set_cursor' 
        ...im/lazy/blink.cmp/lua/blink/cmp/windows/autocomplete.lua:149: in function 'open_with_items' 
        .../.local/share/nvim/lazy/blink.cmp/lua/blink/cmp/init.lua:57: in function <.../.local/share/nvim/lazy/blink.cmp/lua/blink/cmp/init.lua:51> 

Relevant configuration

No response

neovim version

NVIM v0.11.0-dev-1035+g50e63c817

blink.cmp version: branch, tag, or commit

main (055b943)

@eero-lehtinen eero-lehtinen added the bug Something isn't working label Nov 2, 2024
@andrewferrier
Copy link

+1. Confirmed I see this issue also. Occurs only on the first line of files.

@andrewferrier
Copy link

I haven't had time to fully bisect it, but it looks like the problem was introduced between b0815e4 (where it works) and 055b943 (where it doesn't).

@Saghen Saghen closed this as completed in 4b3fd8f Nov 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