nvimdev / nvimdev/lspsaga.nvim
throw unknown error when trying previewing definition
Nobody has claimed this yet.
- 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
Steps to reproduce
- use any lua file for test
- press gp
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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