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
Doesn't work with WSL2 #82
Comments
Thanks for reporting this issue. Does manually running
from cmd or PowerShell still work with WSL2, or were there any changes to the command line interface? You may also try an unreleased alpha build of |
Manually running |
I'm on 191025 and wslgit works for me. My mount points are on Now I can use PhpStorm with the project directory Maybe wslgit could offer some options to configure those paths. So creating symlinks won't be necessary. Also a way to use a non-default distro. |
@phox4ever I'm not sure that this is possible like you described. I created a symlink:
Then I tried:
Can you please describe the exact commands you used to create these mappings? |
@stevium My mount root is '/', not '/mnt/'. Also, I was using wslgit version 0.8.0. The latest version uses a different method of handling paths. I'm currently running PhpStorm within WSL2 and x410 which works straightforward (until you put your Laptop to sleep...). My
|
@phox4ever Ah I see now, having the root mounted on Yes, now when Thanks for helping! |
@stevium Version 0.9 is using wslpath, which cannot handle UNC paths, symlinks to UNC paths and network drives. But I'm thinking of wrapping wslpath in a bash script which overrides certain Windows paths to local Unix paths on the fly. Or is there an option coming up to create those path mappings for wslgit? |
I only had problems with Maybe I'm missing something, but I don't see that these mappings are necessary anymore... What exact command is failing for you? |
Not sure about IntelliJ, but for PhpStorm, using UNC paths directly is not possible. https://youtrack.jetbrains.com/issue/IDEA-123273. I haven't tried with version 2020 yet though. So even if wslgit can handle \wsl$, PhpStorm still needs a Symlink. Not sure if this works also. |
Most of the UNC issues were resolved with 2020.1 release: https://youtrack.jetbrains.com/issue/IDEA-197573 I've tried Intellij Idea, Rider, and Clion |
I've tested it with PhpStorm 2020.1 and I can confirm it works with the |
The changes from the |
Just installed the latest insider build 18970 with Ubuntu 18.04 on WSL2 with .zsh and running wslgit.exe from PowerShell just opens a new bash session. Please see screenshot below
Edit: tried to set Windows environment WSLGIT_USE_INTERACTIVE_SHELL variable to 0 and it didn't works the same way
The text was updated successfully, but these errors were encountered: