-
Notifications
You must be signed in to change notification settings - Fork 59
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
WSLGit doesn't work #33
Comments
So I eventually figured out what was going on, for some reason I couldn't get bash.exe to load bash directly and I had to pass an sort of id to it eg: |
Good that you got it working with version 0.5.0 at least. However, I wonder why it doesn't work with the latest release. It seems that you have the legacy WSL environment installed (i.e. not installed from the Store), and Could you migrate to a WSL distro installed from the Microsoft Store? After you installed it from the Store, you should see it with |
I have an installed Debian from the Store, but wslgit 0.6.0 doesn't work too. |
@sh-a-v Do you have multiple distributions installed, or just Debian? Can you show the output of What exactly does doesn't work mean? Is there any error? What is the output if you run Also, does manually running the following commands work?
|
|
@sh-a-v Ok, so it works just fine from the command line for you (which seems different from the original issue). What is the output in VS Code in the "Output" panel for "Git"? The first few lines should tell the git binary used, the git version and the repository. Are there any errors? Did you paste the output in your answer unmodified? Because there is an empty line between the command and the output, which shouldn't be there. Did you make any modifications to |
There aren't any errors.
|
Looks good, except for the path of the repository I think the problem is the bind mount in Another solution could be to set the new environment variable |
@andy-5 Thanks. It's weird because I did installed Ubuntu from the store and in fact I see Ubuntu in the list of distributions however bash only works with Legacy distribution. One thing to note though: wsl does work fine when I call it directly from powershell, I'm able to run linux commands from powershell just fine with it, the issue seems to be living around the fact that wslgit.exe is not passing the arguments to wsl and thus just launching bash (which is exactly what happens if I just type wsl). |
@nicholasio That's weird, maybe it helps to uninstall both Ubuntu and the Legacy distribution (if you don't need it anymore), and reinstall Ubuntu afterwards. There seem to be some problems if both are installed at the same time, e.g. microsoft/WSL#2590 Otherwise, what happens when you run the following two commands manually (from cmd or powershell)?
Did you make any modifications to |
Only the second command outputs the git version, The first command actually loads my zsh shell. I'm using Oh-My-ZSH and I'm loading zsh from |
Yes, that could be the problem. But I'm also not sure why it works with the older version. But if the second command works, you can try setting the environment variable |
Setting |
Great to hear that it works now! |
I'm having the exact same problem, but setting This is the output from VS Code:
Executing My I have created an
I set the Any ideas? |
@mheisig The problem is the customized The original report above used |
Hi, I'm not sure if I'm missing something but the .exe doesn't work at all, I have downloaded it and placed in my PATH and I can't execute git from Powershell nor VSCode, no matter what command I pass to wsl it just doesn't output anything.
I'm running WIndows 10 Pro 1709. Using the new WSL enviroment (Ubuntu Distribution)
The text was updated successfully, but these errors were encountered: