nvim-lua / plenary.nvim

plenary: full; complete; entire; absolute; unqualified. All the lua functions I don't want to write twice.
MIT License
2.69k stars 284 forks source link

exists() hangs when it should return false #563

Open snoblenet opened 6 months ago

snoblenet commented 6 months ago

You'd expect this to echo true, and this is what happens:

:lua print(require('plenary.path'):new('.'):find_upwards('node_modules'):exists())

You'd expect this to echo false, but instead it just hangs:

:lua print(require('plenary.path'):new('.'):find_upwards('red_herring'):exists())
YuseiUeno commented 6 months ago

maybe will fix by https://github.com/nvim-lua/plenary.nvim/pull/562