Error:<3>WSL (6075) ERROR: CreateProcessParseCommon:711: Failed to translate <path to a git repo folder> fatal: not a git repository (or any of the parent directories): .git
Hi,
Git was working fine before in PHPStorm, I could do git, commits, annotations etc.
After updating to the latest version 2023.3.6 (Build #PS-233.15026.12, built on March 21, 2024)
I cannot use git anymore in PHPStorm. I get the following error:
Error:<3>WSL (6075) ERROR: CreateProcessParseCommon:711: Failed to translate Z:\home\<username>\<git_repo_folder>
fatal: not a git repository (or any of the parent directories): .git
Testing through the settings says git is working fine:
Anybody else got this problem? Or has a fix for it?
Cheers,
Rubix
Please sign in to leave a comment.
Hi,
Are you able to perform any git commands via terminal in that project?
What do you have mapped under “Settings | Version Control | Directory Mappings”? What kind of path is the project located in?
Also, can you try to test on EAP (latest version) from the toolbox? Does the issue occur there?
Nothing has changed to my folder structure since previous PHPStorm versions.
1. Yes through the terminal the git commands work.
2. The correct path to the project folder with the .git folder in it.
3. I tried the PhpStorm 2024.1 RC, which gives me this message:
Error:Failed to start Git process: No such file or directory (os error 2)
Hi,
Can you please reproduce the issue and add zipped file logs? as per: https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files
U:\ - is WSL network drive
U:\home\<user>\projects\<project> is git repository (contains .git folder inside)
Hi,
Can you please share full logs?
What is the IDE version?
In Directory Mapping, can you specify exact path to your project and check?
In Settings → Version Control → Directory my project (U:\home\user\projects\project_1) already is set with VCS = Git
What git is used under Settings | Version Control | Git? Is it WSL one?
Which ide and version are you using?
Can you share full logs zipped?
I can't upload files here. I posted the full logs above, but my post is pending approval. I uploaded the log file to this file hosting: file(dot)io/l57YfWlxp6Ia
Please, check.
In the logs, there is all information about my IDE, paths, etc.
Can you please upload logs to https://uploads.jetbrains.com/?
I just uploaded: Upload id: 2024_05_06_RFfe6pcZwS7PVQMNTE8gy5 (file: logs.log)
I use wsl git through a custom plugin - github(dot)com/Volune/wslgit-for-jetbrains
I wanted to ask, because of a strange git name. Can you try without plugin please? This error is not clear to us at all.
When using git installed in Windows (D:\…\Git\bin\git.exe (Git version is 2.30.0)), there is endless indexing without any errors. Sometimes, after reloading the project, the indexing occurs only once, then again endless loading resumes.
Using git from WSL (U:\usr\bin\git) directly also doesn't work. I get error: "runnerw.exe: CreateProcess failed with error 193: %1".
So I'm trying to use a custom plugin (wslgit-for-jetbrains.exe). This plugin provides a small executable that forwards all arguments to git running inside Bash on Windows/Windows Subsystem for Linux (WSL).
Can you give more information about the your network drive setup? Why isn't usual path mapping used “\\wsl$\\distro\” (for an example)
PhpStorm doesn't directly see the network drive, so I mounted the network drive using the command sudo mount -t drvfs U: /mnt/u.
The error seems to be related to:
https://github.com/microsoft/vscode-remote-release/issues/9810
https://github.com/microsoft/WSL/issues/9252
Can you please check: https://github.com/microsoft/WSL/issues/9252#issuecomment-2059873142
Thank you. I will definitely give it a try.
As a temporary solution, I did the following:
This way, all project changes on the Windows side are uploaded to WSL in real-time.
Thanks again for your help.