Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opening ANY Telescope picker with chrisbra/NrrwRgn SOFT-LOCKS nvim #3377

Open
nKUhrF6D opened this issue Dec 6, 2024 · 0 comments
Open

Opening ANY Telescope picker with chrisbra/NrrwRgn SOFT-LOCKS nvim #3377

nKUhrF6D opened this issue Dec 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@nKUhrF6D
Copy link

nKUhrF6D commented Dec 6, 2024

Description

Run the reproduction steps and you'll get an error from Telescope relating to some invalid buffer ID. The editor will then be soft-locked. The display is bugged and you have to restart.

Neovim version

NVIM v0.10.2
Build type: RelWithDebInfo
LuaJIT 2.1.1727870382

Operating system and version

Linux

Telescope version / branch / rev

master

checkhealth telescope

==============================================================================
telescope: health#telescope#check

Checking for required plugins ~
- OK plenary installed.
- WARNING nvim-treesitter not found. (Required for `:Telescope treesitter`.)

Checking external dependencies ~
- OK rg: found ripgrep 14.1.1
- WARNING fd: not found. Install [sharkdp/fd](https://github.com/sharkdp/fd) for extended capabilities

===== Installed extensions ===== ~

Steps to reproduce

  1. Install Plenary, Telescope and NrrwRgn,
  2. Start nvim,
  3. Type in text,
  4. Select it in visual mode,
  5. Run command :NR!
  6. Ensure that there is only one window open with the NrrwRegion buffer inside it,
  7. Try to run :Telescope files or any other picker,
  8. You will get the error described above and Neovim will soft-lock.

Expected behavior

That it doesn't soft-lock the editor.

Actual behavior

You get an error like the following, and the editor becomes soft-locked:

Error executing Lua callback: ...avigation/start/telescope.nvim/lua/telescope/pickers.lua:580: Invalid buffer id: 4
stack traceback:
        [C]: in function 'nvim_buf_set_lines'
        ...avigation/start/telescope.nvim/lua/telescope/pickers.lua:580: in function 'find'
        ...tart/telescope.nvim/lua/telescope/builtin/__internal.lua:1006: in function 'v'
        ...tart/telescope.nvim/lua/telescope/builtin/__internal.lua:1515: in function 'v'
        ...tion/start/telescope.nvim/lua/telescope/builtin/init.lua:587: in function <...tion/start/telescope.nvim/lua/telescope/builtin/init.lua:546>
        ...avigation/start/telescope.nvim/lua/telescope/command.lua:188: in function 'run_command'
        ...avigation/start/telescope.nvim/lua/telescope/command.lua:259: in function 'load_command'
        ...ack/navigation/start/telescope.nvim/plugin/telescope.lua:108: in function <...ack/navigation/start/telescope.nvim/plugin/telescope.lua:107>

You then have to run :qa! to exit and restart. The editor is rendered inoperable by the bug.

Minimal config

No config whatsoever is necessary to reproduce this issue.
@nKUhrF6D nKUhrF6D added the bug Something isn't working label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant