-
Notifications
You must be signed in to change notification settings - Fork 256
Opening directories in root on Windows drive not working #542
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
Comments
There are always subtle issues when working with paths between linux and windows. I develop on Linux so things like this sometimes get missed. I'll take a look at the code later and see if I can identify where the issue is. My first guess would be that this line is wrong: neo-tree.nvim/lua/neo-tree/utils.lua Line 683 in 40b6ef7
|
I tried adding a |
That's very helpful. based on this, I think the problem is probably these lines:
A solid fix would be to use neo-tree.nvim/lua/neo-tree/utils.lua Line 696 in 40b6ef7
..or at least just check if the path already ends in a path separator. |
That did the trick! I replaced both of those with |
Awesome! I'll commit those changes to the project tonight. Thanks for testing this out on your end. |
No problem! Thanks for pointing me in the right direction. Appreciate it! |
First of all, thanks for a fantastic plugin! It's by far my favorite tree plugin for neovim after trying everything I could find out there. I just have one odd problem I'm not sure of the cause of.
I'm on Windows, using the latest neo-tree and the latest neovim nightly. If I open a file from the root of any drive and then open neo-tree, I can't open any directories. When I try to open them, they just show diamond icons:
Now if I exit neovim, go into one of the subdirectories and a file there directly, it opens up and I can see the contents of that directory in neo-tree. However, if I press backspace until I get to the root of the drive I get this. Notice the open
Code
directory, with all the subdirectories underneath. Also notice the duplicateCode
directory above it. If I try to open the duplicateCode
directory, I get the diamond again.As far as I can tell, everything else seems to work fine as long as I'm not working directly in a root directory. Here is the log for the session when I open a file in the root and try to open
D:\Code
in neo-tree:The text was updated successfully, but these errors were encountered: