nvimdev / nvimdev/lspsaga.nvim

Closing buffer while 'Outline' is open throws errors

Open
#1,317 16 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
14:29:10 msg_show Error executing lua callback: ...ocal/share/nvim/lazy/lspsaga.nvim/lua/lspsaga/window.lua:154: 'width' key must be a positive Integer
stack traceback:
	[C]: in function 'nvim_open_win'
	...ocal/share/nvim/lazy/lspsaga.nvim/lua/lspsaga/window.lua:154: in function 'new_float'
	...re/nvim/lazy/lspsaga.nvim/lua/lspsaga/symbol/outline.lua:351: in function 'create_preview_win'
	...re/nvim/lazy/lspsaga.nvim/lua/lspsaga/symbol/outline.lua:423: in function <...re/nvim/lazy/lspsaga.nvim/lua/lspsaga/symbol/outline.lua:408>
Steps to reproduce
  1. open a file
  2. enable outline
  3. close that file
Expected behavior

I expect that the outline should just close alongside that file. Not throwing errors.

Neovim version (nvim -v)

latest

lspsaga commit

latest

Terminal name/version

kitty

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 by opening a file, enabling Outline, and closing the file. Read lua/lspsaga/symbol/outline.lua around create_preview_win and lua/lspsaga/window.lua:154, following the nvim_open_win traceback. Done means the Outline closes with its buffer without reporting the width-key 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
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.