Skip to content

Panic on :e %h (note missing colon) #2499

Description

@baraahomsi

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

Latest as in 1.10.2, not master.

Typing :e %h (maybe backspace on h and type it again) throws the following errors. The first does not appear in g< and messes up Neovim's UI.

thread '<unnamed>' panicked at /build/blink-fuzzy-lib-1.10.2-vendor/source-registry-0/frizbee-0.9.0/src/smith_waterman/simd/alignment_iter.rs:97:9: could not find max score in score matrix final row
vim.schedule callback: could not find max score in score matrix final row

I don't think this is a frizbee issue, and I'm not sure what part of the config (if this is an issue I brought upon myself) may have caused this.

If you can't repro, nix run my config. This issue happens on a more recent Nixpkgs version too (same blink.cmp version).

Relevant configuration

cmdline = {
  completion = {
    menu = { auto_show = false },
  },
},

completion = {
  accept = {
    auto_brackets = { enabled = false },
  },

  ghost_text = { enabled = true },

  menu = {
    auto_show = false,

    draw = {
      align_to = 'none',
      columns = {
        { 'label', 'label_description', gap = 1 },
      },
      snippet_indicator = ' ~',
    },

    max_height = vim.o.pumheight or 0,
    min_width = 1,
    scrollbar = false,
    scrolloff = 3,
  },
},

fuzzy = {
  prebuilt_binaries = { download = false },
  sorts = { 'exact', 'score', 'sort_text' },
  max_typos = function(_)
    return 1
  end,
},

keymap = {
  ['<C-n>'] = { 'show_and_insert', 'insert_next' },
  ['<C-p>'] = { 'show_and_insert', 'insert_prev' },
},

sources = {
  default = { 'buffer', 'lsp', 'path', 'snippets' },

  per_filetype = {
    query = { 'buffer', 'lsp', 'omni', 'path', 'snippets' },
  },

  providers = {
    buffer = {
      fallbacks = {},
    },

    lsp = {
      async = true,
      fallbacks = {},
    },

    path = {
      fallbacks = {},
    },
  },
},

neovim version

NVIM v0.12.1 Build type: Release LuaJIT 2.1.1741730670

blink.cmp version

v1.10.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfuzzyFiltering and sorting of completion items

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions