Skip to content
This repository was archived by the owner on Jan 3, 2024. It is now read-only.
This repository was archived by the owner on Jan 3, 2024. It is now read-only.

[BUG] Inlay hints: Index out of bounds error #349

@LeonKowarschickKenbun

Description

@LeonKowarschickKenbun

Recently, I've been getting the following error every once in a while, without a clearly identifiable cause:

    Error  10:59:34 msg_show.lua_error Error executing vim.schedule lua callback: ...nvim/lazy/rust-tools.nvim/lua/rust-tools/inlay_hints.lua:142: Index out of bounds
  stack traceback:
    [C]: in function 'nvim_buf_get_lines'
    ...nvim/lazy/rust-tools.nvim/lua/rust-tools/inlay_hints.lua:142: in function 'parse_hints'
    ...nvim/lazy/rust-tools.nvim/lua/rust-tools/inlay_hints.lua:168: in function 'handler'
    /usr/local/share/nvim/runtime/lua/vim/lsp.lua:1383: in function ''
    vim/_editor.lua: in function <vim/_editor.lua:0>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions