Neovim-from-scratch icon indicating copy to clipboard operation
Neovim-from-scratch copied to clipboard

:Telescope find_files in combination with nvim-tree crashes nvim when opening a directory (nvim dir)

Open siblanco opened this issue 2 years ago • 5 comments

Steps to reproduce:

  1. nvim "any dir"
  2. :Telescope find_files
  3. choose any file and hit enter

nvim crashes quietly when there is no buffer yet. No errors in .cache/nvim/log When you toggle off nvim-tree (a buffer is created), find_files does not crash nvim anymore.

How can we / I solve this?

siblanco avatar Jul 29 '22 06:07 siblanco

Hey! Not sure if you're talking of this error (link). I'm using treesitter @ commit 518e2 and telescope @ commit d96ea and :TSUpdate fixed my problem

bortolottidev avatar Aug 12 '22 15:08 bortolottidev

Hey man, i made a short video (15sec) to show what I am talking about: https://storage.siblanco.dev/nvimcrash.mp4

  • on first open, I toggle :Telescope find_files and enter on style.css -> nvim crashes
  • on second open, I toggle Nvim-Tree and then do :Telescope find_files, now it works

siblanco avatar Aug 12 '22 19:08 siblanco

Hey man, i made a short video (15sec) to show what I am talking about: https://storage.siblanco.dev/nvimcrash.mp4

  • on first open, I toggle :Telescope find_files and enter on style.css -> nvim crashes
  • on second open, I toggle Nvim-Tree and then do :Telescope find_files, now it works

Same problem did you find any solution?

sleaper avatar Jul 10 '23 14:07 sleaper

@sleaper I am not using nvim-tree anymore, switched to telescope file browser if one is really needed. best advice I can give you here: do not nvim the directory, cd into the directory before and then simply call nvim in there. That fixed many quirks for me...not sure if it fixed the nvimtree bug aswell, i think it did.

siblanco avatar Jul 10 '23 15:07 siblanco

FYI I am experiencing the same behavior as the video with a different configuration:

  • nvim-tree is not installed (NeoTreee instead)
  • am not even using LunarVim (I navigated to this issue by happenstance)
  • cd into a directory and calling nvim from there makes no difference, I still crash

Edit

Fixed by reinstalling neovim

mikedecr avatar Jul 25 '23 14:07 mikedecr