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

win32 UNC path (in this case: wsl) is not well supported #234

Open
lxhillwind opened this issue Oct 3, 2022 · 0 comments
Open

win32 UNC path (in this case: wsl) is not well supported #234

lxhillwind opened this issue Oct 3, 2022 · 0 comments

Comments

@lxhillwind
Copy link
Contributor

lxhillwind commented Oct 3, 2022

Suppose we have installed wsl (I use wsl1; but wsl2 should also work) with name fedora;

After "activate" it via wsl command, we can access the filesystem in UNC path \\wsl$\fedora\ (and this can be confirmed in win32 vim: just :echo globpath('\\wsl$\fedora\', '*', 0, 1).

In my system, it gives output like this (it gives / instead of \ since I have set shellslash):

['//wsl$/fedora/afs', '//wsl$/fedora/bin', '//wsl$/fedora/boot', '//wsl$/fedora/dev', '//wsl$/fedora/etc', '//wsl$/fedora/home', '//wsl$/fedora/init', '//wsl$/fedora/lib', '//wsl$/fedora/lib64', '//wsl$/fedora/lost+found', '//wsl$/fedora/media', '//wsl$/fedora/mnt', '//wsl$/fedora/opt', '//wsl$/fedora/proc', '//wsl$/fedora/root', '//wsl$/fedora/run', '//wsl$/fedora/sbin', '//wsl$/fedora/srv', '//wsl$/fedora/sys', '//wsl$/fedora/tmp', '//wsl$/fedora/usr', '//wsl$/fedora/var']

But dirvish cannot open it; with command :e \\wsl$\fedora\, output is like this:

dirvish: invalid directory: '//wsl$'

This seems to be caused by multiple reasons; but it is hard to talk about them without a context; I'd like to elaborate on them in a PR I created for this issue: #233

EDIT: I only test this in gvim / vim (not neovim); tests from others for neovim is appreciated.

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

1 participant