microsoft / azure-devops-intellij

IntelliJ IDEA plug-in for Visual Studio Team Services and Team Foundation Server (TFS)
MIT License
151 stars 94 forks source link

git clone from Azure DevOps Git fails with WSL auto-detected git #438

Open ShawnTalbert opened 3 years ago

ShawnTalbert commented 3 years ago

I have a project on the WSL2 filesystem. It (webstorm) correctly autodetects git executable under \\wsl$\Ubuntu-18.04\bin\git

However, when I try and clone another repository using the Azure plugin, it fails when I hit [Clone] on the Get from Version Control dialog.

 "Can't start Git - the path to Git executable is problably not valid"

..when it is valid - other git operations work as expected within WebStorm.

The popup dialog is this: image

My webstorm config:

WebStorm 2021.2.3 Build #WS-212.5457.55, built on October 18, 2021 Licensed to RSM US LLP / Shawn Talbert Subscription is active until February 18, 2022. Runtime version: 11.0.12+7-b1504.40 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Windows 10 10.0 GC: G1 Young Generation, G1 Old Generation Memory: 4096M Cores: 4 Non-Bundled Plugins: com.netsuite.ide.webstorm.app (2021.2.2), com.microsoft.vso.idea (1.162.0), deno (212.5457.18), DBN (3.2.5713.0) image

ShawnTalbert commented 3 years ago

more context- same problem occurs on a project hosted on windows filesystem, but still using the WSL installed git.

Cloning with the Azure plugin only seems to work if the git is windows git.exe (autodetected seems ok).

I believe you'll only see more use of WSL on windows so maybe this is something to address.

On the other hand, soon enough supposedly we'll be able to just run WebStorm itself in WSL - in which case I presume the plugin will just work because the entire 'world' will be linux, from the plugin's perspective?

ShawnTalbert commented 3 years ago

It's been about 4 months since I submitted this issue? It means the Azure plugin is quite useless for me. Any hope of addressing?

ShawnTalbert commented 2 years ago

6 months...

taljundi commented 2 years ago

I have the same problem, did you solve it?

taljundi commented 2 years ago

@ShawnTalbert found the solution, chaning "Path to git executable" to C:\Program Files\Git\cmd\git.exe fixed the problem

image

ShawnTalbert commented 2 years ago

thanks @taljundi but that doesn't solve it for me. I have no interest in running git for windows. I configure webstorm exclusively to use git inside WSL to avoid other problems.

Indeed, setting that back to windows git is the opposite of the intent of the original issue I filed :)

alanalvarado commented 2 years ago

I'm having the same problem. Switching from mac to PC web development environment, but without WSL seems like a hassle.