nvimdev / nvimdev/lspsaga.nvim

throw unknown error when trying previewing definition

Open
#1,370 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Lua
Stars
3.8k
Forks
308
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

When I use gp(custom keymap) to preview definition in lua file, it throws below error

image

Steps to reproduce
  1. use any lua file for test
  2. press gp
  3. get error
Expected behavior

show the definition of var/function/class

Neovim version (nvim -v)

NVIM v0.10.0-dev-1988+g1ef60ea65

lspsaga commit

e71cddc9d4c1dd97c026814777b810df988daed2

Terminal name/version

wezterm 20230712-072601-f4abf8fd

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in a Lua file using the custom gp keymap and the preview-definition action, recording the unknown-error output shown in the report. Trace the preview-definition entry point in lspsaga and compare the failing path with the expected definition display. Done means gp previews a Lua variable, function, or class definition without throwing the error.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.