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

Neovim crash on live_grep #2331

Closed
fibbo opened this issue Jan 17, 2023 · 1 comment
Closed

Neovim crash on live_grep #2331

fibbo opened this issue Jan 17, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@fibbo
Copy link

fibbo commented Jan 17, 2023

Description

When I use the live_grep within let's say the neovim repository and I start searching for files, eventually my nvim instances crashes. Most often i directly land back in the terminal, occasionally I see the assertion (running a debug build to investigate the issue).

Neovim version

NVIM v0.9.0-dev-726+gddd69a6c8
Build type: Debug
LuaJIT 2.1.0-beta3

Operating system and version

macOS 13.1

Telescope version / branch / rev

master

checkhealth telescope

telescope: require("telescope.health").check()

Checking for required plugins ~
- OK plenary installed.
- WARNING nvim-treesitter not found. 

Checking external dependencies ~
- OK rg: found ripgrep 13.0.0
- OK fd: found fd 8.6.0

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

Steps to reproduce

  1. nvim -nu minimal.lua
  2. Open a repository of choice
  3. :lua require('telescope.builtin').live_grep()
  4. Try to grep some random strings - it eventually always crashes for me

Expected behavior

Show the results if there are any. No crash

Actual behavior

nvim crashes hard, often without any message, sometimes I get an Assertion failed:

image

Minimal config

vim.cmd [[set runtimepath=$VIMRUNTIME]]
vim.cmd [[set packpath=/tmp/nvim/site]]
local package_root = '/tmp/nvim/site/pack'
local install_path = package_root .. '/packer/start/packer.nvim'
local function load_plugins()
  require('packer').startup {
    {
      'wbthomason/packer.nvim',
      {
        'nvim-telescope/telescope.nvim',
        requires = {
          'nvim-lua/plenary.nvim',
          { 'nvim-telescope/telescope-fzf-native.nvim', run = 'make' },
        },
      },
      -- ADD PLUGINS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
    },
    config = {
      package_root = package_root,
      compile_path = install_path .. '/plugin/packer_compiled.lua',
      display = { non_interactive = true },
    },
  }
end
_G.load_config = function()
  require('telescope').setup()
  require('telescope').load_extension('fzf')
  -- ADD INIT.LUA SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
end
if vim.fn.isdirectory(install_path) == 0 then
  print("Installing Telescope and dependencies.")
  vim.fn.system { 'git', 'clone', '--depth=1', 'https://github.com/wbthomason/packer.nvim', install_path }
end
load_plugins()
require('packer').sync()
vim.cmd [[autocmd User PackerComplete ++once echo "Ready!" | lua load_config()]]
@fibbo fibbo added the bug Something isn't working label Jan 17, 2023
@fibbo
Copy link
Author

fibbo commented Jan 18, 2023

It doesn't seem to be an issue with telescope but with neovim: neovim/neovim#21815

I was able to trigger the crash by simply scrolling as well.

Also: neovim/neovim#21299

@fibbo fibbo closed this as completed Jan 18, 2023
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