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

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

Open
siblanco opened this issue Jul 29, 2022 · 5 comments

Comments

@siblanco
Copy link

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?

@bortolottidev
Copy link

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

@siblanco
Copy link
Author

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

@sleaper
Copy link

sleaper commented Jul 10, 2023

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?

@siblanco
Copy link
Author

@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.

@mikedecr
Copy link

mikedecr commented Jul 25, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants