-
Notifications
You must be signed in to change notification settings - Fork 136
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
bug: directories mounted on a network filesystem (NFS) have wrong icons #543
Comments
Btw, if you wanna test this quickly signup for a free shell on sdf.org which is where I experienced this bug. |
Based on the symptoms, it definitely looks like it's detecting the type as something other than "directory". The Could you try putting a oil.nvim/lua/oil/adapters/files.lua Lines 379 to 380 in ba858b6
I suspect the entry.type we get back from fs_readdir is something other than "directory"
|
It seems the In any event, this seems like an upstream issue (either libuv or neovim) although you could workaround it by using |
I put in some logic to call |
Ty @stevearc! 🎉 |
Did you check the docs and existing issues?
Neovim version (nvim -v)
0.10.3
Operating system/version
NetBSD rie 9.3
Describe the bug
Hi @stevearc,
First let me say ths plugin and your work in general is just amazing, so Ty and Happy New Year 🎉
Not a big issue at all but I searched the issues for "mounted" and "nfs" and couldn't find anything, it seems that when using oil on an NFS mounted file-system the directory icons aren't detected properly.
Without digging into the code my first guess would be bit comparison of the
uv.fs_stat
return so here's a screenshot of the output from my local filesystem on Linux (left) and an NFS mounted FS on NetBSD (right), note the wrong icons (and missing/
postfix) for the lua/after/colors/css directories.What is the severity of this bug?
minor (annoyance)
Steps To Reproduce
Use oil on an NFS mount
Expected Behavior
To see the correct icon for a folder.
Directory structure
Repro
Did you check the bug with a clean config?
nvim -u repro.lua
using the repro.lua file above.The text was updated successfully, but these errors were encountered: