Skip to content

error: get_line_byte_from_position (a nil value) #1565

Description

@IrisRainbow7

Describe the bug

An error attempt to call field '_get_line_byte_from_position' (a nil value) occurs in places where the lsp.util._get_line_byte_from_position function is used, such as :Lspsaga peek_definition.

This is because the _get_line_byte_from_position function has been removed from Neovim. It should use vim.pos instead.

neovim/neovim@a7f09db

Steps to reproduce

  1. use Neovim head
  2. :Lspsaga peek_definition

Expected behavior

No error should occur

Neovim version (nvim -v)

NVIM v0.13.0-dev-576+g71c72c3409

lspsaga commit

3e33a6a

Terminal name/version

wezterm

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions