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

0
18 comments

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? 
 

0

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)

0
2024-05-04 01:01:44,030 [1083915]  ERROR - tellij.vcs.log.data.VcsLogData - <3>WSL (1350) ERROR: CreateProcessParseCommon:708: Failed to translate U:\home\<user>\projects\<project>
not a git repository (or any of the parent directories): .git 
com.intellij.openapi.vcs.VcsException: <3>WSL (1350) ERROR: CreateProcessParseCommon:708: Failed to translate U:\home\<user>\projects\<project>
not a git repository (or any of the parent directories): .git
	at git4idea.commands.GitCommandResult.throwOnError(GitCommandResult.java:155)
	at git4idea.history.GitLogUtil.readRecordsFromHandler(GitLogUtil.java:304)
	at git4idea.history.GitLogUtil.collectMetadata(GitLogUtil.java:181)
	at git4idea.history.GitLogUtil.collectMetadata(GitLogUtil.java:155)
	at git4idea.log.GitLogProvider.readFirstBlock(GitLogProvider.java:99)
	at com.intellij.vcs.log.data.VcsLogRefresherImpl$2.each(VcsLogRefresherImpl.java:135)
	at com.intellij.vcs.log.data.VcsLogRefresherImpl$ProviderIterator.iterate(VcsLogRefresherImpl.java:398)
	at com.intellij.vcs.log.data.VcsLogRefresherImpl.loadRecentData(VcsLogRefresherImpl.java:141)
	at com.intellij.vcs.log.data.VcsLogRefresherImpl.readFirstBlock(VcsLogRefresherImpl.java:113)
	at com.intellij.vcs.log.data.VcsLogData$1.run(VcsLogData.java:176)
	at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:731)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:164)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:586)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:86)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:151)
	at com.intellij.openapi.progress.impl.CoreProgressManager$4.run(CoreProgressManager.java:403)
	at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:311)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

 

 

U:\ - is WSL network drive

U:\home\<user>\projects\<project> is git repository (contains .git folder inside)

0

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? 

 

1

In Settings → Version Control → Directory my project (U:\home\user\projects\project_1) already is set with VCS = Git

0

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? 

0

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.

0

In the logs, there is all information about my IDE, paths, etc.

0

I just uploaded: Upload id: 2024_05_06_RFfe6pcZwS7PVQMNTE8gy5 (file: logs.log)

0

I use wsl git through a custom plugin - github(dot)com/Volune/wslgit-for-jetbrains

0

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. 

0

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).

0

Can you give more information about the your network drive setup? Why isn't usual path mapping used “\\wsl$\\distro\” (for an example) 

 

 

1

PhpStorm doesn't directly see the network drive, so I mounted the network drive using the command sudo mount -t drvfs U: /mnt/u.

0

Thank you. I will definitely give it a try.

As a temporary solution, I did the following:

  1. Installed openssh in the WSL environment.
  2. Set up a connection to WSL via Remote Host in Phpstorm.
  3. Mapped Local path and Deployment path in Mappings settings to synchronize local and remote project directories.
  4. Right-clicked on the project root folder, then Deployment -> Upload to <remote host>.
  5. In File -> Settings -> Build, Execution, Deployment -> Deployment -> Options, selected "Upload changed files automatically to the default server" and set it to "Always".

This way, all project changes on the Windows side are uploaded to WSL in real-time.

Thanks again for your help.

0

Please sign in to leave a comment.