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

Issue when typing accents and copilot #1072

Open
2 tasks done
Alan-TheGentleman opened this issue Jan 24, 2025 · 2 comments
Open
2 tasks done

Issue when typing accents and copilot #1072

Alan-TheGentleman opened this issue Jan 24, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@Alan-TheGentleman
Copy link

Make sure you have done the following

  • Updated to the latest version of blink.cmp
  • Searched for existing issues and documentation (try <C-k> on https://cmp.saghen.dev)

Bug Description

Reference to: #878

Hi ! still happens it seems when using copilot.lua and blink-cmp-copilot, but it only happens if I type exactly the following Argentinian phrase: "1- cómo investigar como un campeón"

When it reaches "campeón" it panics. I'm using lazyvim with default settings.

Error executing vim.schedule lua callback: runtime error: Failed to acquire lock for frecency
stack traceback:
[C]: in function 'fuzzy'
...l/share/nvim/lazy/blink.cmp/lua/blink/cmp/fuzzy/init.lua:76: in function 'fuzzy'
...re/nvim/lazy/blink.cmp/lua/blink/cmp/completion/list.lua:113: in function 'fuzzy'
...re/nvim/lazy/blink.cmp/lua/blink/cmp/completion/list.lua:89: in function 'show'
...re/nvim/lazy/blink.cmp/lua/blink/cmp/completion/init.lua:53: in function <...re/nvim/lazy/blink.cmp/lua/blink/cmp/completion/init.lua:29>

I'm using lazy vim with default configurations and lazy extras

405145176-434fc26a-e688-4fc9-ab4c-29ab7fc9c630.mp4

Relevant configuration

neovim version

v0.10.2

blink.cmp version

v0.10.0

@Alan-TheGentleman Alan-TheGentleman added the bug Something isn't working label Jan 24, 2025
@pxwg
Copy link

pxwg commented Jan 24, 2025

You can try the latest commit of blink.cmp, the problem is solved in 93541e4
and the related issue is #936

@Saghen Saghen closed this as completed Jan 24, 2025
@Alan-TheGentleman
Copy link
Author

Alan-TheGentleman commented Jan 24, 2025

@Saghen hi ! thanks for the help and sorry I related the wrong one, I'm now using the mentioned commit and it fails ever harder. I can't even write in obsidian, just typing a character makes it failed:

Error executing vim.schedule lua callback: runtime error: Failed to acquire lock for frecency
stack traceback:
[C]: in function 'fuzzy'
...l/share/nvim/lazy/blink.cmp/lua/blink/cmp/fuzzy/init.lua:76: in function 'fuzzy'
...re/nvim/lazy/blink.cmp/lua/blink/cmp/completion/list.lua:113: in function 'fuzzy'
...re/nvim/lazy/blink.cmp/lua/blink/cmp/completion/list.lua:89: in function 'show'
...re/nvim/lazy/blink.cmp/lua/blink/cmp/completion/init.lua:53: in function <...re/nvim/lazy/blink.cmp/lua/blink/cmp/completion/init.lua:29>

More information:
○ blink.cmp
version 0.10.0
tag v0.10.0
branch main
commit 93541e4

○ blink.compat 
    version 2.2.0
    tag     v2.2.0
    branch  main
    commit  5ca8848

○ blink-cmp-copilot  blink.cmp 
    url    https://github.com/giuxtaposition/blink-cmp-copilot
    branch main
    commit 5d4ed42

blink.lua:

return {
  "saghen/blink.cmp",
  version = "*",
  dependencies = {
    { "saghen/blink.compat", lazy = true, version = "*" },
  },
  opts = {
    sources = {
      -- LazyVim as custom option copmpat to pass in external sources with blink.compat
      compat = { "obsidian", "obsidian_new", "obsidian_tags" },
    },
  },
}

@Saghen Saghen reopened this Jan 24, 2025
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

3 participants