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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions