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

Not read mounted directory (sshfs) #316

Closed
lvim-tech opened this issue Apr 19, 2021 · 13 comments
Closed

Not read mounted directory (sshfs) #316

lvim-tech opened this issue Apr 19, 2021 · 13 comments

Comments

@lvim-tech
Copy link
Contributor

nvim-tree not read directory when mounted with sshfs.
Any ideas?

@kyazdani42
Copy link
Member

Hi, i'm not sure if there are some things we need to implement in order to use the tree in remote filesystems. I will check this out when i have some time.

@lvim-tech
Copy link
Contributor Author

@kyazdani42 Thanks in advance

@kyazdani42 kyazdani42 reopened this Apr 19, 2021
@S0mbr3
Copy link

S0mbr3 commented Jun 3, 2021

It would be really lovely, being able to use it over mounted sshfs folders.

@kyazdani42
Copy link
Member

related #425

@exdeniz
Copy link

exdeniz commented Jun 10, 2021

I have the same problem with sshfg

@kyazdani42
Copy link
Member

it's an issue with fuse and libuv, you need to set UV_THREADPOOL_SIZE to a higher value when launching neovim to allow libuv to wait for the files to load (because the fs is asynchronous)

@exdeniz
Copy link

exdeniz commented Jun 11, 2021

it's an issue with fuse and libuv, you need to set UV_THREADPOOL_SIZE to a higher value when launching neovim to allow libuv to wait for the files to load (because the fs is asynchronous)

I have tried set UV_THREADPOOL_SIZE 64, 128, 1024, 10000, 100000 and even a million, but it has no effect.

@kyazdani42
Copy link
Member

not sure then, i'm not a libuv expert myself :/ i'll try to see if other plugins have tackled this issue

@exdeniz
Copy link

exdeniz commented Jun 12, 2021

I tried Defx and NerdTree, both work well.

@kyazdani42
Copy link
Member

i guess so but none of them uses the libuv unfortunately (which makes this plugin fast). I'm not sure but maybe because i use synchronous libuv calls it fails, if i could manage to list the entries asynchronously, it might fix this issue.

@kyazdani42
Copy link
Member

fixes in 7abec5e. Actually fs_scandir wasn't returning the file type which made all entries being ignored, running an fs_stat fixed the issue :)

@lvim-tech
Copy link
Contributor Author

Perfect! Works! Thank you, @kyazdani42 !

@exdeniz
Copy link

exdeniz commented Jun 30, 2021

Thank you, @kyazdani42 !

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